[resolved] [Plugin : Maintenance Mode 5.2] PHP Parse error and warning (6 posts)

  1. Nickolabs
    Posted 5 years ago #


    I recently switched server, and I though the configuration would be similar enough to migrate with no hassle... silly me!

    The point is, I get errors when activating the maintenance mode using the plugin (the plugin can be active, without the maintenance mode being online with no problem).

    I get those errors when I activate the maintenance mode:

    Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/kokstrat/public_html/wp-content/plugins/maintenance-mode/maintenance-mode.php(66) : runtime-created function on line 1

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given in /home/kokstrat/public_html/wp-includes/plugin.php on line 395

    Here's a screenshot

    The errors also make me bounce back to the login page.

    I already set the memory limit to 64m (was 32m)...

    Any suggestions?

  2. Nickolabs
    Posted 5 years ago #

    I'm still looking for an answer on this matters.
    Since the site is live and that I may need to do some updates on it, this plugin will be useful, which is why I'm pressing on this issue.

  3. Nickolabs
    Posted 5 years ago #

    I just noted something of great interest.

    The errors seems to be occurring on the French version of WordPress.

    Why would the fr_FR (the WPLANG setting that is) would cause such an issue?

  4. Michael_
    Posted 5 years ago #

    This is fixed in the meantime, please update to version 5.4 of the plugin.

  5. Nickolabs
    Posted 5 years ago #

    Thanks, I'll update it.

  6. anthonymasure
    Posted 5 years ago #

    Thank you it's fixed now

Topic Closed

This topic has been closed to new replies.

About this Topic