We use cookies for functional purposes, to make the site easier to use and to create anonymous statistics. If you do not block cookies, you agree to their use and to their being stored on your device.
Privacy Policy    How do I turn off cookies? I ACCEPT
Sign in Create a free account

How do I understand the most common PHP errors?

If your site shows an error or a blank white page, first check the "Error logs" next to the domain (see the previous article) - you'll see the exact message there. Here are the most common ones:

500 Internal Server Error
A generic server error - usually a misconfigured .htaccess file, an exceeded resource limit, or a bug in the application code. Check the error log to see the real cause - the 500 message itself doesn't show it.

White Screen of Death
Usually a fatal PHP error that isn't shown on the page (since error display is disabled in production) but is recorded in the error log. The most common cause: an incompatible plugin/theme after an update.

"Allowed memory size of X bytes exhausted"
The application (most often WordPress with many plugins) needs more RAM than it's been allocated. Disable unused plugins, or contact us if the limit needs raising.

"Fatal error: Uncaught Error: Call to undefined function/class"
A PHP extension or file is missing - often appears after an interrupted plugin/theme update, or when a plugin requires a PHP extension you don't have enabled. Check whether all plugin files uploaded completely.

"Maximum execution time of X seconds exceeded"
A script ran too long (e.g. importing a large database, generating a big report). Try splitting the operation into smaller parts; if it's a one-off, legitimate operation, contact us.

"Parse error: syntax error, unexpected..."
A PHP syntax error - usually after manually editing a theme/plugin file (missing bracket, semicolon). The site stops working entirely until the file is fixed - if you didn't edit anything manually, it usually means a file got corrupted during a failed upload/update.

Errors after changing PHP version
Some older plugins/themes don't work correctly on newer PHP versions (and conversely - the newest ones require a newer PHP than you have set). You can change the PHP version in the domain settings - if errors appeared right after such a change, try reverting to the previous version.

294 views
Didn't find an answer? Contact us.