Title: Plugin breaking Customizer
Last modified: September 1, 2016

---

# Plugin breaking Customizer

 *  [Argumentum](https://wordpress.org/support/users/argumentum0/)
 * (@argumentum0)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/plugin-breaking-customizer/)
 * 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://wordpress.org/plugins/amr-shortcode-any-widget/](https://wordpress.org/plugins/amr-shortcode-any-widget/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [anmari](https://wordpress.org/support/users/anmari/)
 * (@anmari)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/plugin-breaking-customizer/#post-7478765)
 * 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’ [http://i.imgur.com/y9NGCTE.jpg](http://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](https://wordpress.org/support/users/anmari/)
 * (@anmari)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/plugin-breaking-customizer/#post-7478766)
 * 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’
 * [http://wordpress.stackexchange.com/questions/217457/widgets-not-working-in-customizr-but-working-in-appearance?lq=1](http://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.

 * ![](https://s.w.org/plugins/geopattern-icon/amr-shortcode-any-widget_dde8e5.svg)
 * [amr shortcode any widget](https://wordpress.org/plugins/amr-shortcode-any-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amr-shortcode-any-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amr-shortcode-any-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/amr-shortcode-any-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amr-shortcode-any-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amr-shortcode-any-widget/reviews/)

## Tags

 * [syntaxerror](https://wordpress.org/support/topic-tag/syntaxerror/)
 * [widgets](https://wordpress.org/support/topic-tag/widgets/)

 * 2 replies
 * 2 participants
 * Last reply from: [anmari](https://wordpress.org/support/users/anmari/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/plugin-breaking-customizer/#post-7478766)
 * Status: not resolved