Debugging WordPress after a PHP upgrade

wordpressphptroubleshootinghosting

A PHP upgrade is great—until WordPress throws a blank screen or a 500. This flow helps you isolate whether the problem is a plugin, theme, or config so you can fix it quickly.

Identify the failure type

Fast isolation steps

  1. Check Apache error log: /var/log/apache2/error.log
  2. Check PHP-FPM logs (location depends on version/config)
  3. Temporarily disable plugins (rename the plugin folder) to isolate offenders
  4. Switch to a default theme if needed

Common causes

FAQ

Why does WordPress break after a PHP upgrade?
Core is usually compatible; plugins and themes often rely on deprecated features or assume an older PHP version. See why PHP upgrades break WordPress for more detail.

What’s the fastest way to get the site back online?
Disable plugins via the filesystem (rename wp-content/plugins or the specific plugin folder) or use WP-CLI if you have shell access. Then re-enable one by one to find the culprit.