×
UpdatePHP Pro Log in Register
PHP expiry alert : PHP v8.1 has recently expired. Is your website still running this version? Click here for more details
SAFE versions of PHP: 8.5.12, 8.4.27, 8.3.36, 8.2.35
☰

How PHP errors stop Google crawling and indexing your website

Search engines can only rank pages they can load. When PHP hits an error, the page Googlebot receives may be an error code, a blank page or a page cluttered with warning messages. Any of these can cost you rankings, and because errors often only happen on certain pages or at busy times, they can go unnoticed for weeks.

PHP errors are especially common straight after a PHP upgrade, when older code uses features that have changed or been removed. That's no reason to avoid upgrading, but it is a reason to check carefully afterwards.

The three ways PHP errors show up

  • 500 Internal Server Error: a fatal PHP error stops the page completely and the server returns a 5xx status code.
  • A blank white page: the error is hidden, as it should be on a live site, but nothing is shown either. Worse, the server may still send a 200 OK status, so search engines may index an empty page.
  • Visible warnings: messages such as "Deprecated" or "Warning: Undefined variable" appear in the page itself. They make the site look broken, can reveal file paths to attackers, and can break page layouts or structured data.

How Google reacts

When Googlebot gets 5xx errors it slows down how often it crawls your site, to avoid adding to the load. A short outage is fine. If the errors continue, though, Google eventually drops those URLs from its index, and they only come back after the pages work again and are re-crawled.

Blank or near-empty pages that return 200 may be reported as soft 404s, or indexed with no useful content, which pulls that page's ranking down.

Finding PHP errors that affect SEO

  • Google Search Console: the Pages (page indexing) report lists Server error (5xx) and Soft 404 pages. The Crawl stats report (under Settings) shows how many of Googlebot's requests failed.
  • Your PHP error log: the most reliable source. Your host's control panel usually shows it, or your developer can find it from the error_log setting.
  • A site crawler: desktop SEO crawlers can visit every page and report any that don't return a 200 status.
  • Uptime monitoring: alerts you when the site goes down, often before your visitors tell you.

Good PHP error settings for a live site

  • display_errors = Off: never show errors to visitors (or search engines).
  • log_errors = On: record them in a log file instead, so you can still find and fix them.
  • For planned maintenance, return a 503 Service Unavailable status (ideally with a Retry-After header). Google treats 503 as temporary and will come back later, rather than indexing your maintenance page.

Fixing errors after a PHP upgrade

See our guides to common PHP errors after upgrading and troubleshooting errors after updating PHP. Next time, test your website on the new PHP version first so errors never reach the live site.

Back to Web SEO & Security Articles
Article last updated: 21st October, 2026