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
336
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
809
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
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.
 

johnemma504

New member
Registered
Joined
Aug 19, 2024
Messages
1
Points
0
I’m having trouble with my WordPress site going down when switching to PHP 8.1 or 8.2, despite using the latest WordPress version. The site becomes inaccessible, and I can only restore it by reverting to PHP 7.4. Has anyone else faced similar issues when upgrading to PHP 8.1 or 8.2? Any insights or suggestions would be greatly appreciated.
 

connectinfosoft

New member
Registered
Joined
Feb 6, 2024
Messages
1
Points
1
Upgrading to a newer version, such as PHP 8.1 or 8.2, may occasionally result in compatibility issues with WordPress themes or plugins, or even the WordPress core itself. In that case, you will need to contact your provider and get some error logs, and, using the error logs, this issue can be fixed by a WordPress developer.
Please message me if you still have any issues. connectinfosoft
 

otto levin

Member
Registered
Joined
Aug 30, 2024
Messages
19
Points
1
My colleague asked me recently to help her with a similar issue. She has a website with siteground, and they sent her a message a month ago saying they will soon deprecate php 7.4 and will set 8.2 as a default version. But they found that her website is not compatible with 8+, and she has to fix it if she wants her website to keep working. She was terrified, to be honest.

So, I simply went to the plugins section and clicked 'View details' in front of each plugin. There, you can see a line 'Compatible up to' and a WordPress version. I found one plugin that was compatible with up to 5.2 version (6.6.2 was the latest version at that time). So I deactivated this plugin, then went to siteground dashboard and switched from 7.4 to 8.2 - the website was working just fine. Case closed.

P.S.: that plugin was very old and was made to automatically update plugins and themes. So it costed us nothing to remove it since WordPress is able to update everything itself. So, it might happen that you are using a similar old plugin, I recommend checking that.
 

Dopani

Well-known member
Registered
Joined
Mar 11, 2014
Messages
239
Points
18
It sounds like you’re running into compatibility issues with PHP 8.1 or 8.2. Even though you're on the latest version of WordPress, it's likely that some of your themes or plugins haven’t been fully updated to work with those PHP versions.

I'd recommend checking your plugins and themes to see if they’re compatible with PHP 8.x. Sometimes, plugin authors are a bit slower in releasing updates for newer PHP versions. You can also try disabling all plugins, switching to PHP 8.1 or 8.2, and then enabling them one by one to see which one might be causing the issue.

If you're still stuck, the error logs can be super helpful in pinpointing what's breaking your site.
 
Latest Threads
Replies
0
Views
122
Replies
1
Views
77

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