I have a client and he has reported that 5/6 times, the website has somehow returned to unpublished mode. We are unsure what could be causing it and generally it will happen when no one is working on the website at all. They do have some people who have in the past and may still have malicious intentions with regards to bringing the site down (so this could also be an issue).
-
Are there any known security issues in Umbraco whereby a user could malicious unpublished the entire website?
-
Are there any bugs in Umbraco that could cause this to happen?
-
Does Umbraco check the Database for published flag, or does it just check for the existence of the XML file before choosing to show the “there is more work to do” message?
Umbraco will show this page if it is unable to connect to the database.
In older versions of Umbraco, once this had happened the site would remain in this state until it was republished – this seems to have been fixed (I’m not sure from which version). If you are suffering from this and upgrading isn’t an option, then a workaround is to place the following code in the top of /config/splashes/noNodes.aspx:
(This code wasn’t originally mine – I can’t remember where I got it from). The code attempts to republish the site so that as soon as the database connection becomes available again the site comes back up.
You may also want to edit the content of /config/splashes/noNodes.aspx to show your users a site maintenance or error message which is more appropriate.
Are you aware of any planned database maintenance around the time your client’s site suffered from this? If not, you may need to take a look at their hosting.