Support » Networking WordPress » rest_no_route when trying to edit the widgets
rest_no_route when trying to edit the widgets
-
Hi !
I run a WordPress 6.4.2 multisite, where I just noticed a strange behaviour when managing the widgets from the Admin -> Appareance panel, with many errors showing up in the dev console once the widget are loaded.
After a careful review of the developer console, the error is trigerred by each widget loading, with the following messages:
By trying to play with the wp-json URL, the following one works well and provides a valid JSON object:
https://www.MYWEBSITE.com/SUBSITE1/en/wp-json/wp/v2/
However the following one gives a “No route was found matching the URL and request method” error:
Anyway, I don’t really know where this error comes from and why my widgets have suddenly stopped working.
Any idea ?
- This topic was modified 2 weeks, 2 days ago by James Huff. Reason: moved to Networking WordPress since this is a multisite issue
-
Hi @looic
This probably comes from the Beautiful taxonomy filters plugin which hasn’t been tested with the latest 3 major releases of WordPress and was updated 3 years ago.
Do you have this plugin installed? If so, try disabling it temporarily to see if the error goes away. You can then open a ticket on the support forum dedicated to the plugin , or look for an alternative.
If you are not using this plugin or disabling it does not remove the error, let us know.
- This reply was modified 2 weeks, 2 days ago by luk4 × cyberia╱eu.
Thanks for your reply ! I have also developed one plugin for my website and I get the same error. Can you kindly tell me or head me to a resource to understand what’s missing here ? Is that linked to the widget functions ?
- This reply was modified 2 weeks, 2 days ago by Looic.
Have a look at REST API Changes in WordPress 5.8 concerning the widgets and the Encode Endpoint part especiallly: https://make.wordpress.org/core/2021/06/29/rest-api-changes-in-wordpress-5-8/
You can also try to switch back to the classic widget editor: https://make.wordpress.org/core/2021/06/29/block-based-widgets-editor-in-wordpress-5-8/
Awesome, thanks ! I’ll have a look at the classic widget editor for the short-term and work on updating my plugin then. Many thanks !
You’re welcome! Please, don’t forget to mark your post as solved if this is the case. Thank you!
- You must be logged in to reply to this topic.