Title: Function wp_enqueue_script() was called incorrectly
Last modified: July 26, 2022

---

# Function wp_enqueue_script() was called incorrectly

 *  [Lawrence Monk](https://wordpress.org/support/users/lmonk72/)
 * (@lmonk72)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/function-wp_enqueue_script-was-called-incorrectly/)
 * Hello there,
 * I recently installed this plugin on an older WordPress site running version 5.8.0;
   when editing a widget, I get the following error message:
 * `Notice: Function wp_enqueue_script() was called incorrectly. "wp-editor" script
   should not be enqueued together with the new widgets editor (wp-edit-widgets 
   or wp-customize-widgets). Please see Debugging in WordPress for more information.(
   This message was added in version 5.8.0.) in wp-includes\functions.php on line
   5831`
 * The message is only visible using the ‘Debug Bar’ plugin. I’ve reviewed my site
   and disabled plugins one by one, so I know this module is the causing the error.
 * Any suggestions on how to resolve this?

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

 * ![](https://ps.w.org/svg-support/assets/icon.svg?rev=1417738)
 * [SVG Support](https://wordpress.org/plugins/svg-support/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/svg-support/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/svg-support/)
 * [Active Topics](https://wordpress.org/support/plugin/svg-support/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/svg-support/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/svg-support/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [Updates](https://wordpress.org/support/topic-tag/updates/)
 * [wp_enqueue_scripts](https://wordpress.org/support/topic-tag/wp_enqueue_scripts/)

 * 0 replies
 * 0 participants
 * Last reply from: [Lawrence Monk](https://wordpress.org/support/users/lmonk72/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/function-wp_enqueue_script-was-called-incorrectly/)
 * Status: not resolved