infoWordPress CoreapiREST APIerrorerrorcodejsoncodeJavaScriptextensionpluginlabelCommonwarningModerate

Failed to load block: Invalid block JSON

WordPress loads a block through the REST API. The API must return a JSON payload that describes the block. When the response is HTML, an error appears in the editor.

The error indicates the editor cannot parse the block definition. It usually happens after a migration, a plugin update, or a security rule that blocks the REST request.

Symptoms

[dashicons-warning]
Editor banner
An orange banner shows the message Failed to load block: Invalid block JSON.
[dashicons-admin-site]
Placeholder block
The block appears as a gray placeholder with a Retry button.
[dashicons-no]
Publish failure
Saving the post shows Updating failed. The response is not a valid JSON response.

Common Causes

Firewall or WAF
A ModSecurity rule blocks the REST endpoint and returns HTML.
Mixed HTTP/HTTPS URLs
Site URL uses a different protocol causing the request to redirect to a non‑JSON page.
Corrupt block.json
The block’s JSON file has syntax errors or is missing.
Plugin or theme conflict
A plugin or theme filters REST requests or breaks block registration.
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