Common WP errors and what they mean
Most WordPress errors point to one broken thing. Site down? Use the steps here. Site up? Add CMSHands, a free plugin for business sites, and ask what the error means.
A free plugin for business sites. Paste the error or a screenshot and ask what it means; asking changes nothing.
Works on sites hosted at
Get past the error by hand
- Copy the exact words on the screen. Write down what you changed last: an update, a new plugin, a setting.
- Open the file manager in your host's control panel, then wp-content/plugins. Add -off to the folder of the plugin you changed last.
- Seeing “Error establishing a database connection”? Open wp-config.php in your site's main folder. Check DB_NAME, DB_USER, DB_PASSWORD and DB_HOST against your host's database page.
- Stuck on “Briefly unavailable for scheduled maintenance”? Delete the file named .maintenance in your site's main folder, then reload.
- Still down? Ask your host to check your site's error log. Tell them when it broke and what you changed last.
CMSHands can't be installed into a site that won't load. These steps come first.
Watch it do this on a real site
While your site loads, paste the error into the chat and ask what's causing it; asking changes nothing.
It finds the cause
When I update a page I get 'Updating failed. The response is not a valid JSON response.' What's causing it?
- Loading a page the way a visitor would
- Reading the error log
- Looking at your plugins
- Listing your plugins and themes
- Reading a file on your site
- Preparing the change for your OK
I'll check the site's REST endpoint and its log.
The cause is a plugin on your site called Quillmoor Gift Notes (folder qmcap-json-noise, version 0.1.0, active).
It prints one line of text — an HTML comment — in front of every reply from your site's REST API. That is the channel the block editor uses to save, and it expects the reply to be pure JSON data. With that line in front, the editor can't read the reply, so it reports "not a valid JSON response" and refuses the save. I fetched your /wp-json/ endpoint just now and it does begin with that line: <!-- Quillmoor Gift Notes 0.1.0: gift note box loaded -->.
Your pages, wp-admin and what visitors see are not affected — only saving from the editor.
The fix is to switch that plugin off, and it is not doing anything for your visitors (it isn't listed on wordpress.org). I tried to propose switching it off and the call did not go through: a firewall on the site refused my request to its plugin list, so I could not make the change. The plugin isn't in our records of your installed plugins either. If you switch it off yourself under Plugins, the editor should save normally again — and tell me if it doesn't, so I can look again.
Questions change nothing, so there's no button: this is the answer it gave.
- Send a screenshot of an error and ask what it means. It reads JPEG, PNG, GIF and WebP pictures.
- While your site loads, ask “What are the errors on my site?” and it reads WP's debug log, once it's on.
- When a site that had CMSHands crashes, it reads the error log to find the cause.
More it does here (2)
- We prepare the fix, and a person at CMSHands approves it before it runs. Tried on our test sites; hosts differ.
- It checks once a day on the free plan, at once on a crash, and says in plain English what broke.
Do this on your own site
That's the whole job. The plugin is free: 30 questions a day, no account. Asking changes nothing on your site.
What it means
A WP error means code on your site, or the server under it, hit a problem it can't get past. So part of a page, or all of it, stops.
- A plugin update with a bug, or one that clashes with another plugin or your theme.
- A wrong database name, user or password in wp-config.php, or a database server that's down.
- An update that stopped halfway and left its .maintenance file behind.
- Your site ran out of memory, because a plugin or page needs more than it was given.
- Your host moved to a newer PHP version (the language WP runs on; your host sets its version), and an older plugin can't run on it.
- The two site addresses in Settings › General disagree, so visitors get sent around in a loop.
- A file upload bigger than your host allows, or a form left open too long.
How to tell which error you have
The words on screen are your best clue. Copy them exactly before you change anything.
Some errors stop every page, your dashboard too. Others break one button, like the editor's “not a valid JSON response”. Nothing loads? Start with what to do when your site is down.
Then ask what changed last: an update, a new plugin, a host move? Undo it first.
Can you still log in? Open Tools › Site Health. Its Status tab lists problems WP found, and Info shows your PHP version and memory limit.
The errors you'll see most
“There has been a critical error on this website.”
Code in a plugin, your theme or WP itself crashed. Rename that plugin's folder in wp-content/plugins to switch it off. Each cause of the critical error.
“Error establishing a database connection”
WP can't reach its database; your posts are still there. Check the DB_ lines in wp-config.php against your host's database page. All the causes.
“Briefly unavailable for scheduled maintenance. Check back in a minute.”
An update stopped halfway and left a file named .maintenance. Delete it from your site's main folder, then run the update again. More on a site stuck in maintenance.
A blank white page
Some hosts show a blank page when code crashes. Treat it like the critical error. The white screen of death.
“Allowed memory size of … bytes exhausted”
A plugin or page needed more memory than WP was given. Add define( 'WP_MEMORY_LIMIT', '256M' ); to wp-config.php, above the line with “That's all, stop editing!”. If it stays, ask your host to raise it.
500 Internal Server Error
Your server sent this, not WP. A broken .htaccess file is a common cause: rename it to .htaccess-off and reload. Other causes of the 500 error.
Too many redirects
WordPress Address (URL) and Site Address (URL) in Settings › General often disagree, one with https and one without. More on too many redirects.
“The link you followed has expired.”
An upload is bigger than your host allows, or a form sat open too long. Reload and try again. For big files, ask your host to raise the upload limit.
“Sorry, you are not allowed to access this page.”
Your account doesn't have the role that screen needs, or a plugin moved it. Ask the person who runs your site, or switch off the plugin you added last.
When the words don't help
Read the error log
You can ask WP to write every error to a file. Open wp-config.php and, above the line with “That's all, stop editing!”, add these 3 lines:
define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false );
Reload the broken page, open wp-content/debug.log and find the last “PHP Fatal error” line (what it means). The folder after plugins or themes in its path is what crashed. How to read each line.
When you're done, set WP_DEBUG back to false and delete debug.log: anyone who guesses its address can read it.
Undo the last change
Most errors start right after a change. Switch off the plugin you changed last, or put back the wp-config.php you edited. If an update did it: when a plugin update breaks your site.
With CMSHands on a site that still loads, you can ask the chat to switch a plugin off, and undo switches it back on. For plugins from the WP plugin directory, you can also ask it to go back to the version that worked.
How to stop errors coming back
Update one plugin at a time, and open your site after each one. If it breaks, you know which update did it.
When CMSHands updates a plugin from the WP plugin directory, it checks your site after, and the old version goes back on its own if the site got worse. See that update.
Keep the Administration Email Address in Settings › General on an inbox you read. That's where WP sends word of a crash.
Ask for a health report now and then. Ours on the test site answered in about 8 seconds and changed nothing.
Or ask for it in the chat
“When I update a page I get 'Updating failed. The response is not a valid JSON response.' What's causing it?”
Why it won't wreck your site
- Asking changes nothing. A question only reads your site. It looks things up and tells you. No card, no button.
- Nothing changes until you press the button. Every change comes as a card that names it. Nothing happens until you press the button or Not now.
- One click undoes it. When something can't be undone, like deleting a page or a plugin, the card says so before you press.
Where CMSHands stops
- It can't be installed into a site that is already down.A plugin needs a working dashboard to install. Get your site back with the steps above first, then add it before anything else breaks.
- A person approves every repairNothing in a repair runs until a person at CMSHands has checked it. It doesn't fix things alone overnight.
- It can't fix your host or change your PHP versionA server that's down, your PHP version, your domain and your email belong to your host. Ask them about those.
- It doesn't clean up a hacked siteIf someone broke in and changed your files, ask your host or a security company for help.
More it can do
- Updates and going back:
Go back to a plugin that worked
“Duplicate Page stopped working after the update. Go back to the version that worked.”
It took 1 minute 28 seconds on our test site. - Health and checkups:
A health check of your site
“Give me a quick health report.”
It took 8 seconds on our test site. - Updates and going back:
Update plugins safely
“Update Contact Form 7 and check my site after.”
It took 17 seconds on our test site.
Questions about WordPress errors
What are the most common WordPress errors?
The critical error, “Error establishing a database connection”, a site stuck in maintenance, a memory error, a 500 server error and too many redirects. Most start right after a change: an update, a new plugin, a host move or a new PHP version. Undo that change first.
How do I fix WordPress errors?
Copy the exact words on screen, then undo your last change. Rename the folder of the plugin you changed last in wp-content/plugins, or put back the wp-config.php you edited. Can't tell what changed? Turn on the error log and read its last “PHP Fatal error” line. It names the file that failed.
Is there a WordPress error checker?
Yes, WP has one built in. Log in and open Tools › Site Health: its Status tab lists problems WP found. For crashes, turn on WP_DEBUG_LOG and read wp-content/debug.log. With CMSHands on your site, you can also ask the chat “What are the errors on my site?”
What does an HTTP error mean?
It's a number your server sends in place of the page. 500 means the server failed, often from a crash or a broken .htaccess file. 503 means it's busy or in maintenance. 404 means the page isn't there. The number tells you where to look first.
Can CMSHands fix an error on my site right now?
If your dashboard opens, often yes. Paste the error or a screenshot and ask what it means; that's free and changes nothing. Or ask it to switch a plugin off or put back the version that worked: you approve each card, and Undo puts it back. If your site is down without it, use the steps above first: it can't be installed into a site that won't load.
Written by the CMSHands team. First published .
Try it on your own site
- 1. Download the plugin.A free zip file
- 2. Upload and activate it.Plugins › Add Plugin › Upload Plugin
- 3. Give CMSHands a task.Press Start working, then ask in your words
Works best on WP 6.3 or newer with PHP 8.0 or newer. What works on older sites
