Title: PHP Notice: Function wp_enqueue_script() was called incorrectly
Last modified: November 21, 2022

---

# PHP Notice: Function wp_enqueue_script() was called incorrectly

 *  [VU](https://wordpress.org/support/users/varinupadhyay/)
 * (@varinupadhyay)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/php-notice-function-wp_enqueue_script-was-called-incorrectly/)
 * Hi,
 * Env: PHP 8.0
    WordPress Verion 6.1.1
 * /wp-admin/widgets.php
    The widget(/wp-admin/widgets.php) section showing the 
   following error. Disabling the Advanced Editor Tools plugin is removing the error.
 * Got error ‘PHP message: PHP 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).
 * It looks that the plugin needs to be updated to become compatible with latest
   WordPress version.
 * Question to the developers of this plugin, any plan to update this plugin in 
   near future? Thank you.
    -  This topic was modified 3 years, 6 months ago by [VU](https://wordpress.org/support/users/varinupadhyay/).
    -  This topic was modified 3 years, 6 months ago by [VU](https://wordpress.org/support/users/varinupadhyay/).

Viewing 1 replies (of 1 total)

 *  [vee](https://wordpress.org/support/users/okvee/)
 * (@okvee)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php-notice-function-wp_enqueue_script-was-called-incorrectly/#post-16308930)
 * Confirm the same problem on Admin > Appearance > Widgets page.

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/tinymce-advanced/assets/icon-256x256.png?rev=971511)
 * [Advanced Editor Tools](https://wordpress.org/plugins/tinymce-advanced/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tinymce-advanced/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tinymce-advanced/)
 * [Active Topics](https://wordpress.org/support/plugin/tinymce-advanced/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tinymce-advanced/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tinymce-advanced/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [vee](https://wordpress.org/support/users/okvee/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/php-notice-function-wp_enqueue_script-was-called-incorrectly/#post-16308930)
 * Status: not resolved