Critical error after update
-
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.
-
This topic was modified 4 years, 10 months ago by
Anonymous User 18398604.
-
This topic was modified 4 years, 10 months ago by
-
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 2389Had to revert files to a backup, and then disable Cerber.
-
This reply was modified 4 years, 10 months ago by
phrasepush.
-
This reply was modified 4 years, 10 months ago by
phrasepush.
@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.
-
This reply was modified 4 years, 10 months ago by
Anonymous User 18398604.
Please do the following:
1. Install the previous version of the plugin: https://downloads.wp.xz.cn/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 ImgurP.S. The plugin has been tested on PHP 8.0.8 with no issues.
@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.
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).
@phrasepush You can use this form: https://wpcerber.com/support-form/
Done, thanks 👍
@phrasepush I see your submission but, unfortunately, with no screenshot. Please submit the screenshot again.
Done
@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?
@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 4 years, 10 months ago by
phrasepush.
@phrasepush You are welcome!
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.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 4 years, 10 months ago by
christaly.
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 -
This reply was modified 4 years, 10 months ago by
The topic ‘Critical error after update’ is closed to new replies.