Title: Bug: JavaScript undefined function (and consequences)
Last modified: August 30, 2016

---

# Bug: JavaScript undefined function (and consequences)

 *  Resolved [X-Raym](https://wordpress.org/support/users/x-raym/)
 * (@x-raym)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/bug-javascript-undefined-function-and-consequences/)
 * Hi !
 * I had a problem with Shortcode Ultimate Spoilers block which were inactive on
   some browsers including Chrome.
 * I discover that there was a Javascript Report error in the Chrome console :
 *     ```
       Uncaught ReferenceError: Cookies is not defined(anonymous function) @ use_cookie_when_ready.js
       ```
   
 * Looking at the file :
 *     ```
       jQuery( document ).ready(function() {
       	var cookie = Cookies.getJSON('wp_user_stylesheet_switcher_js');
       ```
   
 * Other error were also indicated in the same block :
 *     ```
       m.Callbacks.j	@	jquery.js:2
       m.Callbacks.k.fireWith	@	jquery.js:2
       m.extend.ready	@	jquery.js:2
       J	@	jquery.js:2
       ```
   
 * So, I desactivate WP User Stylesheet Switcher, and the console indicates no error
   at all,and this resolves my Shortcote ultimate prblem, proving that a Javascript
   errors came from WP User Stylesheet Switcher.
 * Can you please solve this issue ?
 * It will be really helpful as your plugin is very useful for me !
 * Thanks for listening !
 * [https://wordpress.org/plugins/wp-user-stylesheet-switcher/](https://wordpress.org/plugins/wp-user-stylesheet-switcher/)

Viewing 2 replies - 16 through 17 (of 17 total)

[←](https://wordpress.org/support/topic/bug-javascript-undefined-function-and-consequences/?output_format=md)
[1](https://wordpress.org/support/topic/bug-javascript-undefined-function-and-consequences/?output_format=md)
2

 *  Plugin Author [vgstef](https://wordpress.org/support/users/vgstef/)
 * (@vgstef)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/bug-javascript-undefined-function-and-consequences/page/2/#post-6510978)
 * Yes, I’ll update the plugin soon with this fix.
 *  Thread Starter [X-Raym](https://wordpress.org/support/users/x-raym/)
 * (@x-raym)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/bug-javascript-undefined-function-and-consequences/page/2/#post-6510979)
 * Thanks for work on this !
 * Cheers !

Viewing 2 replies - 16 through 17 (of 17 total)

[←](https://wordpress.org/support/topic/bug-javascript-undefined-function-and-consequences/?output_format=md)
[1](https://wordpress.org/support/topic/bug-javascript-undefined-function-and-consequences/?output_format=md)
2

The topic ‘Bug: JavaScript undefined function (and consequences)’ is closed to new
replies.

 * ![](https://ps.w.org/wp-user-stylesheet-switcher/assets/icon.svg?rev=982756)
 * [WP User Stylesheet Switcher](https://wordpress.org/plugins/wp-user-stylesheet-switcher/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-user-stylesheet-switcher/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-user-stylesheet-switcher/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-user-stylesheet-switcher/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-user-stylesheet-switcher/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-user-stylesheet-switcher/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [report](https://wordpress.org/support/topic-tag/report/)

 * 17 replies
 * 2 participants
 * Last reply from: [X-Raym](https://wordpress.org/support/users/x-raym/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/bug-javascript-undefined-function-and-consequences/page/2/#post-6510979)
 * Status: resolved