• haakonrjdyplink

    (@haakonrjdyplink)


    Hello.

    We experienced a issue where we cannot save changes to widgets when using wp-admin/customize.php, for editing widgets.

    When making a change to a widgets content a
    /wp-admin/admin-ajax.php
    request with action update-widget is sent, and tries to save the changes. It then fails with the response {“success”:false,”data”:”widget_setting_too_many_options”}.

    This error occurs due to Wordpdress having some verification that only allows one option to be updated on the update-widget action. If it registeres more than one option change it will return this error. The problem is that the wphb_settings option is also updated, due to the widget_update_callback filter running.

    Our solution was a override this filter, where we remove it if the ajax action is update-widget. This solved the problem for us.

    NB! This error does not occur on the admin widget page, as it does not use this ajax action to save changes to the widgets, only on /wp-admin/customize.php. Page caching needs to be active for the error to occur.

    best regards

    Haakon Reiss-Jacobsen Dyplink AS

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @haakonrjdyplink,

    I hope you are keeping well, and thank you for reaching out to us.

    I checked the mentioned scenario on a test website at my end, but I wasn’t able to replicate the issue.

    The issue seems specific to your website. Can you please navigate to WP Dashboard >> Tools >> Site Health >> Info and Copy Site info to Clipboard? Please share the same with us in your next response using pastebin.com or Google Drive.

    This will give us the information we need about your site’s setup, and it will allow us to run tests in an environment that matches yours. This helps us understand what you are experiencing and check things further.

    Looking forward to hearing back from you and helping you further.

    Best Regards,
    Nebu John

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.