• Resolved Manni02

    (@manni02)


    Hi there,

    First of all, thank you for this wonderful plugin. I’m running the latest (V2.2) version.

    I noticed today as I put the website in maintenance mode before running a backup and updating to WP 6.9.1 (currently on WP 6.8.3 / PHP 8.3) that it wasn’t possible to customize the maintenance message/page in JF maintenance redirect. There are no options on that page, while we used to be able to either customize a simple message or use a specific page if I remember correctly.

    I checked the error log and I found these errors that might be connected:

    [08-Feb-2026 09:27:00 UTC] PHP Warning: Undefined array key 1 in /home/[domain]/public_html/wp-content/plugins/jf3-maintenance-mode/wpjf3_maintenance_redirect.php on line 285
    [08-Feb-2026 09:27:00 UTC] PHP Warning: Undefined array key 2 in /home/[domain]/public_html/wp-content/plugins/jf3-maintenance-mode/wpjf3_maintenance_redirect.php on line 285

    Please could you take a look and fix?

    Thank you!

    • This topic was modified 3 months, 2 weeks ago by Manni02.
Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Peter Hardy-vanDoorn

    (@petervandoorn)

    Hi @manni02.

    Thanks for the kind words, and for letting me know that you’re experiencing an error.

    I’m sorry that you are getting this. That line giving the PHP Warning is unrelated to the display of the Maintenance Message tab in the admin, but I’ll certainly look into what’s causing that.

    As you can imagine, I did testing on that page when I added the new code editor functionality, although I can only test on a limited number of environments. Could you please let me know a little more about your particular environment – version of PHP, version of WordPress, etc.

    Cheers

    Peter

    Thread Starter Manni02

    (@manni02)

    Hi Peter,

    Thank you for your quick reply.

    As mentioned in my initial message, I was using WP 6.8.3 and PHP 8.3.

    I have since upgraded to WP 6.9.1 and the issue is still present.

    Our website is hosted on Rocket.net, and here are all the current details: WordPress 6.9.1 | PHP 8.3.22 | Web Server Apache | MySQL 10.11.13-MariaDB

    • This reply was modified 3 months, 2 weeks ago by Manni02.
    Thread Starter Manni02

    (@manni02)

    Just to add that I noticed there is an admin notice that allows to chose different options (the usual message only, redirect and HTML entered), but I’m not sure how that works and why it’s not in the options tab. I’m also unsure how to specify the redirect or the HTML as it’s not in the options tab.

    Thread Starter Manni02

    (@manni02)

    One more thing, it might be a design change that I am not familiar with. If I revert to 1.8, I get all the familiar options. From 2.0, these options disappear and I only get a notice in the admin panel that offers a way to select which option, but it’s not clear how you enter the information for the redirect or the HTML.

    I looked at the screenshots that seem to be showing options for 2.0, and for the maintenance message tab I only get a blank tab with the “Update Settings” button, none of the info shown in the last three screenshots shown in the app description.

    • This reply was modified 3 months, 2 weeks ago by Manni02.
    • This reply was modified 3 months, 2 weeks ago by Manni02.
    Plugin Author Peter Hardy-vanDoorn

    (@petervandoorn)

    As mentioned in my initial message, I was using WP 6.8.3 and PHP 8.3.

    Oops, sorry – so you did! Note to self: Don’t tackle support emails before your first coffee!

    I can’t think of anything there that might be causing the issue.

    Here’s a thought, since you mentioned reverting back to 1.8 – what does the “Plugin settings version” say on the About & Options tab? (You’ll find it underneath the “Buy me a coffee” panel). It should be 2.1.0. If it is lower, there should be an option to run the settings updater manually.

    Thread Starter Manni02

    (@manni02)

    Hi Peter,

    I reverted to V1.8 in a staging site, which I have since deleted.

    In the production site, still with V2.2, the “plugin settings version” under the “Buy me a coffee” panel is indeed 2.1.0

    • This reply was modified 3 months, 2 weeks ago by Manni02.
    Plugin Author Peter Hardy-vanDoorn

    (@petervandoorn)

    Hi. Thanks for checking that.

    My testing server is much the same, except for the mysql server and the PHP version is 8.3.30.

    Can you try uninstalling the plugin and reinstalling it – but before you deactivate it, check the “Delete all options next time this plugin is deleted” option in the About & Options tab. Obviously take note of the warning under that option that it will delete everything, so make sure you’ve got a record of your IP addresses, etc.

    If that doesn’t sort it, can you then do the standard troubleshooting technique of disabling other plugins to see if there’s a conflict.

    Cheers

    Thread Starter Manni02

    (@manni02)

    Thanks. Resetting the settings / uninstalling / reinstalling didn’t help. I did lose all the settings (I had to re-add my IP and email bypass options), so that worked, but I still didn’t get any options in the maintenance message tab.

    I also tried to put Wordfence in learning mode, that didn’t help either.

    I’ll check for plugin compatibility in a staging site and I’ll report back.

    • This reply was modified 3 months, 2 weeks ago by Manni02.
    Thread Starter Manni02

    (@manni02)

    We have a winner 🙂 !

    It looks like there is a conflict with the Publishpress Capabilities plugin: https://ww.wp.xz.cn/plugins/capability-manager-enhanced/

    As soon as I disable it, the options come back in the Maintenance Message tab.

    Can you reproduce?

    • This reply was modified 3 months, 2 weeks ago by Manni02.
    Thread Starter Manni02

    (@manni02)

    OK, I found the solution 🙂

    Capabilities Manager has an “Admin Notices” option to “Remove Admin Notices from WordPress admin screen and organize them in to a single area”, which was we enabled (not sure if it’s by default or not).

    As the options were only showing as admin notices, I disabled that option in Capabilities Manager and bingo, the options were back in the Maintenance Message tab 🙂

    You might want to look into the reason wjhy your options are detected as an admin notice, otherwise the issue is solved for me here, as I have the options back without having to disable Capabilities Manager.

    • This reply was modified 3 months, 2 weeks ago by Manni02.
    • This reply was modified 3 months, 2 weeks ago by Manni02.
    Plugin Author Peter Hardy-vanDoorn

    (@petervandoorn)

    Hi.

    Thanks so much for identifying the problem – I have tried that plugin and can confirm that it is causing the issue.

    The Maintenance Message tab has an ID of “#message”, so it looks like the capabilities plugin is being a bit too aggressive in trying to identify admin messages to hide.

    Luckily it’s something that I can resolve by simply changing the ID of the div. I’ll get a new version pushed in the next couple of days with that fix.

    Cheers

    Peter

    Thread Starter Manni02

    (@manni02)

    You’re very welcome, thank you so much for releasing a fix so quickly 🙂

    I’ve installed 2.2.1 and I can confirm that it fixes the conflict with Capabilities, even when the admin messages option is enabled.

    Keep up the good work!

    Thread Starter Manni02

    (@manni02)

    Hi Peter,

    Just to say that I’m still getting these PHP warnings in debug.log:

    [23-May-2026 23:18:49 UTC] PHP Warning: Undefined array key 1 in /home/zs70nqh/public_html/[domain]-staging.onrocket.site/wp-content/plugins/jf3-maintenance-mode/wpjf3_maintenance_redirect.php on line 285

    This is with V2.2.1, still on WP 6.9.4 and PHP 8.3.22.

    Plugin Author Peter Hardy-vanDoorn

    (@petervandoorn)

    Hi.

    Hmm… I can’t replicate that at all. That line deals with getting the Class C IP address, is that the method you’re using for the bypass?

    Cheers

    Thread Starter Manni02

    (@manni02)

    Hi Peter,

    This fired when I used Maintenance Redirect on my Rocket.net staging site. I am allowing my IP address so that I’m the only one able to access the staging site.

    Best,

    Emmanuel

Viewing 15 replies - 1 through 15 (of 15 total)

You must be logged in to reply to this topic.