• 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.
    • This topic was modified 4 years, 9 months ago by MikeAlan. Reason: Spelling
Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi, @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
    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/

    PS: Always make sure you have a backup! 🙂

    Kind regards!

    Thread Starter MikeAlan

    (@mikealan)

    Hi @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)

    (@sterndata)

    Volunteer Forum Moderator

    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

    (@mikealan)

    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

    (@mikealan)

    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

    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/

    Regards!

    Thread Starter MikeAlan

    (@mikealan)

    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.