Archived topic
PHP 7.4 Crashes My Site
4 replies · Started by steven on May 12, 2022
Hi,
I keep getting info messages in my WP dashboard that I should upgrade to PHP 7.4 (I'm currently on PHP 7.3)
However when I upgrade it using PHP My Admin on the server, it immediately destroys my site.
Here are the plugins I am using:
Ad Inserter
Classic Editor
Forget About Shortcode Buttons
GP Premium
Imagify
LuckyWP Table of Contents
Ninja Tables
Ninja Tables Pro
Redirection
The SEO Framework
WPForms Lite
XML Sitemaps
Can you help me? I want to get on 7.4 as I understand it will speed up the site and other performance improvements.
Thanks a lot!
Hi there,
Any chance you can disable all plugins except GP Premium to eliminate conflicts from other plugins first?
Let me know :)
OK.
I have another site on my server that is running the same theme (generate press)
It has ALL the same plugins as stevejabba.com
I added this line of code to WP-Confif.php: define( 'WP_MEMORY_LIMIT', '256M' );
I then changed the PHP version to 8.0 using Multi PHP Manager in WHM
And it works perfectly - with exactly the same plugins and theme as stevejabba.com
I then tried to change stevejabba.com to PHP 7.4 again. The site immediately crashed. "service unavailable 503" if I remember (I changed it back quicksmart. I don't want the site offline)
The code above has also been added to wp-config.php, as it has on sugardaddyguru.com, Aside from that, I haven't changed anything on stevejabba.com
There must be something different about stevejabba.com.
I have asked the server guys too - but can you advise? What do I need to do to get this working?
The server team said this:
Hello,
We have updated the memory_limit setting from 32MB to 512MB in the WHM => Software => MultiPHP INI Editor.
As we can see, the website is working properly now using PHP 7.4
There are now additional error messages about required libraries missing.
I think this looks like a hosting issue rather than a WP one.
If you agree you can close this down!
Hi there,
yeah 32mb is going to struggle on any build. So we agree and glad to hear you got it working!