Title: Widget error after upgrading to 5.8
Last modified: July 22, 2021

---

# Widget error after upgrading to 5.8

 *  [MikeAlan](https://wordpress.org/support/users/mikealan/)
 * (@mikealan)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/widget-error-after-upgrading-g/)
 * I have just upgraded to version 5.8 and now I’m getting the following error on
   the widget screen:
 * 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/********/********/build2/wp-includes/functions.
   php on line 5535
 * Please can anyone advise on a solution.
 * To provide a link to the relevant page I would have to provide a temporary login
   which can be done if required.
 * Thanks in advance for any help
    -  This topic was modified 4 years, 9 months ago by [MikeAlan](https://wordpress.org/support/users/mikealan/).
    -  This topic was modified 4 years, 9 months ago by [MikeAlan](https://wordpress.org/support/users/mikealan/).
      Reason: Spelling

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

 *  [Vlad](https://wordpress.org/support/users/vladytimy/)
 * (@vladytimy)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/widget-error-after-upgrading-g/#post-14690354)
 * Hi, [@mikealan](https://wordpress.org/support/users/mikealan/)
 * First things first:
 * > To provide a link to the relevant page I would have to provide a temporary 
   > login which can be done if required.
 * Please give this a read [https://wordpress.org/support/guidelines/#the-bad-stuff](https://wordpress.org/support/guidelines/#the-bad-stuff)
   
   Never share any login info on these forums and if someone asks it, use the Report
   button in the sidebar. 🙂
 * Then, you could try installing the Classic Widgets plugin to disable the new 
   widgets screen in 5.8, and revert back to the original Widgets screen. It might
   fix your issues: [https://wordpress.org/plugins/classic-widgets/](https://wordpress.org/plugins/classic-widgets/)
 * PS: Always make sure you have a backup! 🙂
 * Kind regards!
 *  Thread Starter [MikeAlan](https://wordpress.org/support/users/mikealan/)
 * (@mikealan)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/widget-error-after-upgrading-g/#post-14690480)
 * Hi [@vladytimy](https://wordpress.org/support/users/vladytimy/), Thanks for your
   advice.
    My site is backed up on a regular basis so I could literally revert 
   to the previous version if no solution is found and block updates.
 * Kind regards
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [4 years, 9 months ago](https://wordpress.org/support/topic/widget-error-after-upgrading-g/#post-14690501)
 * If “classic widgets” works for you, then see if you can find out whether the 
   issue is with a plugin or your theme. Please attempt to disable all plugins, 
   and use one of the default (Twenty*) themes. If the problem goes away, enable
   them one by one to identify the source of your troubles.
 *  Thread Starter [MikeAlan](https://wordpress.org/support/users/mikealan/)
 * (@mikealan)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/widget-error-after-upgrading-g/#post-14697080)
 * I have 38 active plugins helping to run a fairly large school alumni site under
   construction and I need to get this sorted asap.
 * Out of these 38 plugins there are 6 that give the following error each tested
   separately with all other plugins, css and added code deactivated:
    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/********/********/build2/wp-includes/functions.php on line 5535
   And they are: 1. Advanced Editor Tools (previously TinyMCE Advanced) 2. Advanced
   iFrame 3. Block Background 4. Shortcodes Ultimate 5. Smart Slider 3 6. Ultimate
   Addons for Gutenberg
 * My question is: might this error be a bug in the above plugins, a bug in the 
   latest WP upgrade or some other reason and how might I solve it?
 * Thanks in advance for any help
 *  Thread Starter [MikeAlan](https://wordpress.org/support/users/mikealan/)
 * (@mikealan)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/widget-error-after-upgrading-g/#post-14697206)
 * Just to add, in the mean time, as Steve Stern suggested, I shall use the Classic
   Widget editor but still wll welcome replies to the above problem.
 * Cheers
 *  [Vlad](https://wordpress.org/support/users/vladytimy/)
 * (@vladytimy)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/widget-error-after-upgrading-g/#post-14698085)
 * Thank you for debugging this. Although the Classic Widget is a solution, it’s
   just a patch.
 * > My question is: might this error be a bug in the above plugins, a bug in the
   > latest WP upgrade or some other reason and how might I solve it?
 * The problem is that some themes and a few plugins have compatibility issues with
   the new Widgets screen. So the goal is to identify those and ask their developers
   to update their plugin/theme. There is no known bug in WP Core regarding widgets,
   just that some plugins/themes are incompatible.
 * > Out of these 38 plugins there are 6 that give the following error each tested
   > separately with all other plugins, css and added code deactivated
 * What about the theme? Themes usually add custom widgets. Did you switch to a 
   default theme? I am asking because I cannot replicate the issue with
 * – TwentyTwentyOne + Advanced Editor Tools (previously TinyMCE Advanced)
    – TwentyTwentyOne
   + Advanced iFrame
 * And I stopped there. Please try to use a default (for eg. TwentyTwentyOne) theme
   and see if that notice is still there.
 * If yes, you could start a new topic in each plugin’s forum and ask the developers
   about this. For example, this one is for Advanced iFrame: [https://wordpress.org/support/plugin/advanced-iframe/](https://wordpress.org/support/plugin/advanced-iframe/)
 * Regards!
 *  Thread Starter [MikeAlan](https://wordpress.org/support/users/mikealan/)
 * (@mikealan)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/widget-error-after-upgrading-g/#post-14698294)
 * Hi @vladytimy, 
 * The result is just the same using themes 2017, 2020 and 2021 so I’m assuming 
   that it’s not a theme issue.
 * I shall follow up your suggestion and leave comments on the respective forums.
   In the mean time I shall use the Classis Widget editor.
 * Thank you for your support.
 * Regards

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

The topic ‘Widget error after upgrading to 5.8’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 3 participants
 * Last reply from: [MikeAlan](https://wordpress.org/support/users/mikealan/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/widget-error-after-upgrading-g/#post-14698294)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
