Title: PHP Warning in error_log and no maintenance msg customization in V2.2
Last modified: February 8, 2026

---

# PHP Warning in error_log and no maintenance msg customization in V2.2

 *  Resolved [Manni02](https://wordpress.org/support/users/manni02/)
 * (@manni02)
 * [3 months, 2 weeks ago](https://wordpress.org/support/topic/php-warning-in-error_log-3/)
 * 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](https://wordpress.org/support/users/manni02/).

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

 *  Plugin Author [Peter Hardy-vanDoorn](https://wordpress.org/support/users/petervandoorn/)
 * (@petervandoorn)
 * [3 months, 2 weeks ago](https://wordpress.org/support/topic/php-warning-in-error_log-3/#post-18814163)
 * Hi [@manni02](https://wordpress.org/support/users/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](https://wordpress.org/support/users/manni02/)
 * (@manni02)
 * [3 months, 2 weeks ago](https://wordpress.org/support/topic/php-warning-in-error_log-3/#post-18814180)
 * 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](https://wordpress.org/support/users/manni02/).
 *  Thread Starter [Manni02](https://wordpress.org/support/users/manni02/)
 * (@manni02)
 * [3 months, 2 weeks ago](https://wordpress.org/support/topic/php-warning-in-error_log-3/#post-18814187)
 * 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](https://wordpress.org/support/users/manni02/)
 * (@manni02)
 * [3 months, 2 weeks ago](https://wordpress.org/support/topic/php-warning-in-error_log-3/#post-18814242)
 * 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](https://wordpress.org/support/users/manni02/).
    -  This reply was modified 3 months, 2 weeks ago by [Manni02](https://wordpress.org/support/users/manni02/).
 *  Plugin Author [Peter Hardy-vanDoorn](https://wordpress.org/support/users/petervandoorn/)
 * (@petervandoorn)
 * [3 months, 2 weeks ago](https://wordpress.org/support/topic/php-warning-in-error_log-3/#post-18814274)
 * > 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](https://wordpress.org/support/users/manni02/)
 * (@manni02)
 * [3 months, 2 weeks ago](https://wordpress.org/support/topic/php-warning-in-error_log-3/#post-18814290)
 * 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](https://wordpress.org/support/users/manni02/).
 *  Plugin Author [Peter Hardy-vanDoorn](https://wordpress.org/support/users/petervandoorn/)
 * (@petervandoorn)
 * [3 months, 2 weeks ago](https://wordpress.org/support/topic/php-warning-in-error_log-3/#post-18814342)
 * 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](https://wordpress.org/support/users/manni02/)
 * (@manni02)
 * [3 months, 2 weeks ago](https://wordpress.org/support/topic/php-warning-in-error_log-3/#post-18814350)
 * 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](https://wordpress.org/support/users/manni02/).
 *  Thread Starter [Manni02](https://wordpress.org/support/users/manni02/)
 * (@manni02)
 * [3 months, 2 weeks ago](https://wordpress.org/support/topic/php-warning-in-error_log-3/#post-18814368)
 * We have a winner 🙂 !
 * It looks like there is a conflict with the Publishpress Capabilities plugin: 
   [https://wordpress.org/plugins/capability-manager-enhanced/](https://wordpress.org/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](https://wordpress.org/support/users/manni02/).
 *  Thread Starter [Manni02](https://wordpress.org/support/users/manni02/)
 * (@manni02)
 * [3 months, 2 weeks ago](https://wordpress.org/support/topic/php-warning-in-error_log-3/#post-18814374)
 * 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](https://wordpress.org/support/users/manni02/).
    -  This reply was modified 3 months, 2 weeks ago by [Manni02](https://wordpress.org/support/users/manni02/).
 *  Plugin Author [Peter Hardy-vanDoorn](https://wordpress.org/support/users/petervandoorn/)
 * (@petervandoorn)
 * [3 months, 2 weeks ago](https://wordpress.org/support/topic/php-warning-in-error_log-3/#post-18815220)
 * 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](https://wordpress.org/support/users/manni02/)
 * (@manni02)
 * [3 months, 2 weeks ago](https://wordpress.org/support/topic/php-warning-in-error_log-3/#post-18816850)
 * 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](https://wordpress.org/support/users/manni02/)
 * (@manni02)
 * [5 days, 6 hours ago](https://wordpress.org/support/topic/php-warning-in-error_log-3/#post-18917596)
 * 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](https://wordpress.org/support/users/petervandoorn/)
 * (@petervandoorn)
 * [3 days, 13 hours ago](https://wordpress.org/support/topic/php-warning-in-error_log-3/#post-18919398)
 * 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](https://wordpress.org/support/users/manni02/)
 * (@manni02)
 * [3 days, 13 hours ago](https://wordpress.org/support/topic/php-warning-in-error_log-3/#post-18919415)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-warning-in-error_log-3%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/jf3-maintenance-mode/assets/icon.svg?rev=2134384)
 * [Maintenance Redirect](https://wordpress.org/plugins/jf3-maintenance-mode/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jf3-maintenance-mode/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jf3-maintenance-mode/)
 * [Active Topics](https://wordpress.org/support/plugin/jf3-maintenance-mode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jf3-maintenance-mode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jf3-maintenance-mode/reviews/)

 * 15 replies
 * 2 participants
 * Last reply from: [Manni02](https://wordpress.org/support/users/manni02/)
 * Last activity: [3 days, 13 hours ago](https://wordpress.org/support/topic/php-warning-in-error_log-3/#post-18919415)
 * Status: resolved