Title: Javascript error in admin area
Last modified: October 23, 2018

---

# Javascript error in admin area

 *  Resolved [c8000](https://wordpress.org/support/users/c8000/)
 * (@c8000)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/javascript-error-in-admin-area/)
 * Hi,
    I have a local MAMP installatation (PHP 7.2.8). When I try to configure 
   a custom widget and the modal window of the plugin opens, I receive a javascript
   error and the loading animation continues forever, both in Chrome and Firefox.
 * The complete error in the console is
 *     ```
       functions-admin.min.js?ver=1.6.5:1 Uncaught TypeError: g.data.indexOf is not a function
           at HTMLDocument.<anonymous> (functions-admin.min.js?ver=1.6.5:1)
           at HTMLDocument.dispatch (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-widget,jquery-ui-position,wp-pointer,jquery-ui-core,jquery-ui-mouse,jquery-ui-resizable,jqu&load[]=ery-ui-draggable,jquery-ui-button,jquery-ui-dialog,utils,jquery-ui-sortable,underscore,wp-util,jquery-ui-progressbar,backbone,sh&load[]=ortcode,wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=4.9.8:3)
           at HTMLDocument.r.handle (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-widget,jquery-ui-position,wp-pointer,jquery-ui-core,jquery-ui-mouse,jquery-ui-resizable,jqu&load[]=ery-ui-draggable,jquery-ui-button,jquery-ui-dialog,utils,jquery-ui-sortable,underscore,wp-util,jquery-ui-progressbar,backbone,sh&load[]=ortcode,wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=4.9.8:3)
           at Object.trigger (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-widget,jquery-ui-position,wp-pointer,jquery-ui-core,jquery-ui-mouse,jquery-ui-resizable,jqu&load[]=ery-ui-draggable,jquery-ui-button,jquery-ui-dialog,utils,jquery-ui-sortable,underscore,wp-util,jquery-ui-progressbar,backbone,sh&load[]=ortcode,wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=4.9.8:3)
           at Object.a.event.trigger (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-widget,jquery-ui-position,wp-pointer,jquery-ui-core,jquery-ui-mouse,jquery-ui-resizable,jqu&load[]=ery-ui-draggable,jquery-ui-button,jquery-ui-dialog,utils,jquery-ui-sortable,underscore,wp-util,jquery-ui-progressbar,backbone,sh&load[]=ortcode,wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=4.9.8:9)
           at y (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-widget,jquery-ui-position,wp-pointer,jquery-ui-core,jquery-ui-mouse,jquery-ui-resizable,jqu&load[]=ery-ui-draggable,jquery-ui-button,jquery-ui-dialog,utils,jquery-ui-sortable,underscore,wp-util,jquery-ui-progressbar,backbone,sh&load[]=ortcode,wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=4.9.8:4)
           at XMLHttpRequest.c (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-widget,jquery-ui-position,wp-pointer,jquery-ui-core,jquery-ui-mouse,jquery-ui-resizable,jqu&load[]=ery-ui-draggable,jquery-ui-button,jquery-ui-dialog,utils,jquery-ui-sortable,underscore,wp-util,jquery-ui-progressbar,backbone,sh&load[]=ortcode,wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=4.9.8:4)
       ```
   
 * Can you point me into any direction as to where the problem might be? Do you 
   need further information?
 * Thank you

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

 *  [Imran – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support9/)
 * (@wpmudev-support9)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/javascript-error-in-admin-area/#post-10820600)
 * Hello [@c8000](https://wordpress.org/support/users/c8000/)
 * Hope all is well!
 * I’ve tested the plugin on my end with PHP 7.2.11 and could not reproduce this
   JS error. Please make sure there is no conflict with another plugin.
 * Deactivate all the other plugins, besides Custom Sidebars and see if you can 
   replicate the same erorr.
 * If all is well, start activating one plugin at a time, until the issue will be
   back. This way you will know which plugin is the culprit. Please test for a conflict
   with an active theme if the error still is showing up with all the other plugins
   deactivated.
 * Let us know how it went!
 * Cheers,
    Nastia
 *  Thread Starter [c8000](https://wordpress.org/support/users/c8000/)
 * (@c8000)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-in-admin-area/#post-10858981)
 * Hello,
    thank you for your response. I followed your advice and could narrow 
   down the error. There is some compatibility issue with the Perfect Woocommerce
   Brands Plugin ([https://wordpress.org/plugins/perfect-woocommerce-brands/](https://wordpress.org/plugins/perfect-woocommerce-brands/)).
   If I deactivate that plugin everything is well. I’ll let the author of the other
   plugin no about the issue.
 * Thank you

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

The topic ‘Javascript error in admin area’ is closed to new replies.

 * ![](https://ps.w.org/custom-sidebars/assets/icon-256x256.png?rev=1414065)
 * [Custom Sidebars - Dynamic Sidebar Classic Widget Area Manager](https://wordpress.org/plugins/custom-sidebars/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-sidebars/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-sidebars/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-sidebars/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-sidebars/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-sidebars/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [c8000](https://wordpress.org/support/users/c8000/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-in-admin-area/#post-10858981)
 * Status: resolved