Saltar navegación

[Resuelto] Rest API error reported by WP

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

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 2 years, 4 months ago. 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 -

Zona horaria del colaborador: America/Sao_Paulo (GMT-03:00)

Etiquetado: 

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Mateus Getulio 2 years, 4 months ago.

Asistido por: Mateus Getulio.

Autor
Mensajes
#2678120
#2678177

Mateus Getulio
Colaborador

Idiomas: Inglés (English )

Zona horaria: 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: enlace oculto

Please see if the issue ceases after that.

Thank you
Mateus