buildElementorapiREST APIsettingsServer Configurationinfoajaxcodejsonerrorsave errorlabelCommonwarningModerate

Elementor: Failed to save: The response is not a valid JSON response.

Elementor shows a red toast when you try to save a page. The message reads “Failed to save: The response is not a valid JSON response.” The editor stops the operation and reverts to the previous version.

The editor uses the WordPress REST API to send the page data. The API must return a JSON payload. If the server returns HTML, a redirect page, or an error page, the JavaScript parser throws a syntax error. The result is the JSON response error.

Typical triggers include a firewall or security plugin that blocks the wp‑json endpoint, a mismatch between the site URL and the protocol used in the admin, an unsaved permalink structure, a PHP memory exhaustion error, or extra output from a theme or custom snippet. Any of these changes the response from JSON to HTML.

Symptoms

[dashicons-warning]
Red error toast
A red notification appears in the Elementor editor stating the save failed.
[dashicons-warning]
Save button spins
The Save or Publish button continues to spin and never confirms the action.
[dashicons-database]
Network shows HTML
Browser dev tools show the REST request returning HTML or a 403/404 status.

Common Causes

REST API blocked
A firewall, security plugin or server rule intercepts the wp‑json request and returns an HTML error page.
Mixed content URL
Site URL uses http while the admin loads over https causing a redirect that changes the response to HTML.
Permalink not saved
Permalink structure is not flushed causing the REST endpoint to resolve to a 404 page.
PHP memory limit
Elementor triggers a memory exhaustion error and PHP returns a fatal error page.
Theme or custom code output
A function prints content before JSON is generated, corrupting the response.
Need this fixed right now?

Don't waste your day debugging. Our experts can Fix your issues in under 2 hours.*

Success Rate

100% Guaranteed

Starting from

$35 /hour
99+

Trusted by Business Owners

“I spent 3 days trying to fix the Elementor loading loop. These guys fixed it in 20 minutes. Lifesavers!”

— Sarah J., Web Designer

Related Issues

contact_mail
Contact Form 7: REST API request failed: 503 Service Unavailable
A 503 Service Unavailable response stops Contact Form 7 from sending data...
apiREST APIerror503descriptioncontact-form-7
contact_mail
Contact Form 7: REST API request failed: 429 Too Many Requests

The form tries to send data through the WordPress REST API. The...

apiREST APIerrorerrorsecurityfirewalldescriptioncontact-form-7settingsserver_configuration
contact_mail
Contact Form 7: REST API request failed: 401 Unauthorized

The form tries to send data via the WordPress REST API. The...

apiREST APIadmin_panel_settingspermissionsdescriptioncontact-form-7lock401
contact_mail
Contact Form 7: File upload error: temporary directory missing

The error appears when Contact Form 7 cannot locate a writable temporary...

codePHPcloud_offupload erroradmin_panel_settingspermissionsdescriptiontemporary filedescriptioncontact-form-7
contact_mail
Contact Form 7: Mail (2) sending failed: PHP mail() function disabled

Contact Form 7 reports a failure for Mail (2) when the PHP...

codePHPerrorerrordescriptioncontact-form-7mailMailsettingsserver_configuration
contact_mail
Contact Form 7: Mail (2) sending failed: SSL certificate verification failed

Contact Form 7 reports a failure when trying to send the secondary...

errorerrorlocksslcodecURLdescriptioncontact-form-7