WordPress

Elementor Server Error When Saving: How to Fix 404, 500, 503 and “Not Valid JSON”

Elementor Server Error 500, 404 or “not valid JSON” on Update? What each error means and the checks that find the cause: logs, memory, plugins, rules.

Elementor Server Error When Saving: How to Fix 404, 500, 503 and “Not Valid JSON”
On this page 11 sections
  1. What each error means
  2. Step 1. Read the PHP error log
  3. Step 2. Turn off error output on the live site
  4. Step 3. Raise the PHP memory limit
  5. Step 4. Test with other plugins off
  6. Step 5. Check the server rules
  7. Step 6. 502, 503 and 504: the server gave up
  8. Only one page fails
  9. Errors that come from version mismatches
  10. On XStore
  11. FAQ

When Elementor shows “Server Error 500”, “Server Error 404” or “Unexpected token ‘<’ … is not valid JSON” on Update, the editor asked the server to save the page and got a broken answer back. The cause is on the server side: a PHP error, a memory limit, a security rule or a plugin that interferes. The fix is to find out which one. Start with the PHP error log, then raise the memory limit to 512M, then test with other plugins off.

Below, each error message is matched with its usual causes, followed by the checks in the order that finds the cause fastest.

We build WooCommerce themes at 8theme, and most stores on XStore, our main theme, are built with Elementor. About 30 topics in our support forum name a server error in the Elementor editor, a few every year since 2020 (counted in November 2026). When we trace them, three causes come up again and again: a conflict with another plugin, a low PHP memory limit, and PHP warnings printed into the server’s answer.

What each error means

Error on Update What happened Usual causes
Server Error 500 PHP stopped with a fatal error while saving Memory limit, a plugin conflict, a PHP error in a plugin or theme
Server Error 404 The save request did not reach WordPress Permalinks, a security rule (ModSecurity), a firewall
Server Error 403 The server refused the request A security plugin or a server firewall
Server Error 502, 503 or 504 The server ran out of time or resources Hosting limits, a slow plugin, a long page
Unexpected token ‘<’ … is not valid JSON The editor expected data and got an HTML page or a PHP warning Debug output on screen, an error page from the host, a plugin warning

The JSON error says more than it seems. The < it complains about is the start of HTML. Very often the answer begins with text like <br /> <b>Warning</b>, which is a PHP warning printed in front of the data. Elementor cannot read the data after it and stops.

Step 1. Read the PHP error log

The log names the file and line that broke the save. It saves guessing.

  • In the hosting panel, look for Error log or Logs.
  • In WooCommerce, open WooCommerce → Status → Logs and pick the log with today’s date. Fatal errors are saved there under the name “fatal-errors”.
  • With WordPress debugging, add these lines to wp-config.php. Errors are then written to /wp-content/debug.log and not shown to visitors:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

Turn debugging off again when you are done. A debug.log file left on a live site can be read by anyone who knows the address.

If the log names a plugin folder, that plugin is the first suspect. If it says “Allowed memory size … exhausted”, go to step 3.

Step 2. Turn off error output on the live site

If you see the JSON error, check wp-config.php first. If WP_DEBUG is true and WP_DEBUG_DISPLAY is not set to false, every PHP warning is printed into the server’s answers, and they break the editor’s requests.

On a live site, set:

define( 'WP_DEBUG', false );

Save the page again. This alone fixes the JSON error in many cases we see. One of them came after a WordPress 6.7 update, where a core notice broke saving until debugging was turned off. The warning is still worth reporting to the author of the plugin that causes it.

Step 3. Raise the PHP memory limit

Elementor’s requirements list 256 MB as the minimum, 512 MB as recommended and 768 MB for best performance. Check the current value in Elementor’s System Info screen or in Tools → Site Health → Info → Server.

Add this line to wp-config.php, above the line that says to stop editing:

define( 'WP_MEMORY_LIMIT', '512M' );

If the value does not change, the server has a lower ceiling and only the host can raise it. Our guide to the WordPress memory limit covers every place to set it.

Step 4. Test with other plugins off

Deactivate all plugins except Elementor, Elementor Pro or Pro Elements, WooCommerce and your theme’s core plugin. Save the page. If it works, turn the plugins back on one at a time until the error returns.

Do this on a staging copy if the store is live. The usual suspects are security, cache and optimization plugins, and add-on packs with many widgets.

Elementor’s Safe Mode is a quicker first test. It loads the editor without other plugins and without the theme, for logged-in admins only. Turn it on in Elementor’s Tools screen, on the General tab. In recent Elementor versions, the Tools and Settings screens sit under Elementor → Editor. If the page saves in Safe Mode, the cause is a plugin or the theme.

Step 5. Check the server rules

If the log shows nothing and the error is 404 or 403, the request is usually blocked before WordPress sees it.

  • Permalinks: open Settings → Permalinks and press Save Changes without changing anything. This rewrites the rules.
  • ModSecurity and firewalls: ask the host whether a security rule blocked a request to admin-ajax.php at the time you saved. Elementor’s help pages suggest asking the host to turn ModSecurity off for a test.
  • Security plugins: check the plugin’s log for blocked requests.
  • Editor loader: in Elementor’s Advanced settings, set Switch Editor Loader Method to Enable. Elementor describes it as an option for troubleshooting server configuration conflicts.

Step 6. 502, 503 and 504: the server gave up

These errors come from the server or the hosting platform, not from WordPress. The request took too long or used more resources than the plan allows. On shared hosting, a limit on processes or CPU time is a common reason.

  • Ask the host what the log shows at the time of the error. They see limits that you do not.
  • Raise max_execution_time to 120 seconds or more.
  • Split very long pages. A page with hundreds of widgets is heavy to save. Move repeated sections into templates.
  • Look at the load: a crawler, a backup or an import running at the same moment can push the server over its limits.

Only one page fails

If every page saves except one, the page itself is the problem, often a damaged widget or very many revisions.

  1. In the editor, use Save as Template on that page.
  2. Create a new page and insert the template.
  3. Check that the new page saves, then swap the pages.

Old revisions can also make a page heavy. To keep the number of revisions down for new edits, add this line to wp-config.php:

define( 'WP_POST_REVISIONS', 5 );

Errors that come from version mismatches

Elementor, Elementor Pro and Pro Elements are updated separately. When one is much newer than the other, the editor can throw warnings that break saving. The warning about Undefined array key "promotionWidgets" was one of these in 2025. It came from a Pro Elements version that did not match the Elementor version.

Update Elementor and your Pro plugin (Elementor Pro or Pro Elements) to matching versions. If a fresh Elementor update caused the error, roll Elementor back to the previous version until the matching Pro update arrives. You can do that on the Version Control tab of Elementor’s Tools screen.

On XStore

XStore by 8theme works with the free Elementor, with Elementor Pro and with Pro Elements. When a saving error appears, check these as well:

  • Update the XStore theme and the XStore Core plugin together. They are released as a pair.
  • Check XStore → System Requirements. It shows the memory limit, max_input_vars and the time limit next to what the theme needs.
  • Test with the default theme. If the error stays with the theme switched, the cause is not in the theme.

FAQ

What does “Unexpected token ‘<’ is not valid JSON” mean in Elementor?

The editor expected data and got HTML instead, often a PHP warning or an error page from the host. Turn off error display on the live site, then read the error log to find the plugin that prints the warning.

How do I fix Server Error 500 in Elementor?

Read the PHP error log first. The usual fixes are a 512M memory limit, an update or removal of the plugin named in the log, or a fix for the PHP error it shows.

Why does Elementor show a 404 error when I click Update?

The save request was blocked before it reached WordPress. Re-save the permalinks, then ask the host whether ModSecurity or a firewall blocked the request.

Does Safe Mode change my site?

No. Safe Mode only changes how the editor loads for logged-in admins. Visitors see the normal site, and you can turn it off in the same place.

Can a theme cause Elementor saving errors?

It can, like any plugin. To check, switch to a default theme on a staging copy and save the page. If the error stays, the theme is not the cause.

What should I check first on an XStore site?

Update XStore and the XStore Core plugin together, then open XStore → System Requirements. XStore by 8theme lists the memory limit, the time limit and max_input_vars there, next to what the theme needs. Low values there are a common cause of saving errors.

Share

Written by

Rose Tyler

Rose writes practical WordPress and WooCommerce guides for the 8theme blog.

All 41 articles by Rose Tyler