Neyl
Forum Replies Created
-
Or rather you could just update the code so it checks if it exists.
Forum: Plugins
In reply to: [Zero Spam for WordPress] Upgrade to 5.0 crashes siteHi, 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
Forum: Plugins
In reply to: [Zero Spam for WordPress] Plugin’s errorsActually now that I looked more into your plugin files, it’s just that whenever you use
plugin_dir_path
, you forget that it always adds trailing slash, and whenever you require .php files, you add a slash at start, could you please also fix that too? I guess that’s not really an issue, but maybe it could do some troubles in some poorly configured servers?Forum: Plugins
In reply to: [Zero Spam for WordPress] Plugin’s errorsI have also found that you forgot to fix the double slashes in the URLS in your
zero-spam/inc/scripts.php
file.Forum: Plugins
In reply to: [Zero Spam for WordPress] Plugin’s errorsThank you for fixing those issues.
Have you checked if your plugin blocks BuddyPress spams?
In your file
zero-spam/integrations/buddypress/js/buddypress.js
there is this line:WordPressZeroSpamIntegrations.cf7.init();
but it rather should beWordPressZeroSpamIntegrations.buddyPress.init();