Title: Twentig + widgets: wp_enqueue_script() was called incorrectly
Last modified: September 24, 2021

---

# Twentig + widgets: wp_enqueue_script() was called incorrectly

 *  Resolved [ArtGoddess](https://wordpress.org/support/users/artgoddess/)
 * (@artgoddess)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/twentig-widgets-wp_enqueue_script-was-called-incorrectly/)
 * Hi there!
 * I would like to bring your attention to this php warning:
 * `Notice: 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 /home/user/domain.com/wp-includes/functions.php
   on line 5663`
 * It appears in “[https://www.domain.com/wp-admin/widgets.php&#8221](https://www.domain.com/wp-admin/widgets.php&#8221);.
 * This happens with debug ON, WP 5.8.1, Twenty Twenty-One theme 1.4 and Twentig
   1.3.6 as the only plugin active in site.
 * Many thanks!

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

 *  Plugin Author [Twentig](https://wordpress.org/support/users/twentig/)
 * (@twentig)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/twentig-widgets-wp_enqueue_script-was-called-incorrectly/#post-14911717)
 * Hi,
 * Thanks for your feedback. This is a known issue with plugins that extend the 
   block editor (e.g. Jetpack, Yoast, Coblocks). It only occurs when debug mode 
   is on. We’ll try to fix it in a next release.
 * Have a nice day,
    Tom
 *  Thread Starter [ArtGoddess](https://wordpress.org/support/users/artgoddess/)
 * (@artgoddess)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/twentig-widgets-wp_enqueue_script-was-called-incorrectly/#post-14911722)
 * I really appreciate your interest in solving this issue.
 * Thank you very much.
 *  Thread Starter [ArtGoddess](https://wordpress.org/support/users/artgoddess/)
 * (@artgoddess)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/twentig-widgets-wp_enqueue_script-was-called-incorrectly/#post-15150599)
 * Hello [@twentig](https://wordpress.org/support/users/twentig/),
 * I’m getting crazy with this issue. I am not able to identify where the issue 
   comes from.
 * [https://core.trac.wordpress.org/ticket/53569](https://core.trac.wordpress.org/ticket/53569)
 * Seems that the WordPress team resolved this in 5.8, but I still see this message.
 * In order not to waste others time, could you please clarify if this is a WordPress
   core issue or a Twentig one?
 * My current setup:
    PHP 8 in Apache server WordPress 5.8.2 Twentig 1.3.8 Twenty
   Twenty-One 1.4
 * Many thanks.
 *  Plugin Author [Twentig](https://wordpress.org/support/users/twentig/)
 * (@twentig)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/twentig-widgets-wp_enqueue_script-was-called-incorrectly/#post-15484076)
 * Hello,
 * Twentig 1.4.1 release fixes this issue. If this doesn’t solve your problem, please
   note that other plugins might still have the same issue.
 * Thanks,
    Yann

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

The topic ‘Twentig + widgets: wp_enqueue_script() was called incorrectly’ is closed
to new replies.

 * ![](https://ps.w.org/twentig/assets/icon.svg?rev=2569439)
 * [Twentig Supercharged Block Editor – Blocks, Patterns, Starter Sites, Portfolio](https://wordpress.org/plugins/twentig/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/twentig/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/twentig/)
 * [Active Topics](https://wordpress.org/support/plugin/twentig/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/twentig/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/twentig/reviews/)

## Tags

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

 * 4 replies
 * 2 participants
 * Last reply from: [Twentig](https://wordpress.org/support/users/twentig/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/twentig-widgets-wp_enqueue_script-was-called-incorrectly/#post-15484076)
 * Status: resolved