Common errors explained

errors, error log, memory, 503, 508, database, plugin, permissions, firewall, 404 · 0 found this helpful

The Logs page explains each error it finds and links to the screen that fixes it. This article lists the common ones, so you can read up before you change anything. Open your logs at Account → Hosting → your site → Logs. See Read your site's error log.

An opened problem, with the explanation and the fix button

The site ran out of memory

PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes)

A page needed more memory than PHP allows, so PHP stopped it part way. Visitors may have seen a blank page or a 500 error.

Raise the memory limit to 256 MB, or 512 MB for a busy shop, under PHP settings. If it keeps happening at a higher limit, the plugin or file named in the error needs an update. See Raise the WordPress memory limit.

Too many visitors at once (503 or 508)

Your plan runs a set number of pages at the same time. When every slot is busy, extra visitors briefly get a 503 or 508 error. Slow pages and bots make this much more likely.

Turn on page caching so fewer visits need PHP, and block busy bots in Security. Resources shows when it happens. See 503 and 508 errors.

The site couldn't connect to its database

Error establishing a database connection
WordPress database error Too many connections

The site asked for its database and was turned away. Usually the database name, user or password in the site's settings file doesn't match.

Compare the details in wp-config.php with Databases. Resetting the database user's password and putting the new one in the file fixes most cases. See Fix database connection errors.

A plugin stopped a page from loading

PHP Fatal error:  Uncaught Error: Call to undefined function wc_get_product() in ~/public_html/wp-content/plugins/shop-sync/sync.php:214

The path names the plugin: here, shop-sync. It usually follows an update to the plugin, WordPress or PHP.

Turn the plugin off under Plugins on the site's dashboard, then update it or ask its maker. See Find a plugin conflict.

Permission denied

PHP Warning:  fopen(~/public_html/uploads/menu.pdf): Failed to open stream: Permission denied

The server tried to open a file, but its permissions or a rule in .htaccess don't allow it. Visitors see a 403 or a broken page.

Folders should be 755 and files 644. Check the folder named in the error in Files. See File permissions and 403 Forbidden.

The firewall blocked a request

ModSecurity: Access denied with code 403 (phase 2). [id "942100"] [msg "SQL Injection Attack Detected"]

Our web application firewall stopped a request that looked like an attack. It's usually right, but a form or page builder can trip it by mistake.

If you were blocked doing something normal, note the time, the page and the rule number (942100 here). Ask us to allow that one rule for your site. See The web application firewall.

Lots of missing pages (404)

When the same site gets dozens of 404s, the Logs page folds them into one row and lists the most requested addresses and where the requests came from.

  • One old address asked for over and over usually means a link elsewhere still points at it. Add a redirect.
  • Many odd addresses like /wp-login.php.bak or /.env from a few IP addresses are bots probing for weaknesses. They're safe to ignore, or block them under Security.

See 404 Not Found.

Other messages

Message What it means Fix
Maximum execution time of 30 seconds exceeded A page ran too long and was stopped Raise max_execution_time in PHP settings for an import, then lower it again
syntax error, unexpected A recent edit left a typo in a PHP file Fix the line named, or restore the file. See PHP errors
Call to undefined function mb_strlen() A PHP extension is off Turn it on. See Choose your PHP version
Cannot modify header information Extra output before <?php Remove blank lines at the top of the file named in "output started at"
Deprecated Old code that still works, for now Update the plugin or theme when you can
Cron job ... failed A scheduled task exited with an error See Cron run history

Was this helpful?

Still stuck? Ask us and we'll walk you through it.