Can't update PHP

Hi! When I go into my hosting provider and update php, the website disappears completely. Can you help? I’m running the website on a newly purchased version of Pro.

what version of PHP?

Try disabling all plugins and clearing cache, then adding each plugin back one by one until it fails again to find out which plugins might be causing the problem

It is currently running on 7.4.33
All plugins are up to date. I will take your advice and disable plugins one by one.

Ok, I deactivated every single plugin and cleared the cache. I then went into my hosting provider dashboard and tried to upgrade the php and the website disappeared again. I reverted back to 7.4. What should I do next?

If you have access to the backend of the website, try going to WPadmin - Cornerstone - Settings - Clear Cache
also clear all caches AFTER updating the php, if you still have access

Also what version of PHP are you trying to update to? Personally it runs fine on 8.3 for me

Ok, I went to WPadmin - Cornerstone - Settings - Clear Cache. I cleared and pressed save. I then went into the host and tried to update to 8.3. It did not work for me – the website disappeared again.

Sorry you need to do all the clearing of cache after updating the php (if you have backend acces), if you don’t have backend access try clearing the cache from your server host

Hello @aprildoty,

I tried to access your website and dashboard, but they are not accessible right now. Please add the code below to your wp-config.php to enable debugging, and the error will be logged in debug.log inside the wp-content folder.

You can let us know if you find any error that is related to our theme or theme bundled plugins. We can do further investigation based on that.

// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );

// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );

// Disable display of errors and warnings 
define( 'WP_DEBUG_DISPLAY', false );
//SET PHP INI DISPLAY ERROR FALSE
@ini_set( 'display_errors', 0 );

Please find the video that will help you to edit wp-config.php and add the above code: https://www.youtube.com/watch?v=3SDPTafEM8o

Please share the FTP details in the secure note so that we can debug it properly.

Thanks

@aprildoty, there’s a chance that your provider doesn’t have the same php mods installed/activated on the newer versions of php.

I use CloudLinux on my hosting servers. for example, if you were to change php using php selector (a CloudLinux feature), there’s an enormous list of php mods associated with the different php version. some of which you might have to enable in order to get Wordpress working.

if you happen to find PHP Selector in your cPanel, try clicking on “reset” on the mods panel when your switch php. if that still doesn’t work, take a screenshot of your 7.4 mods and make sure that all of the same ones are selected on php 8.3.

CloudLinux or not, I’m willing to bet that the problem is related to missing php mods.