Title: Uncaught TypeError: $.widget is not a function
Last modified: August 31, 2016

---

# Uncaught TypeError: $.widget is not a function

 *  [lelandmarquess](https://wordpress.org/support/users/lelandmarquess/)
 * (@lelandmarquess)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/uncaught-typeerror-widget-is-not-a-function/)
 * I’m receiving the following Error. Any advice is appreciated. Thanks!
 * Uncaught TypeError: $.widget is not a function
    adminBar-front.js?scope=admin-
   bar-button&ver=4.5.1:11
 * [https://wordpress.org/plugins/admin-bar-button/](https://wordpress.org/plugins/admin-bar-button/)

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

 *  [accapala](https://wordpress.org/support/users/accapala/)
 * (@accapala)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/uncaught-typeerror-widget-is-not-a-function/#post-7326382)
 * I have the same error since i made the last update
 *  Plugin Author [David Gard](https://wordpress.org/support/users/duck_boy/)
 * (@duck_boy)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/uncaught-typeerror-widget-is-not-a-function/#post-7326404)
 * Hi lelandmarquess and accapala,
 * Thanks for your feedback, however at present I’m unable to replicate the problem.
 * From your description it seems that the script required for using the jQuery 
   UI Widget Factory has not been included as required.
 * My initial thought is that another plugin that you are using, or possibly your
   theme, is enqueueing a script and giving it the handle `'jquery-ui-widget'`, 
   meaning that the correct script cannot be enqueued. However, without more information
   I cannot be sure.
 * **Troubleshooting**
 * First and foremost, I’m happy to say that I’ve literally just released version
   4.0 of the plugin, which has reveived a lot of love and attention over the last
   few months. If you could please update to this version and try again, then post
   here with your results, I’d be grateful.
 * If that doesn’t do the trick, please deactivate all other plugins and try again,
   and if that fails, please switch to the default TwentySixteen theme (don’t worry,
   you won’t lose any settings and can just switch back).
 * If you do continue to encounter problems, could you please provide me with some
   additional details so that I can investigate further –
    - WordPress version – tested up to version 4.5.
    - Plugin version – hopefully the new version 4.0.
    - Theme name – I don’t know of any that cause a conflict, but there are literally
      thousands, plus you may be using a custom theme.
    - Other active plugins – There is always the possibility of incompatibilites,
      but I and other authors try very hard to minimise these.
 * Thanks,
    David Gard
 *  [CotswoldPhoto](https://wordpress.org/support/users/cotswoldphoto/)
 * (@cotswoldphoto)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/uncaught-typeerror-widget-is-not-a-function/#post-7721246)
 * I have replicated the problem and resolved it!!
 * In the file abb-front.js
 * replace `$` with `jQuery` in lines: 11, 72, 73, 99, 330
 * Before I did this, the bar did not work, revslider and visual composer were both
   broken. Now they work (in WP4.6)
 * Trevor

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

The topic ‘Uncaught TypeError: $.widget is not a function’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/admin-bar-button_798768.svg)
 * [Admin Bar Button](https://wordpress.org/plugins/admin-bar-button/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/admin-bar-button/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/admin-bar-button/)
 * [Active Topics](https://wordpress.org/support/plugin/admin-bar-button/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/admin-bar-button/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/admin-bar-button/reviews/)

## Tags

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

 * 3 replies
 * 4 participants
 * Last reply from: [CotswoldPhoto](https://wordpress.org/support/users/cotswoldphoto/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/uncaught-typeerror-widget-is-not-a-function/#post-7721246)
 * Status: not resolved