-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Getting invalid argument error with 7.7 and 7.7.1 #20907
Comments
After some initial debugging, I traced it back to this code: gutenberg/lib/client-assets.php Lines 638 to 643 in 8905f96
This was added as part of #17151 (cc @ryelle). It’s a feature which will be included in the upcoming WordPress 5.4 release. This specific code was backported as part of the commit at WordPress/wordpress-develop@437ac63 . I believe the warning may only affect the plugin, based on how the message is about the foreach argument being invalid. In the core adaptation of the code, Action items:
|
I've confirmed this issue is not present with EditorsKit + WordPress 5.4 RC 2. Based on the steps to reproduce, I was able to track this back to an incompatibility with this line of code in EditorsKit welcome screen: Since EditorsKit is running the There's two options here to address this:
|
Fix proposed at #20939 |
Describe the bug
Using Gutenberg 7.7.1 on site, kindneyindiana.org with Editors Kit plugin. Getting error on Editors Kit landing page when Gutenberg active (Don't get it with just 5.3.2
Invalid Argument supplied for foreach() in /home/customer/www/kidneyindiana.org/public_html/wp-content/plugins/gutenberg/lib/client-assets.php on line 619
Contacted developer. He asked me to report here since Gutenberg throwing the error
To reproduce
Steps to reproduce the behavior:
Expected behavior
No error
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: