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.
Not a member yet? Click here to register.
Forgot Password?

maintenance error

Asked Modified Viewed 1,958 times
K
karrak
K
karrak 32
Van mi sosem változik..smile
  • Senior Member, joined since
  • Contributed 310 posts on the community forums.
  • Started 94 threads in the forums
  • Started this discussions
  • Answered 1 question
asked
Senior Member

if it is switched to the maintenance mode you can also be used to enter the site.
0 replies

5 posts

M
mawe4585
M
  • Member, joined since
  • Contributed 84 posts on the community forums.
  • Started 34 threads in the forums
answered
Member

I don't quite understand what is the problem here. Could you explain in more detail please?
0 replies
F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

Do you have the latest Git?,
It should have been fixed, https://github.com/PHPFusion/PHPFusion/issues/879
0 replies
K
karrak
K
karrak 32
Van mi sosem változik..smile
  • Senior Member, joined since
  • Contributed 310 posts on the community forums.
  • Started 94 threads in the forums
  • Started this discussions
  • Answered 1 question
answered
Senior Member

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
0 replies
K
karrak
K
karrak 32
Van mi sosem változik..smile
  • Senior Member, joined since
  • Contributed 310 posts on the community forums.
  • Started 94 threads in the forums
  • Started this discussions
  • Answered 1 question
answered
Senior Member

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 :)
0 replies
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin

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.
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 5 posts
  • Votes 0 votes
  • Topic users 4 members

4 participants

F
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
C
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
M
M
  • Member, joined since
  • Contributed 84 posts on the community forums.
  • Started 34 threads in the forums
K
K
karrak 32
Van mi sosem változik..smile
  • Senior Member, joined since
  • Contributed 310 posts on the community forums.
  • Started 94 threads in the forums
  • Started this discussions
  • Answered 1 question

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet