New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP Notice on Widgets screen when upgrading to WordPress 5.8 #17275
Comments
Confirmed. The wp-editor script that is being referred to is loaded as a dependency of Internal issue created here |
Its not yet fixed with Yoast SEO 17.0! Released on: August 24th, 2021 |
Just here to make a note that this is still not fixed. Perhaps before enqueueing assets you could check to ensure you're not enqueuing them on the widget editor screen.
|
I noticed this problem with my own blocks. bobbingwide/bobbingwide#30 (comment)
this line of code can be implemented in a child theme's functions.php file. |
Come on now @Djennez & @michaelbriantina. It's now been over 2 months and this issue has not been resolved. You've flagged this as a minor issue, but every single WordPress user above 5.8 who is using this plugin experiences this issue. I would say this is rather, a big issue which should be prioritised. It's also something that could most likely be fixed with a simple if-statement. |
Non-yoast user here, getting same error, this is not yoast specific. |
@LukaszJaro a variety of plugins are causing this error. Gravity Forms, for example, is another one leading to the error. Some themes are also causing it. Unless it's been fixed Yoast is definitely one of the plugins causing the error. |
Getting this issue too. |
Just got this issue on a new Yoast 17.5 install on WordPress 5.8.1 |
This comment has been minimized.
This comment has been minimized.
I've raised this issue internally again. If it gets priority, this thread will be updated. However, this notice is only visible when you have debugging enabled and it is not breaking functionality as far as we can see. That is why it's not a severe issue. |
Got this error when testing building an FSE theme and when I added the Tried doing add_action('admin_enqueue_scripts', function(string $hookSuffix) {
if ($hookSuffix === 'widgets.php') {
wp_dequeue_script('wp-editor');
}
}, 10, 1); But that didn't help (tried increasing the priority). |
@Djennez When you're trying to debug something else and have to constantly navigate around the errors Yoast is causing, it's extraordinarily frustrating. So, yes, it may only be an issue with debugging is enabled, but for those of us who need to debug it's a pretty big deal. |
Still an issue 6 months later, with version 18.0 and WordPress 5.9. Please fix this, even if you think it's low priority. |
The devs are having a look at it. |
Fixed and lined up for the 18.2 release. |
Please give us a description of what happened.
After upgrading to wordpress 5.8, when I access the widgets (Appearance> Widgets) I get a PHP "Notice" error at the top of the page.
Please describe what you expected to happen and why.
What I expected is that it loads the Widgets screen without showing any errors.
How can we reproduce this behavior?
Technical info
Used versions
PHP Notice received
Notice: wp_enqueue_script() ha sido llamada de forma incorrecta. "wp-editor" script should not be enqueued together with the new widgets editor (wp-edit-widgets or wp-customize-widgets). Por favor, visita Depuración en WordPress para más información. (Este mensaje fue añadido en la versión 5.8.0). in /var/www/html/rbl-tienda/wp-includes/functions.php on line 5535
The text was updated successfully, but these errors were encountered: