ResolvedWidgets update throws an “not valid JSON response” error
- This topic has 9 replies, 2 voices, and was last updated 1 year, 9 months ago by
pekijano14.
- AuthorPosts
- December 2, 2021 at 7:41 pm #32321
pekijano14
ParticipantHi,
I have an issue with updating the widgets page. When I go to “Appearance -> Widgets” (/wp-admin/widgets.php) and after changing any of the widgets data click on “Update” button in top right corner, I get the error message on the bottom of the page: “There was an error. The response is not a valid JSON response.”. In developer tools’ Network tab I see that I get error ‘405: Method Not Allowed”
Regards,
PekijanoDecember 3, 2021 at 12:03 pm #32325Althemist
KeymasterHi Pekijano,
Sounds like a JS error on the widgets page. Is there something unusual in the console?
December 3, 2021 at 5:03 pm #32346pekijano14
ParticipantYes, when I click the “Update” button the only error I get in the console is:
Status: 405 Method Not Allowed Version: HTTP/2 Transferred: 301 B (150 B size) Referrer Policy: strict-origin-when-cross-origin
for the: https://{websiteUrl}/wp-json/batch/v1?_locale=user, where {websiteUrl} is the url of my site.
All other stuff are “Status: 200 OK”
December 3, 2021 at 5:18 pm #32347Althemist
KeymasterThat’s really strange. 405 is a server permission error which means there are some restrictions set on your hosting. Could you, please give us temporary admin access to your site so we can check? Also, where is your site hosted?
December 3, 2021 at 5:27 pm #32348pekijano14
ParticipantOf course. Can you give me your e-mail adress where I can send you credentials for admin access?
December 3, 2021 at 5:29 pm #32349Althemist
KeymasterYou can do it here. Just don’t forget to mark the “Set as private reply” checkbox. It’s 100% safe. No one except you and our staff will be able to see it.
December 3, 2021 at 5:36 pm #32350pekijano14
ParticipantThis reply has been marked as private.December 3, 2021 at 5:37 pm #32351Althemist
KeymasterJust the hosting name/website
December 3, 2021 at 6:11 pm #32353Althemist
KeymasterWe have just checked your website.
Unfortunately, can’t tell the exact reason for that problem, but it’s definitely not theme related.
Most probably some of your plugins have a widget which is not Gutenberg/Blocks compatible, because when we install and enable the Classic Widgets plugin everything works fine. We can see there are custom widgets for the weMailForm and WP Call Button plugins, so these are the “prime suspects”. We left the Classic Widgets plugin on your site active, so you can now work on the widgets.
Hope this helps.
December 7, 2021 at 9:24 pm #32449pekijano14
ParticipantYes, you were right, when I deactivated some of the plugins outside that theme that I added, the theme worked as when it was installed, the page with widgets works ok again, so the problem was, as you mentioned, with the newly added widgets.
Thank you very much! Great support, as always! 🙂
- AuthorPosts
You must be logged in and have valid license to reply to this topic.