Title: Error on Admin Widgets Page
Last modified: August 1, 2024

---

# Error on Admin Widgets Page

 *  [Stefano](https://wordpress.org/support/users/stefacchio/)
 * (@stefacchio)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-on-admin-widgets-page/)
 * Hi, there is an issue on WP Widgets page:
 * **Notice: 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://developer.wordpress.org/advanced-administration/debug/debug-wordpress/”>Debugging](https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/”>Debugging)
   in WordPress</a> for more information. (This message was added in version 5.8.0.)
   in C:\wamp64\www\wordpress\wp-includes\functions.php on line **_6085_
 * I think that the problem is this one (debug console):
 * `**deprecated.js?ver=1aa7a2722e5853bb3a37:115** wp.editPost.PluginSidebar is 
   deprecated since version 6.6. Please use wp.editor.PluginSidebar instead.`
 * WP 6.6.1

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

 *  Plugin Support [ying](https://wordpress.org/support/users/yingscarlett/)
 * (@yingscarlett)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-on-admin-widgets-page/#post-17927911)
 * Hi there,
 * Not sure I understand your question, I don’t see the the error related to GB.
 * What theme are you using? Can you show us a screenshot of the error page? And
   if you disable all other plugins except GB, does the error still occur?
 * Let me know 🙂
 *  Thread Starter [Stefano](https://wordpress.org/support/users/stefacchio/)
 * (@stefacchio)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-on-admin-widgets-page/#post-17928833)
 * The error is displayed with any classic theme. I have tried changing several,
   for example Astra (free version).
   When I disable the Generateblocks plugin the
   error disappears.
 * I think that the plugin uses a deprecated function of wp-editor or wp-edit-posts.
 * Obviously WP_DEBUG = true
 * [here the screenshot of the error page](https://imgur.com/a/Sc8RhXd)
 * Thanks
    -  This reply was modified 1 year, 10 months ago by [Stefano](https://wordpress.org/support/users/stefacchio/).
 *  Plugin Support [Alvind](https://wordpress.org/support/users/alvindcaesar/)
 * (@alvindcaesar)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-on-admin-widgets-page/#post-17928934)
 * Hi there,
 * Do you have any existing widgets created there already?
 *  Thread Starter [Stefano](https://wordpress.org/support/users/stefacchio/)
 * (@stefacchio)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-on-admin-widgets-page/#post-17929971)
 * Yes, block widgets. but I tried to delete all widgets, save and refresh the page
   and it’s the same…
 * [https://imgur.com/a/nglVsqw](https://imgur.com/a/nglVsqw)
    -  This reply was modified 1 year, 10 months ago by [Stefano](https://wordpress.org/support/users/stefacchio/).
 *  Plugin Support [ying](https://wordpress.org/support/users/yingscarlett/)
 * (@yingscarlett)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-on-admin-widgets-page/#post-17930214)
 * Hum…I can not replicate the issue, I tried with Astra free theme as well, didn’t
   see this error. And I searched the entire GB codes, it does not use `wp.editPost.
   PluginSidebar` function at all. So I doubt it’s a GB issue.
 * Have you tried disabling all your plugins except GB to test?
 * Let me know 🙂
 *  Thread Starter [Stefano](https://wordpress.org/support/users/stefacchio/)
 * (@stefacchio)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-on-admin-widgets-page/#post-17930229)
 * mmmh very strange… Yes I disabled all plugins except generateblocks. I’ll try
   to make a local fresh WP installation and I’ll try It again.
 * I’ll let you know in a few time.
 *  Plugin Support [ying](https://wordpress.org/support/users/yingscarlett/)
 * (@yingscarlett)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-on-admin-widgets-page/#post-17930263)
 * Thanks, please keep us updated! And can you also try with GeneratePress free 
   theme?
 *  Thread Starter [Stefano](https://wordpress.org/support/users/stefacchio/)
 * (@stefacchio)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-on-admin-widgets-page/#post-17931704)
 * I created a fresh WP installation, same error.
 * Astra or GeneratePress Theme, the error appears only with Generateblock plugin
   enabled.
   I don’t know if the _wp.editPost.PluginSidebar _error is related but
   I consider the first PHP error.**WP_DEBUG = trueWP v6.6.1PHP v8.3.6Wamp Server
   v3.3.5 on Windows 11
 * Let me know
 *  Thread Starter [Stefano](https://wordpress.org/support/users/stefacchio/)
 * (@stefacchio)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-on-admin-widgets-page/#post-17931721)
 * I tried to disable and enable again generateblocks and these errors into console
   debug appears:
 * 
   `Store "core/interface" is already registered. data.min.js?ver=7c62e39de0308c73d50c`
 * `wp.editPost.PluginSidebar is deprecated since version 6.6. Please use wp.editor.
   PluginSidebar instead. deprecated.min.js?ve…84915c5e8ae38964c:2`
 * `select( 'core/edit-site' ).__experimentalGetPreviewDeviceType is deprecated 
   since version 6.5 and will be removed in version 6.7. Please use select( 'core/
   editor' ).getDeviceType instead. deprecated.min.js?ve…84915c5e8ae38964c:2`
 * I don’t know if they are in the plugin code, maybe they are part of wordpress
   core, but there is something in the plugin that triggers these errors.
 *  Plugin Support [David](https://wordpress.org/support/users/diggeddy/)
 * (@diggeddy)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-on-admin-widgets-page/#post-17932483)
 * Hi there,
 * I can replicate the issue.
   I’ll mark this for investigation and a potential bug
   fix.Thanks for reporting , its not a critical issue so you can safely ignore 
   and just disable the debugging on the site to get rid of the error.
 *  Thread Starter [Stefano](https://wordpress.org/support/users/stefacchio/)
 * (@stefacchio)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-on-admin-widgets-page/#post-17932496)
 * Perfect, thank you.
   I thought it was not a critical error but in development 
   it is really annoying and could also conflict with additional plugins or blocks.
 * Have a nice day
 * Stefano
 *  Plugin Support [David](https://wordpress.org/support/users/diggeddy/)
 * (@diggeddy)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-on-admin-widgets-page/#post-17933234)
 * Yeah we just need to review why the patch we added to exclude the `wp-editor`
   from the widget editor is no longer applying. But thanks for reporting.

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

The topic ‘Error on Admin Widgets Page’ is closed to new replies.

 * ![](https://ps.w.org/generateblocks/assets/icon.svg?rev=3239461)
 * [GenerateBlocks](https://wordpress.org/plugins/generateblocks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/generateblocks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/generateblocks/)
 * [Active Topics](https://wordpress.org/support/plugin/generateblocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/generateblocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/generateblocks/reviews/)

## Tags

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

 * 12 replies
 * 4 participants
 * Last reply from: [David](https://wordpress.org/support/users/diggeddy/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/error-on-admin-widgets-page/#post-17933234)
 * Status: not resolved