Issues with WordPress Site Going Down When Switching to PHP 8.1 or 8.2?

Cheerag Nundlall

Well-known member
Registered
Joined
Oct 12, 2016
Messages
332
Points
18
Hello everyone,

I've encountered a problem with my WordPress site when attempting to switch to PHP 8.1 or PHP 8.2. I'm currently using the latest version of WordPress. However, whenever I switch to either PHP 8.1 or 8.2, my site immediately goes down and becomes inaccessible. The only way to get it back up and running is by reverting to PHP 7.4.

I'm perplexed by this issue and would greatly appreciate any insights or suggestions on why this might be happening. Has anyone else experienced similar problems when upgrading to PHP 8.1 or 8.2 with WordPress? Any help would be immensely appreciated.

Thank you!
 

AlbaHost

Well-known member
Moderator
Hosting Provider
Joined
Jan 18, 2017
Messages
777
Points
43
You may enable the wordpress debug from false to true in wp-config and you will see all the errors coming from, either you can find them in your panel error.log. Mostly is that the theme/plugins are not compatible with higher php versions.
 

ManagedCpanel

Member
Collaborate
Registered
Joined
Jul 28, 2023
Messages
22
Points
1
Enabling the wordpress debug mode will help the most. Recently I had an issue with that type of upgrade and it led me to update one function and while it wasn't clear how to fix it, googling the error led me to a post to what the fix was.
 
Last edited:

cretehost

New member
Registered
Joined
Dec 19, 2023
Messages
3
Points
1
Most of the time when you turn on your WP debug, you notice that it's a deprecation-related error, all you need to do it to disable your plugins, and themes, upgrade them, and update your PHP version before activating your theme and plugins.
 

HifiveHost

Member
Registered
Joined
Sep 6, 2020
Messages
35
Points
6
Switching to a newer version of PHP, such as PHP 8.1 or 8.2, can sometimes cause compatibility issues with certain WordPress themes, plugins, or the core WordPress software. In this case you can contact your provider and get some error logs and with help of error logs you can get this issue fixed wordpress developer.
 

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top