Support » Plugin: WP Cerber Security, Anti-spam & Malware Scan » Critical error after update

  • Resolved johnwalker135

    (@johnwalker135)


    After today’s update 21.07.2021, the site is throwing a 500 error. Site is in PHP 8, no other abnormalities. Please fix this, as my site is now unprotected. I can provide other necessary information.

Viewing 15 replies - 1 through 15 (of 16 total)
  • phrasepush

    (@phrasepush)

    I’m getting a very similar thing after the most recent update:

    Fatal error: Cannot use isset() on the result of an expression (you can use "null !== expression" instead) in /var/sites/w/[ website name ]/public_html/wp-content/plugins/wp-cerber/cerber-common.php on line 2389

    Had to revert files to a backup, and then disable Cerber.

    • This reply was modified 1 year ago by phrasepush.
    • This reply was modified 1 year ago by phrasepush.
    Thread Starter johnwalker135

    (@johnwalker135)

    @phrasepush I solved the problem by removing aaa-wp-cerber.php in wp-content/mu-plugins. Try it, maybe you can solve the problem too.

    Plugin Author Gregory

    (@gioni)

    Please do the following:

    1. Install the previous version of the plugin: https://downloads.wordpress.org/plugin/wp-cerber.8.8.5.zip
    2. Go to the Tools / Diagnostic tab
    3. Make a screenshot of the “System Info” section
    4. Share it with me via Imgur

    P.S. The plugin has been tested on PHP 8.0.8 with no issues.

    Thread Starter johnwalker135

    (@johnwalker135)

    @gioni I solved the problem by removing aaa-wp-cerber.php in wp-content/mu-plugins, don’t know what it could be related to. You can close the discussion.

    phrasepush

    (@phrasepush)

    Thanks John, I think I’ll wait until the plugin has been fixed before updating; if lots of others aren’t reporting the same thing, they might actually be unrelated bugs.

    Gregory: in case it’s useful to you, I’ve installed the old plugin version, gone into Tools > Diagnostic and taken a screenshot. I’d be happy to send this to you as a PM/email if that’s possible (hesitant to put all of this site info out in public).

    Plugin Author Gregory

    (@gioni)

    phrasepush

    (@phrasepush)

    Done, thanks 👍

    Plugin Author Gregory

    (@gioni)

    @phrasepush I see your submission but, unfortunately, with no screenshot. Please submit the screenshot again.

    phrasepush

    (@phrasepush)

    Done

    Plugin Author Gregory

    (@gioni)

    @phrasepush I got the screenshot. The cause of the issue is PHP version 5.6. You need to update it to 7.x ASAP. Note: PHP 5.6 by itself is not supported since 1 Jan 2019 https://www.php.net/supported-versions.php

    @johnwalker135 What’s your version of PHP?

    phrasepush

    (@phrasepush)

    @gioni Thanks, I’ve now updated to PHP 7.4, no crashes yet! Will let you know if the same issue appears again under this version.

    Thank you very much for your support, and the amazing program!

    • This reply was modified 1 year ago by phrasepush.
    Plugin Author Gregory

    (@gioni)

    @phrasepush You are welcome!

    giossicom

    (@giossicom)

    I fixed the problem myself, upgrading php to the latest version available at my hosting.
    Previous php version was 5.6.32, current is 7.1.11.

    christaly

    (@christaly)

    If anyone wants a quick fix and wants to continue using PHP 5.6. Just change line 2389 from:

    if ( isset( CERBER_DB_TYPES[ $table ][ $field ] ) ) {

    to:

    $temp = CERBER_DB_TYPES[ $table ];
    if ( isset( $temp[ $field ] ) ) {
    • This reply was modified 1 year ago by christaly.
    hlr

    (@hlr)

    Hi Gregory,
    Same error here.
    I deleted wp-cerber – error persists
    I choose automatic PHP update (=automatic selection of the latest stable version) – error persists
    I choose manual PHP version, 7.3.29 (the oldest that my hosts accepts without protesting) – error goes away.
    I choose automatic PHP update (=automatic selection of the latest stable version) – all ok
    So it seems a little more complicated than updating PHP
    Kind regards
    Hans

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Critical error after update’ is closed to new replies.