Passer la navigation

[Résolu] Rest API error reported by WP

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:
The REST API is one way that WordPress and other applications communicate with the server. For example, the block editor screen relies on the REST API to display and save your posts and pages.

Solution:
I checked that the customer's site has Cloudfare CDN on.

I found a similar case where the culprit of this issue was Cloudfare firewall blocking wp-json/wp/v2 requests.

Please check: https://toolset.com/forums/topic/updating-failed-the-response-is-not-a-valid-json-response-3/#post-2159331

I asked the customer to try to exclude wp-admin features from the firewall rules by following the instructions available here: https://developers.cloudflare.com/support/third-party-software/content-management-system-cms/improving-web-security-for-content-management-systems-like-wordpress/

Relevant Documentation:
https://developers.cloudflare.com/support/third-party-software/content-management-system-cms/improving-web-security-for-content-management-systems-like-wordpress/

This support ticket is created Il y a 2 years, 4 months. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Fuseau horaire du supporter : America/Sao_Paulo (GMT-03:00)

Marqué : 

Ce sujet contient 1 reply, a 2 voix.

Dernière mise à jour par Mateus Getulio Il y a 2 years, 4 months.

Assisté par: Mateus Getulio.

Auteur
Publications
#2678120
#2678177

Mateus Getulio
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Sao_Paulo (GMT-03:00)

Hello there,

I can see your site has Cloudfare CDN on.

I found a similar case where the culprit of this issue was Cloudfare firewall blocking wp-json/wp/v2 requests.

Please check: https://toolset.com/forums/topic/updating-failed-the-response-is-not-a-valid-json-response-3/#post-2159331

Can you please try to exclude wp-admin features from the firewall rules by following the instructions available here: lien caché

Please see if the issue ceases after that.

Thank you
Mateus