Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Maintenance error

if it is switched to the maintenance mode you can also be used to enter the site.
I don't quite understand what is the problem here. Could you explain in more detail please?
Do you have the latest Git?,
It should have been fixed, https://github.com/php-fusion/PHP-Fusion/issues/879
Yes. After the above on GitHub, a fresh installation.
If it is on the maintenance, you also can go to the page does not load maintenance.php.
The error is in the header.php, just I do not come out yet how to improve my sad
templates/header.php
21. line
CodeDownload  
$user_level = fusion_get_userdata("user_level");
if (fusion_get_settings("maintenance") == "1" && fusion_get_settings("maintenance_level") < $user_level) {
    if (fusion_get_settings("site_seo")) {
        redirect(FUSION_ROOT.BASEDIR."maintenance.php");
    } else {
        redirect(BASEDIR."maintenance.php");
    }
}



Replace this.

CodeDownload  
$user_level = fusion_get_userdata("user_level");
if (fusion_get_settings("maintenance") == "1") {
   if (fusion_get_settings("maintenance_level") < $user_level or empty($user_level)) {
       if (fusion_get_settings("site_seo")) {
           redirect(FUSION_ROOT.BASEDIR."maintenance.php");
       } else {
         redirect(BASEDIR."maintenance.php");
       }
   }
}


So it works for me :)
Thank you Karrak, very helpful one.

Thing is both existing and your version does work for me (I'm thinking php version --- i'm really not sure what breaks for you guys). Anyway, I've updated github here --- https://github.com/php-fusion/PHP-Fusion/commit/039d9be65568a147e7469ba135e949eeddce7c9a

I've only commented out the earlier codes because those worked for me even. Once we do not run to similar problems anymore, I'd completely remove them.
Thread Information
Author
Replies
6 posts
Views
1,296 times
Last Post
Last updated on 3 years ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: Falk, Chan, mawe4585, karrak