Support » Plugin: WP Cerber Security, Anti-spam & Malware Scan » WordPress error on Cerber Diagnostic Tab

  • When I navigate to /wp-admin/admin.php?page=cerber-tools&tab=diagnostic I get the following error below the Active Plugins table:

    There has been a critical error on this website. Please check your site admin email inbox for instructions.

    Learn more about troubleshooting WordPress.

    I’ve enabled debugging on the site with the following in my wp-config.php, but there is nothing in the wp-content/debug.log file after running the Cerber page.

    define( 'WP_DEBUG', true );
    if (WP_DEBUG) {
      define('WP_DEBUG_LOG', true);
      define('WP_DEBUG_DISPLAY', false);
      @ini_set('display_errors',0);
    }

    I don’t seem to have any other errors or unexpected behavior on the site at all; how can I figure out what is going on here?

    Edit/Note: I would be fine completely removing WP Cerber (and getting everything in the database removed as well) in order to re-install it “clean,” if that will solve the issue. However, uninstalling the plugin doesn’t seem to remove the database tables, so reinstalls just seem to cause the same problem again.

    • This topic was modified 1 year, 6 months ago by turbodb.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author gioni

    (@gioni)

    The best way to find out the root cause is to check the server error log for PHP errors.

    Thread Starter turbodb

    (@turbodb)

    Gotcha. Here’s what I see there:

    2022-09-11T15:10:49.815694173Z: [ERROR]  2022/09/11 15:10:49 [error] 158#158: *4317 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught TypeError: Unsupported operand types: int - string in /home/site/wwwroot/wp-includes/formatting.php:3773
    
    2022-09-11T15:10:49.824083061Z: [ERROR]  Stack trace:
    2022-09-11T15:10:49.824122461Z: [ERROR]  #0 /home/site/wwwroot/wp-content/plugins/wp-cerber/cerber-common.php(1895): human_time_diff('p')
    2022-09-11T15:10:49.824134961Z: [ERROR]  #1 /home/site/wwwroot/wp-content/plugins/wp-cerber/cerber-common.php(1907): cerber_ago_time('p')
    2022-09-11T15:10:49.824145861Z: [ERROR]  #2 /home/site/wwwroot/wp-content/plugins/wp-cerber/admin/cerber-tools.php(611): cerber_auto_date('p', false)
    2022-09-11T15:10:49.824156761Z: [ERROR]  #3 /home/site/wwwroot/wp-content/plugins/wp-cerber/admin/cerber-tools.php(279): cerber_db_diag()
    2022-09-11T15:10:49.824167461Z: [ERROR]  #4 /home/site/wwwroot/wp-content/plugins/wp-cerber/admin/cerber-dashboard.php(5331): cerber_show_diag()
    2022-09-11T15:10:49.824178062Z: [ERROR]  #5 /home/site/wwwroot/wp-content/plugins/wp-cerber/admin/cerber-dashboard.php(143): {closure}('diagnostic')
    2022-09-11T15:10:49.824189062Z: [ERROR]  #6 /home/site/wwwroot/wp-content/plugins/wp-cerber/admin/cerber-dashboard.php(5106): cerber_show_admin_page('Tools', Array, 'diagnostic', Object(Closure))
    2022-09-11T15:10:49.824200262Z: [ERROR]  #7 /home/site/wwwroot/wp-includes/class-wp-hook.php(307): cerber_render_admin_page('')
    2022-09-11T15:10:49.824211162Z: [ERROR]  #8 /home/site/wwwroot/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
    2022-09-11T15:10:49.824222462Z: [ERROR]  #9 /home/site/wwwroot/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
    2022-09-11T15:10:49.824233162Z: [ERROR]  #10 /home/site/wwwroot/wp-admin/admin.php(259): do_action('wp-cerber_page_...')
    2022-09-11T15:10:49.824243562Z: [ERROR]  #11 {main}
    2022-09-11T15:10:49.824255762Z: [ERROR]    thrown in /home/site/wwwroot/wp-includes/formatting.php on line 3773" while reading response header from upstream, client: 169.254.130.1, server: _, request: "GET /wp-admin/admin.php?page=cerber-tools&tab=diagnostic HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php-fpm.sock:", host: "adventuretaco-linux.azurewebsites.net", referrer: "https://adventuretaco-linux.azurewebsites.net/wp-admin/admin.php?page=cerber-tools"
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress error on Cerber Diagnostic Tab’ is closed to new replies.