• Hi,

    For some reason the plugin is breaking my Customizer.

    When I try to load the Customizer, the left menu (with Site Title, Colours, Menus, Widgets etc.) and the page preview (on the right pane) don’t appear.

    The browser console gives me one error only:

    Uncaught SyntaxError: Unexpected token <

    In /wp-admin/customize.php?return=%2Fwp-admin%2Fwidgets.php, line 14641, where there is a <br />:

    s["sidebars_widgets[wp_inactive_widgets]"] = {"value":[],"transport":"refresh","dirty":false};
    s["sidebars_widgets[sidebar-1]"] = {"value":["text-5","blog_subscription-5","categories-13","nav_menu-14","nav_menu-13"],"transport":"refresh","dirty":false};
    s["sidebars_widgets[sidebar-2]"] = {"value":[],"transport":"refresh","dirty":false};
    <br />
    <font size='1'><table class='xdebug-error xe-warning' dir='ltr' border='1' cellspacing='0' cellpadding='1'>

    I have tried disabling all plugins and changing to a default theme to look for conflicts, but I couldn’t find any. Even with a default theme and using this plugin only, the Customizer would fail to load.

    Any idea on what may be going on?

    Thanks in advance.

    https://www.ads-software.com/plugins/amr-shortcode-any-widget/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author anmari

    (@anmari)

    HI,

    It looks like the beginnings of a warning message there – i guess appearing in the javascript generated in the html – are you able to report the actual warning ? that would help to figure out what is causing it.

    I’ve just tested on my local test server with debug on,
    latest wp beta, twenty-sixteen theme, and php 7.03 and cannot recreate the warning at all. Are you on a later php perhaps?

    My ‘view source’ https://i.imgur.com/y9NGCTE.jpg
    does show that the next line would be to do with the shortcodes, but as I said, all is fine on my setup.

    Other than in the js, I can see that the widgets for shortcodes sidebar does not appear in the customiser, which i can look into but that is probably more to do with it not being part of the theme.

    Sorry – without more info and being unable to recreate, I cannot help further.

    Plugin Author anmari

    (@anmari)

    Just for the record, a bit of googling indicates that somehow the wp javscript works out if a sidebar is being displayed on a page template. Since the widgets for shortcode sidebar never really gets displayed like a normal sidebar, it may never appear in the ‘customiser’

    https://wordpress.stackexchange.com/questions/217457/widgets-not-working-in-customizr-but-working-in-appearance?lq=1

    SO that leaves the question since my (and I guess many others) customizers are not breaking with a js warning, something must be different about your setup. Lets start with what that message actually is.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Plugin breaking Customizer’ is closed to new replies.