Title: function wp_enqueue_script() was called incorrectly
Last modified: January 25, 2024

---

# function wp_enqueue_script() was called incorrectly

 *  Resolved [imcoffeevin06](https://wordpress.org/support/users/imcoffeevin06/)
 * (@imcoffeevin06)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/function-wp_enqueue_script-was-called-incorrectly-6/)
 * how to fix this error?
 * function wp_enqueue_script() was called incorrectly. “wp-editor” script should
   not be enqueued together with the new widget editor (wp-edit-widget or wp-customize-
   widget)

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

 *  [Mihai Ceban](https://wordpress.org/support/users/mihaiimagely/)
 * (@mihaiimagely)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/function-wp_enqueue_script-was-called-incorrectly-6/#post-17375226)
 * Hi [@imcoffeevin06](https://wordpress.org/support/users/imcoffeevin06/),
 * Thanks for reporting it. I am sorry, but I wasn’t able to replicate it on my 
   own site.
 * Could you please let me know what theme do you use, and what are the steps to
   trigger the notice?
    -  This reply was modified 2 years, 4 months ago by [Mihai Ceban](https://wordpress.org/support/users/mihaiimagely/).
 *  Thread Starter [imcoffeevin06](https://wordpress.org/support/users/imcoffeevin06/)
 * (@imcoffeevin06)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/function-wp_enqueue_script-was-called-incorrectly-6/#post-17375708)
 * hii i use this theme. [https://github.com/iGovPhil/gwt-wordpress/releases/tag/25.3.3](https://github.com/iGovPhil/gwt-wordpress/releases/tag/25.3.3)
 * last last week its working fine. but after the latest update of the plugin, it
   starts showing the error on widget page.
 *  [Mihai Ceban](https://wordpress.org/support/users/mihaiimagely/)
 * (@mihaiimagely)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/function-wp_enqueue_script-was-called-incorrectly-6/#post-17390173)
 * Hi [@imcoffeevin06](https://wordpress.org/support/users/imcoffeevin06/),
 * I am sorry but installing this theme gives a fatal error in my case, so I couldn’t
   test much: **themes/gwt-wordpress-25.3.3/inc/function-options.php** on line **
   58**
 * Could you please let me know if you get any notices if using a theme from the
   Twenty series?

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

The topic ‘function wp_enqueue_script() was called incorrectly’ is closed to new
replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Mihai Ceban](https://wordpress.org/support/users/mihaiimagely/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/function-wp_enqueue_script-was-called-incorrectly-6/#post-17390173)
 * Status: resolved