Title: Error message in the Widgets admin section
Last modified: August 30, 2022

---

# Error message in the Widgets admin section

 *  Resolved [hicham538](https://wordpress.org/support/users/hicham538/)
 * (@hicham538)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/error-message-in-the-widgets-admin-section/)
 * Hi,
    I’m getting this error in the top of the Widgets admin section:
 * 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 5831
 * After disabling all the pluging and then enabling them one by one, I found out
   that the error appears only when the plugin GDPR Cookie Consent is enabled
 * PD: I have enabled WP_DEBUG in wp-config.php
 * ¿Any why to solve this?
 * Thank you

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

 *  [omendrarajput](https://wordpress.org/support/users/omendrarajput/)
 * (@omendrarajput)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/error-message-in-the-widgets-admin-section/#post-15972548)
 * Hi [@hicham538](https://wordpress.org/support/users/hicham538/),
 * We could not able to replicate this issue on our end.
 * Could you please provide us with steps to replicate the issue along with screenshots
   of errors?
 * Best Regards.
 *  Thread Starter [hicham538](https://wordpress.org/support/users/hicham538/)
 * (@hicham538)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/error-message-in-the-widgets-admin-section/#post-15992853)
 * Hi,
    Thank you for the answer. The error appears in the top of the Widgets admin
   page (only if the plugin is activated). I want to send you a screenshot but I’m
   not able to do it here. Please tell me where could i send it. Thank you Hicham
 *  Thread Starter [hicham538](https://wordpress.org/support/users/hicham538/)
 * (@hicham538)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/error-message-in-the-widgets-admin-section/#post-15992855)
 * Here is the screenshort. forgot about this method 🙂
 * [https://snipboard.io/cgbRaN.jpg](https://snipboard.io/cgbRaN.jpg)
 *  [omendrarajput](https://wordpress.org/support/users/omendrarajput/)
 * (@omendrarajput)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/error-message-in-the-widgets-admin-section/#post-15993563)
 * Hi [@hicham538](https://wordpress.org/support/users/hicham538/),
 * We could not able to replicate this issue on our end.
 * Could you please try to clear your WordPress cache and try to reinstall the plugin?
 * Best regards.
 *  Thread Starter [hicham538](https://wordpress.org/support/users/hicham538/)
 * (@hicham538)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/error-message-in-the-widgets-admin-section/#post-16001824)
 * Hi,
    I cleared the WordPress cache. I reinstalled the plugin. I also replaced
   all the files and folders of the WordPress installation with those of another
   installation. But the error continue appearing once I enable the plugin. Seams
   related with something in the database. The only solution I found to remove the
   error while using the plugin, was to disable the new block editor for widgets:
 *     ```
       // deactivate new block editor
       function phi_theme_support() {
           remove_theme_support( 'widgets-block-editor' );
       }
       add_action( 'after_setup_theme', 'phi_theme_support' );
       ```
   
 * Thank you
 *  [omendrarajput](https://wordpress.org/support/users/omendrarajput/)
 * (@omendrarajput)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/error-message-in-the-widgets-admin-section/#post-16005177)
 * Hi [@hicham538](https://wordpress.org/support/users/hicham538/),
 * Could you please raise a ticket with our support channel at [support@wpeka.com](https://wordpress.org/support/topic/error-message-in-the-widgets-admin-section/support@wpeka.com?output_format=md)
   for a faster resolution?
 * Best regards.

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

The topic ‘Error message in the Widgets admin section’ is closed to new replies.

 * ![](https://ps.w.org/gdpr-cookie-consent/assets/icon-256x256.png?rev=3344977)
 * [Cookie Banner for GDPR / CCPA - WPLP Cookie Consent](https://wordpress.org/plugins/gdpr-cookie-consent/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gdpr-cookie-consent/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gdpr-cookie-consent/)
 * [Active Topics](https://wordpress.org/support/plugin/gdpr-cookie-consent/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gdpr-cookie-consent/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gdpr-cookie-consent/reviews/)

## Tags

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

 * 6 replies
 * 2 participants
 * Last reply from: [omendrarajput](https://wordpress.org/support/users/omendrarajput/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/error-message-in-the-widgets-admin-section/#post-16005177)
 * Status: resolved