Archived topic
Widgets problem
13 replies · Started by Damon on December 20, 2021
Hi, I haven't updated my footer widgets in about 2 years. Trying to update them now, I'm getting the error below. There's also the option to convert to blocks, which I'm wondering is part of the problem. Any suggestions? Thank you!
There was an error. The response is not a valid JSON response.
Hi there,
The issue is likely related to what widgets were added to the footer widget area prior to the update.
If some contents were from plugins that are not updated as well, issues like this are bound to happen.
That said, can you check the widgets if there were anything coming from third-party plugins? If yes, can you check if they're updated or tested up to WP 5.8.2?
Thank you for your thoughtful reply. No third party plugins. Just GeneratePress.
Hi Damon,
I'm not seeing any consoles on your site:
https://www.screencast.com/t/cpFau9WK2H
It looks normal to me.
It will be nice if you can show us a screenshot of the error you see.
Let me know if I miss anything.
Here is a screenshot showing the error message:
https://www.dropbox.com/s/r26i9j88fi73ced/Screen%20Shot%202021-12-21%20at%204.07.11%20PM.png?dl=0
Do you have trouble converting it to block?
I think it's better to convert to block as WP would stop supporting classic editor in 10 days.
Let me know how it goes.
I would love to. It gives the same error message when attempting to Update (save) the page.
Hum.. can you share the admin access so we can take a look at the backend?
Please use private info field for sensitive information :)
See attached. Thank you!
Thanks!
I tried using https://your-domain.com/admin/ & https://your-domain.com/wp-admin/ to log in, but both lead to the 404 page.
Can you check?
Sorry, try ...your-domain/login
The error generally means that there is a problem communicating the change with the server.
I've done some debug steps for you:
1. checked if WordPress URL and Site URL are matching and correct in Settings > General. -- Good
2. checked in Tools > Site Health to make sure there are no ‘errors’ warnings related to the Rest API. -- Good
3. rebuilt your permalinks by going to Settings > Permalinks and click Save Changes.
But the issue persists, so next step is for you:
Remove any widgets / blocks you have in all the widgets. If that resolves the issue then one of those widgets may have included some invalid code.
This problem still persists.
I removed all plugins, but that did not help.
I am unable to edit or remove any widgets/blocks, since the error message simply returns when I try to update the page:
There was an error. The response is not a valid JSON response.
Everything else on the website is working fine, but I am unable to make edits to the footer. Can you help me remove it completely, and I'll rebuild the footer from scratch?
Hi there,
try disabling the block editor in widgets by adding the PHP snippet provided here:
https://docs.generatepress.com/article/disable-the-block-editor-in-widgets/
Then you should be able to continue using those widgets or remove them and update them with widgets that support block editing.