Alex Miller
New Pleskian
TITLE:
ACTUAL RESULT:
WordPress Toolkit Maintenance PHTML Error
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE:Plesk 17.5.3x on CentOS 7.3, WordPress 4.8.2
PROBLEM DESCRIPTION:I'm receiving the following error in my WordPress debug.log:
`[01-Nov-2017 05:01:22 UTC] PHP Notice: Undefined variable: timer in /wp-content/maintenance/template.phtml on line 22`
This is happening throughout all my sites and is not limited to just 1 install.
STEPS TO REPRODUCE:`[01-Nov-2017 05:01:22 UTC] PHP Notice: Undefined variable: timer in /wp-content/maintenance/template.phtml on line 22`
This is happening throughout all my sites and is not limited to just 1 install.
- Enable WP_DEBUG and WP_DEBUG_LOG flag in wp-config.php
- Update WordPress
The error writes to my debug log every time WordPress updates
EXPECTED RESULT:The expected result is nothing get written to my debug log.
ANY ADDITIONAL INFORMATION:Can we add additional checks and balances to the PHTML code to ensure features are enabled and variables are set?
Maybe check if `$timer` isset before using it:
`if( isset( $timer ) && $timer['enabled'] )`
I'm hoping the issue gets looked into and updated. My debug logs are kept running to track actual issues with the WordPress install so they can be resolved accordingly.
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM:Maybe check if `$timer` isset before using it:
`if( isset( $timer ) && $timer['enabled'] )`
I'm hoping the issue gets looked into and updated. My debug logs are kept running to track actual issues with the WordPress install so they can be resolved accordingly.
Confirm bug