Fatal Error message when updating to PHP 8
-
Hi there—I’ve done a search for PHP issues in this forum but each case has been slightly different, and I am not a coder, so a lot of what I’m reading I don’t understand.
I maintain two websites. The main one (Acting) is andrewsellon.com and my secondary one (Coaching/Consulting) is sellonsolutions.com. The latter is in its own folder of my Acting WordPress install on the same server. Both have been running fine for years and I’ve had no issues upgrading my PHP a number of times. My host is 1and1/Ionos.
I got a notification today from 1and1/Ionos that PHP 7.4 was no longer supported and that I had to upgrade to PHP 8 before April 1, 2023 to avoid massive support charges monthly. I tried using their PHP update tool, and both sites gave different fatal error messages. I was able to sort out the ones on my Acting site as they referenced plugins. I removed/replaced the plugins and now that site is okay on PHP 8.1. But my sellonsolutions site still gives this fatal error message, even though I’m using the WordPress 2023 theme and almost no plugins:
Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, non-static method adminuser::register_custom_menu_page() cannot be called statically in /homepages/32/d310666225/htdocs/sellonsolutionsllc/wp-includes/class-wp-hook.php:308 Stack trace: #0 /homepages/32/d310666225/htdocs/sellonsolutionsllc/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #1 /homepages/32/d310666225/htdocs/sellonsolutionsllc/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #2 /homepages/32/d310666225/htdocs/sellonsolutionsllc/wp-admin/includes/menu.php(155): do_action(‘admin_menu’, ”) #3 /homepages/32/d310666225/htdocs/sellonsolutionsllc/wp-admin/menu.php(428): require_once(‘/homepages/32/d…’) #4 /homepages/32/d310666225/htdocs/sellonsolutionsllc/wp-admin/admin.php(158): require(‘/homepages/32/d…’) #5 /homepages/32/d310666225/htdocs/sellonsolutionsllc/wp-admin/index.php(10): require_once(‘/homepages/32/d…’) #6 {main} thrown in?/homepages/32/d310666225/htdocs/sellonsolutionsllc/wp-includes/class-wp-hook.phpon line?308
I’m afraid this one is simply over my head. Can anyone tell me how to fix this? Thanks so much for any help anyone can provide. Please do keep in mind that I am not a coder.
I also don’t know whether I’ll see any reply notifications via email, as WordPress still shows a long-defunct email address of [email protected]. I have tried to change it in my site settings, but it doesn’t stick. It’s listed correctly as [email protected] on my 1and1/Ionos account, so I don’t know why WordPress will not let me update the contact info on my websites, or even where it’s getting that old address. If you happen to know how to fix this issue, I would be very grateful for that as well!
Thanks so much,
Andrew
- The topic ‘Fatal Error message when updating to PHP 8’ is closed to new replies.