Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Neyl

    (@neyl8)

    Or rather you could just update the code so it checks if it exists.

    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
    Thread Starter Neyl

    (@neyl8)

    Actually 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?

    Thread Starter Neyl

    (@neyl8)

    I have also found that you forgot to fix the double slashes in the URLS in your zero-spam/inc/scripts.php file.

    Thread Starter Neyl

    (@neyl8)

    Thank 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 be WordPressZeroSpamIntegrations.buddyPress.init();

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