Upgrade to 5.0 crashes site
-
[23-Feb-2021 15:27:19 UTC] PHP Fatal error: Uncaught Error: Call to undefined function ZeroSpam\array_key_last() in /home1/broadwb5/public_html/wp-content/plugins/zero-spam/includes/class-autoloader.php:85
Stack trace:
#0 /home1/broadwb5/public_html/wp-content/plugins/zero-spam/includes/class-autoloader.php(118): ZeroSpam\Autoloader::load_class(‘Includes\\DB’)
#1 [internal function]: ZeroSpam\Autoloader::autoload(‘ZeroSpam\\Includ…’)
#2 /home1/broadwb5/public_html/wp-content/plugins/zero-spam/includes/class-plugin.php(141): spl_autoload_call(‘ZeroSpam\\Includ…’)
#3 /home1/broadwb5/public_html/wp-content/plugins/zero-spam/includes/class-plugin.php(117): ZeroSpam\Plugin->init_components()
#4 /home1/broadwb5/public_html/wp-includes/class-wp-hook.php(287): ZeroSpam\Plugin->init(”)
#5 /home1/broadwb5/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
#6 /home1/broadwb5/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
#7 /home1/broadwb5/public_html/wp-settings.php(557): do_action(‘init’)
#8 /home1/broad in /home1/broadwb5/public_html/wp-content/plugins/zero-spam/includes/class-autoloader.php on line 85`
I tried uninstalling and re-installing. Oddly, the plugin doesn’t even need to be active, just installing it crashes the site. Everything is up-to-date as far as plugins and themes. It had been working this morning, the only changes were updating this plugin, MonsterInsights’ Google Analytics plugin, Yoast, and WP Core.
-
What version of PHP are you running? There’s no way for a plugin to affect a site without it being active. If you can provide me more details & a login, I’ll be happy to look into it further. You can contact me at [email protected].
Multiple sites down due to plugin update
An error of type E_ERROR was caused in line 85 of the file /home/sitename/public_html/wp-content/plugins/zero-spam/includes/class-autoloader.php. Error message: Uncaught Error: Call to undefined function ZeroSpam\array_key_last() in /home/sitename/public_html/wp-content/plugins/zero-spam/includes/class-autoloader.php:85 Stack trace: #0 /home/sitename/public_html/wp-content/plugins/zero-spam/includes/class-autoloader.php(118): ZeroSpam\Autoloader::load_class('Includes\\DB') #1 [internal function]: ZeroSpam\Autoloader::autoload('ZeroSpam\\Includ...') #2 /home/sitename/public_html/wp-content/plugins/zero-spam/includes/class-plugin.php(141): spl_autoload_call('ZeroSpam\\Includ...') #3 /home/sitename/public_html/wp-content/plugins/zero-spam/includes/class-plugin.php(117): ZeroSpam\Plugin->init_components() #4 /home/sitename/public_html/wp-includes/class-wp-hook.php(287): ZeroSpam\Plugin->init('') #5 /home/sitename/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #6 /home/sitename/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array) #7 /home/sitename/public_html/wp-settings.php(557): do_action('init') #8 /home/sitename/public_html/wp
Please provide the PHP version you’re using.
I was running 7.3, and upgraded to 7.4.15. Then installed the latest zero spam (5.0.1, previously using 5.0) and everything works now. I don’t know if it was the PHP version or whatever changed in 5.0.1.
Yeah, PHP version requires 7.3. 5.0.0 was only checking 7.2, not the updated 5.3. The 5.0.1 release just fixed that to ensure 7.3 is running instead of 7.2.
The error you were getting is common to an older PHP version. Glad everything is working now, please let me know if you run into anything else. And thanks for notifying me of this.
Hi, I am using PHP 7.4.15 and after updating 4.10.2 to 5.0.1 it bricks whole site Site is unusuable unless i deactivate the plugin.
Testing this locally using Laragon and here’s the crash info from wp debug log:
[23-Feb-2021 17:14:11 UTC] PHP Fatal error: Uncaught Error: Class 'ZeroSpam\Includes\DB' not found in C:\laragon\www\spam-tet\wp-content\plugins\zero-spam\includes\class-plugin.php:141 Stack trace: #0 C:\laragon\www\spam-tet\wp-content\plugins\zero-spam\includes\class-plugin.php(117): ZeroSpam\Plugin->init_components() #1 C:\laragon\www\spam-tet\wp-includes\class-wp-hook.php(287): ZeroSpam\Plugin->init('') #2 C:\laragon\www\spam-tet\wp-includes\class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #3 C:\laragon\www\spam-tet\wp-includes\plugin.php(484): WP_Hook->do_action(Array) #4 C:\laragon\www\spam-tet\wp-settings.php(557): do_action('init') #5 C:\laragon\www\spam-tet\wp-config.php(99): require_once('C:\\laragon\\www\\...') #6 C:\laragon\www\spam-tet\wp-load.php(37): require_once('C:\\laragon\\www\\...') #7 C:\laragon\www\spam-tet\wp-admin\admin.php(34): require_once('C:\\laragon\\www\\...') #8 C:\laragon\www\spam-tet\wp-admin\plugins.php(10): require_once('C:\\laragon\\www\\...') #9 { in C:\laragon\www\spam-tet\wp-content\plugins\zero-spam\includes\class-plugin.php on line 141 [23-Feb-2021 17:14:48 UTC] PHP Fatal error: Uncaught Error: Class 'ZeroSpam\Includes\DB' not found in C:\laragon\www\spam-tet\wp-content\plugins\zero-spam\includes\class-plugin.php:141 Stack trace: #0 C:\laragon\www\spam-tet\wp-content\plugins\zero-spam\includes\class-plugin.php(117): ZeroSpam\Plugin->init_components() #1 C:\laragon\www\spam-tet\wp-includes\class-wp-hook.php(287): ZeroSpam\Plugin->init('') #2 C:\laragon\www\spam-tet\wp-includes\class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #3 C:\laragon\www\spam-tet\wp-includes\plugin.php(484): WP_Hook->do_action(Array) #4 C:\laragon\www\spam-tet\wp-settings.php(557): do_action('init') #5 C:\laragon\www\spam-tet\wp-config.php(99): require_once('C:\\laragon\\www\\...') #6 C:\laragon\www\spam-tet\wp-load.php(37): require_once('C:\\laragon\\www\\...') #7 C:\laragon\www\spam-tet\wp-admin\admin-ajax.php(22): require_once('C:\\laragon\\www\\...') #8 {main} thrown in C:\laragon\www\spam-tet\wp-content\plugins\zero-spam\includes\class-plugin.php on line 141 [23-Feb-2021 17:15:12 UTC] PHP Fatal error: Uncaught Error: Class 'ZeroSpam\Includes\DB' not found in C:\laragon\www\spam-tet\wp-content\plugins\zero-spam\includes\class-plugin.php:141 Stack trace: #0 C:\laragon\www\spam-tet\wp-content\plugins\zero-spam\includes\class-plugin.php(117): ZeroSpam\Plugin->init_components() #1 C:\laragon\www\spam-tet\wp-includes\class-wp-hook.php(287): ZeroSpam\Plugin->init('') #2 C:\laragon\www\spam-tet\wp-includes\class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #3 C:\laragon\www\spam-tet\wp-includes\plugin.php(484): WP_Hook->do_action(Array) #4 C:\laragon\www\spam-tet\wp-settings.php(557): do_action('init') #5 C:\laragon\www\spam-tet\wp-config.php(99): require_once('C:\\laragon\\www\\...') #6 C:\laragon\www\spam-tet\wp-load.php(37): require_once('C:\\laragon\\www\\...') #7 C:\laragon\www\spam-tet\wp-admin\admin-ajax.php(22): require_once('C:\\laragon\\www\\...') #8 {main} thrown in C:\laragon\www\spam-tet\wp-content\plugins\zero-spam\includes\class-plugin.php on line 141 [23-Feb-2021 17:15:29 UTC] PHP Fatal error: Uncaught Error: Class 'ZeroSpam\Includes\DB' not found in C:\laragon\www\spam-tet\wp-content\plugins\zero-spam\includes\class-plugin.php:141 Stack trace: #0 C:\laragon\www\spam-tet\wp-content\plugins\zero-spam\includes\class-plugin.php(117): ZeroSpam\Plugin->init_components() #1 C:\laragon\www\spam-tet\wp-includes\class-wp-hook.php(287): ZeroSpam\Plugin->init('') #2 C:\laragon\www\spam-tet\wp-includes\class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #3 C:\laragon\www\spam-tet\wp-includes\plugin.php(484): WP_Hook->do_action(Array) #4 C:\laragon\www\spam-tet\wp-settings.php(557): do_action('init') #5 C:\laragon\www\spam-tet\wp-config.php(99): require_once('C:\\laragon\\www\\...') #6 C:\laragon\www\spam-tet\wp-load.php(37): require_once('C:\\laragon\\www\\...') #7 C:\laragon\www\spam-tet\wp-admin\admin.php(34): require_once('C:\\laragon\\www\\...') #8 C:\laragon\www\spam-tet\wp-admin\plugins.php(10): require_once('C:\\laragon\\www\\...') #9 { in C:\laragon\www\spam-tet\wp-content\plugins\zero-spam\includes\class-plugin.php on line 141 [23-Feb-2021 17:15:32 UTC] PHP Fatal error: Uncaught Error: Class 'ZeroSpam\Includes\DB' not found in C:\laragon\www\spam-tet\wp-content\plugins\zero-spam\includes\class-plugin.php:141 Stack trace: #0 C:\laragon\www\spam-tet\wp-content\plugins\zero-spam\includes\class-plugin.php(117): ZeroSpam\Plugin->init_components() #1 C:\laragon\www\spam-tet\wp-includes\class-wp-hook.php(287): ZeroSpam\Plugin->init('') #2 C:\laragon\www\spam-tet\wp-includes\class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #3 C:\laragon\www\spam-tet\wp-includes\plugin.php(484): WP_Hook->do_action(Array) #4 C:\laragon\www\spam-tet\wp-settings.php(557): do_action('init') #5 C:\laragon\www\spam-tet\wp-config.php(99): require_once('C:\\laragon\\www\\...') #6 C:\laragon\www\spam-tet\wp-load.php(37): require_once('C:\\laragon\\www\\...') #7 C:\laragon\www\spam-tet\wp-admin\admin.php(34): require_once('C:\\laragon\\www\\...') #8 C:\laragon\www\spam-tet\wp-admin\index.php(10): require_once('C:\\laragon\\www\\...') #9 {ma in C:\laragon\www\spam-tet\wp-content\plugins\zero-spam\includes\class-plugin.php on line 141 [23-Feb-2021 17:15:35 UTC] PHP Fatal error: Uncaught Error: Class 'ZeroSpam\Includes\DB' not found in C:\laragon\www\spam-tet\wp-content\plugins\zero-spam\includes\class-plugin.php:141 Stack trace: #0 C:\laragon\www\spam-tet\wp-content\plugins\zero-spam\includes\class-plugin.php(117): ZeroSpam\Plugin->init_components() #1 C:\laragon\www\spam-tet\wp-includes\class-wp-hook.php(287): ZeroSpam\Plugin->init('') #2 C:\laragon\www\spam-tet\wp-includes\class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #3 C:\laragon\www\spam-tet\wp-includes\plugin.php(484): WP_Hook->do_action(Array) #4 C:\laragon\www\spam-tet\wp-settings.php(557): do_action('init') #5 C:\laragon\www\spam-tet\wp-config.php(99): require_once('C:\\laragon\\www\\...') #6 C:\laragon\www\spam-tet\wp-load.php(37): require_once('C:\\laragon\\www\\...') #7 C:\laragon\www\spam-tet\wp-blog-header.php(13): require_once('C:\\laragon\\www\\...') #8 C:\laragon\www\spam-tet\index.php(17): require('C:\\laragon\\www\\...') #9 {main} thrown in C:\laragon\www\spam-tet\wp-content\plugins\zero-spam\includes\class-plugin.php on line 141 [23-Feb-2021 17:16:49 UTC] PHP Fatal error: Uncaught Error: Class 'ZeroSpam\Includes\DB' not found in C:\laragon\www\spam-tet\wp-content\plugins\zero-spam\includes\class-plugin.php:141 Stack trace: #0 C:\laragon\www\spam-tet\wp-content\plugins\zero-spam\includes\class-plugin.php(117): ZeroSpam\Plugin->init_components() #1 C:\laragon\www\spam-tet\wp-includes\class-wp-hook.php(287): ZeroSpam\Plugin->init('') #2 C:\laragon\www\spam-tet\wp-includes\class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #3 C:\laragon\www\spam-tet\wp-includes\plugin.php(484): WP_Hook->do_action(Array) #4 C:\laragon\www\spam-tet\wp-settings.php(557): do_action('init') #5 C:\laragon\www\spam-tet\wp-config.php(99): require_once('C:\\laragon\\www\\...') #6 C:\laragon\www\spam-tet\wp-load.php(37): require_once('C:\\laragon\\www\\...') #7 C:\laragon\www\spam-tet\wp-admin\admin-ajax.php(22): require_once('C:\\laragon\\www\\...') #8 {main} thrown in C:\laragon\www\spam-tet\wp-content\plugins\zero-spam\includes\class-plugin.php on line 141 [23-Feb-2021 17:18:41 UTC] PHP Fatal error: Uncaught Error: Class 'ZeroSpam\Includes\DB' not found in C:\laragon\www\spam-tet\wp-content\plugins\zero-spam\includes\class-plugin.php:141 Stack trace: #0 C:\laragon\www\spam-tet\wp-content\plugins\zero-spam\includes\class-plugin.php(117): ZeroSpam\Plugin->init_components() #1 C:\laragon\www\spam-tet\wp-includes\class-wp-hook.php(287): ZeroSpam\Plugin->init('') #2 C:\laragon\www\spam-tet\wp-includes\class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #3 C:\laragon\www\spam-tet\wp-includes\plugin.php(484): WP_Hook->do_action(Array) #4 C:\laragon\www\spam-tet\wp-settings.php(557): do_action('init') #5 C:\laragon\www\spam-tet\wp-config.php(99): require_once('C:\\laragon\\www\\...') #6 C:\laragon\www\spam-tet\wp-load.php(37): require_once('C:\\laragon\\www\\...') #7 C:\laragon\www\spam-tet\wp-admin\admin-ajax.php(22): require_once('C:\\laragon\\www\\...') #8 {main} thrown in C:\laragon\www\spam-tet\wp-content\plugins\zero-spam\includes\class-plugin.php on line 141 [23-Feb-2021 17:18:41 UTC] PHP Fatal error: Uncaught Error: Class 'ZeroSpam\Includes\DB' not found in C:\laragon\www\spam-tet\wp-content\plugins\zero-spam\includes\class-plugin.php:141 Stack trace: #0 C:\laragon\www\spam-tet\wp-content\plugins\zero-spam\includes\class-plugin.php(117): ZeroSpam\Plugin->init_components() #1 C:\laragon\www\spam-tet\wp-includes\class-wp-hook.php(287): ZeroSpam\Plugin->init('') #2 C:\laragon\www\spam-tet\wp-includes\class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #3 C:\laragon\www\spam-tet\wp-includes\plugin.php(484): WP_Hook->do_action(Array) #4 C:\laragon\www\spam-tet\wp-settings.php(557): do_action('init') #5 C:\laragon\www\spam-tet\wp-config.php(99): require_once('C:\\laragon\\www\\...') #6 C:\laragon\www\spam-tet\wp-load.php(37): require_once('C:\\laragon\\www\\...') #7 C:\laragon\www\spam-tet\wp-admin\admin-ajax.php(22): require_once('C:\\laragon\\www\\...') #8 {main} thrown in C:\laragon\www\spam-tet\wp-content\plugins\zero-spam\includes\class-plugin.php on line 141 [23-Feb-2021 17:19:41 UTC] PHP Fatal error: Uncaught Error: Class 'ZeroSpam\Includes\DB' not found in C:\laragon\www\spam-tet\wp-content\plugins\zero-spam\includes\class-plugin.php:141 Stack trace: #0 C:\laragon\www\spam-tet\wp-content\plugins\zero-spam\includes\class-plugin.php(117): ZeroSpam\Plugin->init_components() #1 C:\laragon\www\spam-tet\wp-includes\class-wp-hook.php(287): ZeroSpam\Plugin->init('') #2 C:\laragon\www\spam-tet\wp-includes\class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #3 C:\laragon\www\spam-tet\wp-includes\plugin.php(484): WP_Hook->do_action(Array) #4 C:\laragon\www\spam-tet\wp-settings.php(557): do_action('init') #5 C:\laragon\www\spam-tet\wp-config.php(99): require_once('C:\\laragon\\www\\...') #6 C:\laragon\www\spam-tet\wp-load.php(37): require_once('C:\\laragon\\www\\...') #7 C:\laragon\www\spam-tet\wp-admin\admin-ajax.php(22): require_once('C:\\laragon\\www\\...') #8 {main} thrown in C:\laragon\www\spam-tet\wp-content\plugins\zero-spam\includes\class-plugin.php on line 141
@neyl8 Please ensure the latest version of the plugin is running. If you’re still having an issue, please shoot me the site and a login so I can look into it. You can contact me at [email protected].
- The topic ‘Upgrade to 5.0 crashes site’ is closed to new replies.