BUGFIX: BadgeOS Uncaught TypeError : progressbar
-
I’m running WordPress 5.4.2 and BadgeOS 3.6. I was having an issue with one of my other plugins in the WP Admin due to the following error in BadgeOS “ob-integrations.js”:
Uncaught TypeError: progressbar.progressbar is not a function
at HTMLDocument.<anonymous> (ob-integrations.js?ver=3.6:7)
at i (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,wp-pointer&ver=5.4.2:2)
at Object.fireWith [as resolveWith] (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,wp-pointer&ver=5.4.2:2)
at Function.ready (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,wp-pointer&ver=5.4.2:2)
at HTMLDocument.J (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,wp-pointer&ver=5.4.2:2)Seems jquery-ui-progressbar is not included by default in the WP Admin, perhaps may be due to a recent WP update.
I fixed by adding the following to my functions.php
function enqueue_admin_jquery() {
wp_enqueue_script(‘jquery-ui-progressbar’);
}
add_action(‘admin_init’, ‘enqueue_admin_jquery’);
- The topic ‘BUGFIX: BadgeOS Uncaught TypeError : progressbar’ is closed to new replies.