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.
Navigation

maintenance error

Last updated on 5 years ago
karrakkarrak
Posted 5 years ago
if it is switched to the maintenance mode you can also be used to enter the site.
M
mawe4585
Posted 5 years ago
I don't quite understand what is the problem here. Could you explain in more detail please?
FalkFalk
Posted 5 years ago
Do you have the latest Git?,
It should have been fixed, https://github.com/PHPFusion/PHPFusion/issues/879
karrakkarrak
Posted 5 years ago
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
karrakkarrak
Posted 5 years ago
templates/header.php
21. line
$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.

$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 :)
ChanChan
Posted 5 years ago
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/PHPFusion/PHPFusion/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.
You can view all discussion threads in this forum.
You cannot 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.
You cannot set up a bounty in this discussion thread.
Moderator: Support Team
Users who participated in discussion: Falk, Chan, mawe4585, karrak,