Posting in the hope that this might be helpful to someone. I installed the 2.2 version today and at first received three oddities. First, the "Your username is invalid - Please change it and try again” message. Second, the “Fatal error: Call to undefined function: htmlspecialchars_decode() in /home/content/*/*/*/***/html/admin/sitemonitor_configure_setup.php on line 488” message. Oddity number three was no update or reset buttons on the bottom of the configure page.
So I noticed as someone else on this board did that the password being called was for my SQL database and not my site admin. After a bit of thought, I decided to directly check out the file sitemonitor_configure.php (located in your admin folder). The section I was interested in looks like this:
$start_dir = '/home/username/public_html'; //your shops root
$admin_dir = 'http://www.yourdomain.com/admin'; //your shops admin
$admin_username = 'username'; //your admin username
$admin_password = 'password'; //your admin password
$excludeList = array("admin/quarantine", "cgi-bin","admin"); //don't check these directories - change to your liking - must be set prior to first run
I edited the 'username' and 'password' to fit my admin information. I then edited the $admin_dir to match my domain and admin folder location. Finally I changed the admin in front of /quarantine in the $excludeList to match my admin location. I saved and entered back into my site. First problem was solved. No more username invalid message.
Next thing I took care of was the fatal error. I noticed a post with the same problem that Jack had already answered. This worked for the original post and also worked for me.
In admin/sitemonitor_configure_setup.php , find
htmlspecialchars_decode
and replace it with
html_entity_decode
That solved the fatal error problem and also surprisingly took care of the buttons issue (well it surprised me anyway). Both buttons appeared at the bottom of the configure page now and I also had a correct Sitemonitor Admin page now.
Now that I had update buttons I decided to try to remove my admin username and password using the configure page. This worked and I do not need them entered it appears.
In retrospect, I likely should have solved these in reverse order and then I could have just used the configure page to update. But the direct file edit worked in the end. I have now ran and tested the contribution a few times. It is working excellent on my site. Thank you Jack!
All of this is probably dumb for anyone who knows what they are doing, but in case it is helpful to other newbies like me I thought I would post.
Now 2 questions for those who know far more than me:
1. Is there a reason I should run using CURL as opposed to not using it?
2. Would it make sense for better security to download a copy of sitemonitor_reference.php to my local hard drive? Since this is the reference file, would it be better to not store it online? Would this cause errors later when I uploaded it and then ran sitemonitor?