Title: Notice: Function wp_enqueue_script() was called incorrectly.
Last modified: December 6, 2023

---

# Notice: Function wp_enqueue_script() was called incorrectly.

 *  [vee](https://wordpress.org/support/users/okvee/)
 * (@okvee)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/notice-function-wp_enqueue_script-was-called-incorrectly/)
 * This looks like WordPress error itself but it is come from hook that this plugin
   added and being called by WordPress. Disable this plugin and error (notice) disappears.
 * Error details:
 * 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 <a>Debugging in WordPress</a> for more information.(
   This message was added in version 5.8.0.) in wp-includes\functions.php on line
   _6033_
    1.  {main}( )
    2.  require( ‘wp-admin\widgets-form-blocks.php )
    3.  require_once( ‘wp-admin\admin-header.php )
    4.  do_action( $hook_name = ‘[admin_head](https://developer.wordpress.org/reference/hooks/admin_head/)‘)
    5.  WP_Hook->do_action( $args = [0 => ”] )
    6.  WP_Hook->apply_filters( $value = ”, $args = [0 => ”] )
    7.  wp_check_widget_editor_deps( ” )
    8.  _doing_it_wrong( $function_name = ‘wp_enqueue_script()’, $message = ‘”wp-editor”
        script should not be enqueued together with the new widgets editor (wp-edit-
        widgets or wp-customize-widgets).’, $version = ‘5.8.0’ )
    9.  wp_trigger_error( $function_name = ”, $message = ‘Function wp_enqueue_script()
        was called <strong>incorrectly</strong>. “wp-editor” script should not be enqueued
        together with the new widgets editor (wp-edit-widgets or wp-customize-widgets).
        Please see <a href=”[https://wordpress.org/documentation/article/debugging-in-wordpress/”>Debugging](https://wordpress.org/documentation/article/debugging-in-wordpress/”>Debugging)
        in WordPress</a> for more information. (This message was added in version 5.8.0.)’,
        $error_level = ??? )
    10. [trigger_error](http://www.php.net/function.trigger-error)( $message = ‘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 <a>Debugging in WordPress</a> for more information. (This
        message was added in version 5.8.0.)’, $error_level = 1024 )
 * Currently testing with..
   PHP 8.1WordPress 6.5-alpha-57159
 * Error occur since [WordPress 5.8.1](https://wordpress.org/support/topic/wordpress-5-8-1-compatible-3/#post-15253514).
    -  This topic was modified 2 years, 5 months ago by [vee](https://wordpress.org/support/users/okvee/).

The topic ‘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/)

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