Title: Function wp_enqueue_script() was called incorrectly
Last modified: March 11, 2023

---

# Function wp_enqueue_script() was called incorrectly

 *  [4colordesign](https://wordpress.org/support/users/4colordesign/)
 * (@4colordesign)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/function-wp_enqueue_script-was-called-incorrectly-3/)
 * **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](https://wordpress.org/support/article/debugging-in-wordpress/)
   for more information. (This message was added in version 5.8.0.) in **/var/www/
   amc_06-03-2023/wp-includes/functions.php** on line **5835**

Viewing 1 replies (of 1 total)

 *  Plugin Author [Brian Hogg](https://wordpress.org/support/users/brianhogg/)
 * (@brianhogg)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/function-wp_enqueue_script-was-called-incorrectly-3/#post-16551355)
 * Hi [@4colordesign](https://wordpress.org/support/users/4colordesign/) !
 * Are you receiving this error message with our plugin activated? If so, on what
   screen? This error was resolved a few months back on pages like the Widgets edit
   screen, so re-installing our plugin should solve it.
 * After re-installing the plugin (deleting then re-adding), if the error is not
   resolved, you can test that another plugin or your theme isn’t causing an issue
   with the following steps:
 * 1. Ensure you have a backup of your site in case there are any issues when disabling/
   enabling plugins or your theme
   2. Disable all plugins (except your calendar plugin
   and this plugin), and switch to a default theme like Twenty Twenty then verify
   the issue is resolved. You might need to add the shortcode to a new page if you’re
   currently using a page builder.3. Re-enable your plugins and switch back to your
   previous theme one by one verifying if the issue is still occurring, and note
   which one causes it to break
 * If you let us know which plugin/theme causes the issue we may be able to come
   up with a workaround, but most likely you’ll also need to contact the theme or
   plugin author and have them fix the issue.
 * Cheers!

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/the-events-calendar-shortcode/assets/icon-256x256.gif?rev
   =3023752)
 * [The Events Calendar Shortcode & Block](https://wordpress.org/plugins/the-events-calendar-shortcode/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar-shortcode/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar-shortcode/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Brian Hogg](https://wordpress.org/support/users/brianhogg/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/function-wp_enqueue_script-was-called-incorrectly-3/#post-16551355)
 * Status: not resolved