Please HELP!!! I entered "maintenance Mode" and did an update. The site found the new 5.5.2.1 version for update. It was downloaded smoothly and i followed the update prompt. Again it went smoothly and notified me that update was complete. I then choose to go back to site and it shows the site is in maintenance mode. Seeing this i think "no big deal" so i just re log in as the admin.....NOPE, to my surprise when i log in as admin i get the same "site in maintenance mode" and no dashboard to get it out of maintenance mode. Any one else having this problem? This is quite frustrating since i do not have access to the server files.
OK ... what was the 'best answer' I can't see that there was one. The yoursite links are now dud, and Paul didn't say what file his code should be put in? Anyway is this relevant to v5.7 ?
This website stores cookies on your computer. These cookies are used to improve
your website experience and provide more personalized services to you, both on this website and through
other media. To find out more about the cookies we use, see our Privacy Policy.
<?php
defined('C5_EXECUTE') or die(_("Access Denied."));
Loader::model('user');
if ((!$c->isAdminArea()) && ($c->getCollectionPath() != '/login')) {
$smm = Config::get('SITE_MAINTENANCE_MODE');
$u = new User();
if ($smm == 1 && $u->getUserName() != "admin") {
$v = View::getInstance();
$v->render('/maintenance_mode/');
exit;
}
}