Title: Function wp_enqueue_script() was called incorrectly
Last modified: December 28, 2023

---

# Function wp_enqueue_script() was called incorrectly

 *  Resolved [hoanganhquan](https://wordpress.org/support/users/hoanganhquan/)
 * (@hoanganhquan)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/function-wp_enqueue_script-was-called-incorrectly-5/)
 * I got this error, can’t access to Widgets page.
 *     ```wp-block-code
       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 /public_html/wp-includes/functions.php on line 6031
       ```
   
 * Please check and update soon, thank you!

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

 *  [Tonmoy](https://wordpress.org/support/users/azimkhan123/)
 * (@azimkhan123)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/function-wp_enqueue_script-was-called-incorrectly-5/#post-17305292)
 * Hi [@hoanganhquan](https://wordpress.org/support/users/hoanganhquan/),
 * Sorry for the experience but this is just a notice which shouldn’t create any
   issue like you faced. Can you try to deactivate the ProductX plugin to test if
   this is related to our plugin?
   Furthermore, this notice issue will be fixed in
   next week’s update.
    -  This reply was modified 2 years, 4 months ago by [Tonmoy](https://wordpress.org/support/users/azimkhan123/).
 *  [Tonmoy](https://wordpress.org/support/users/azimkhan123/)
 * (@azimkhan123)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/function-wp_enqueue_script-was-called-incorrectly-5/#post-17331166)
 * Hi hoanganhquan,
 * We already fixed this issue so please update your plugin and let us know.

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

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

 * ![](https://ps.w.org/product-blocks/assets/icon-256x256.png?rev=3118250)
 * [WowStore – Store Builder & Product Blocks for WooCommerce](https://wordpress.org/plugins/product-blocks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/product-blocks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/product-blocks/)
 * [Active Topics](https://wordpress.org/support/plugin/product-blocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/product-blocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/product-blocks/reviews/)

## Tags

 * [widgets](https://wordpress.org/support/topic-tag/widgets/)
 * [wp_enqueue_script](https://wordpress.org/support/topic-tag/wp_enqueue_script/)

 * 2 replies
 * 2 participants
 * Last reply from: [Tonmoy](https://wordpress.org/support/users/azimkhan123/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/function-wp_enqueue_script-was-called-incorrectly-5/#post-17331166)
 * Status: resolved