ResolvedWidgets update throws an “not valid JSON response” error

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #32321
    pekijano14
    Participant

    Hi,

    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,
    Pekijano

    #32325
    Althemist
    Keymaster

    Hi Pekijano,

    Sounds like a JS error on the widgets page. Is there something unusual in the console?

    #32346
    pekijano14
    Participant

    Yes, 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”

    #32347
    Althemist
    Keymaster

    That’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?

    #32348
    pekijano14
    Participant

    Of course. Can you give me your e-mail adress where I can send you credentials for admin access?

    #32349
    Althemist
    Keymaster

    You 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.

    #32350
    pekijano14
    Participant
    This reply has been marked as private.
    #32351
    Althemist
    Keymaster

    Just the hosting name/website

    #32353
    Althemist
    Keymaster

    We 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.

    #32449
    pekijano14
    Participant

    Yes, 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! 🙂

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register