"Undefined variable" errors from mu-plugins (uninitialized variable)
Lightning-fast WordPress on Nginx
Brought to you by:
jessuppi
Originally created by: Bronislawsky
No big deal, I could have opened an issue on all mu-plugins concerned but I didn't feet it was necessary
in several mu-plugins,
in /helpers/updater.php public function httpRequestArgs($args, $url)
when it reaches
// Modifications
if ($modified)
in some cases it hasn't been set to true, so I guess just $modified = false at the beginning of the function would do
I just mention it because it feels up my PHP error log widget
Thanks
Originally posted by: corzel
Hi,
This is very annoying, especially when I'm fixing something and enable wp_debug_display, I have to search inside all that code to find the error I need to fix. I used the your solution ($modified = false) and works fine, but it´s gone with every update.
In my case a see this:
Notice: Undefined variable: modified in /var/www/html/wp-content/mu-plugins/clear-caches/helpers/updater.php on line 136 Notice: Undefined variable: modified in /var/www/html/wp-content/mu-plugins/dashboard-cleanup/helpers/updater.php on line 136 Notice: Undefined variable: modified in /var/www/html/wp-content/mu-plugins/disable-gutenberg/helpers/updater.php on line 136 Notice: Undefined variable: modified in /var/www/html/wp-content/mu-plugins/force-https/helpers/updater.php on line 136 Notice: Undefined variable: modified in /var/www/html/wp-content/mu-plugins/maintenance-mode/helpers/updater.php on line 136Regards.