PHP Fatal error Attempt to modify property “admin_notices”
-
I’m upgrading to PHP 8.1 from 7.4, as required by my provider. In PHP 7.4, everything works fine (only warnings in the error log). Upgrading to PHP 8.0 has the same problem.
This is the error I get, with the first line of the stack trace (there are 12 more):
PHP Fatal error: Uncaught Error: Attempt to modify property "admin_notices" on null in /home/public/sites/stage.adlibug.nl/wp-content/themes/onesocial/buddyboss-inc/buddyboss-framework/admin/ReduxCore/inc/class.redux_filesystem.php:29 Stack trace: #0 /home/public/sites/stage.adlibug.nl/wp-content/themes/onesocial/buddyboss-inc/buddyboss-framework/admin/ReduxCore/inc/class.redux_filesystem.php(47): Redux_Filesystem->__construct()
The error message is identical to what’s in this post, so I tried what was suggested there, to no avail.
The first hint was to use a child theme. AFAIK, I am using a child theme, namely OneSocial Child Theme.
Another suggestion was to commenting out the entire
public function __construct()
section in the file listed. As was to be expected, that leads to another fatal error:PHP Fatal error: Declaration of boss_Plugin_Upgrader_Skin::feedback($string) must be compatible with WP_Upgrader_Skin::
The problem is that all blog posts disappear from the site. I put it back to PHP 7.4 for now. My provider forces upgrade 2 weeks from now. The link is to our staging site, the production site has the exact same problem, phenomena, errors and all.
Please advise.
The page I need help with: [log in to see the link]
- The topic ‘PHP Fatal error Attempt to modify property “admin_notices”’ is closed to new replies.