A website stopped working after a PHP version change
Diagnosing a site that broke right after switching to a different PHP version.
An older application, an outdated plugin, or a theme that hasn't been updated in a while can stop working the moment PHP is upgraded to a newer version, or occasionally the reverse. This is a compatibility issue in the application itself rather than a fault with the server.
Steps
- Click Visitors & Logs and check the domain's error log right after the switch. A PHP version mismatch almost always produces a specific, readable error naming a function or a piece of code the application relies on.
- Check whether the application, or any plugin or theme it uses, is due an update. Software that hasn't been updated in a long time is the most common cause of this kind of break.
- If the application genuinely can't run on the new PHP version yet, open Domains & SSL, click Manage next to the domain, and switch that one domain's PHP tab back to its previous version while the customer updates their software.
Tip: different domains, even under the same account, can each run their own PHP version. Switching one domain back while you investigate never affects any other website on the account.