Title: Error on widgets.php with wp_enqueue_script()
Last modified: April 1, 2022

---

# Error on widgets.php with wp_enqueue_script()

 *  Resolved [Nancy](https://wordpress.org/support/users/dotdabbledorg/)
 * (@dotdabbledorg)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/error-on-widgets-php-with-wp_enqueue_script/)
 * Hi, this error is appearing on the wp-admin/widgets.php screen within the admin,
   when you have DEBUG turned on. Seems to be caused by your plugin (used Plugin
   Detective to narrow it down, and disabling the Popup Maker plugin solved the 
   problem.
    Error appeared when upgraded WordPress (current 5.9.2 version), and
   is apparently a conflict now that WP has block editor for widgets.
 * 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/xxxxxxxxxxx/wp-includes/functions.php on
   line 5768

Viewing 1 replies (of 1 total)

 *  [Maria T](https://wordpress.org/support/users/mariatogonon/)
 * (@mariatogonon)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/error-on-widgets-php-with-wp_enqueue_script/#post-15524006)
 * Hi Nancy,
 * Thanks for letting us know and apologies for any delays!
 * Our developer did checked and was able to replicate the error.
 * Note that we’ll create an issue in GitHub to get this warning addressed in a 
   future release.
 * Your patience and understanding is highly appreciated.
 * Thank you & have a great day!

Viewing 1 replies (of 1 total)

The topic ‘Error on widgets.php with wp_enqueue_script()’ is closed to new replies.

 * ![](https://ps.w.org/popup-maker/assets/icon-256x256.gif?rev=3097653)
 * [Popup Maker - Boost Sales, Conversions, Optins, Subscribers with the Ultimate WP Popup Builder](https://wordpress.org/plugins/popup-maker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/popup-maker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/popup-maker/)
 * [Active Topics](https://wordpress.org/support/plugin/popup-maker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/popup-maker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/popup-maker/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Maria T](https://wordpress.org/support/users/mariatogonon/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/error-on-widgets-php-with-wp_enqueue_script/#post-15524006)
 * Status: resolved