Skip to content
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

Notice and Warning with Gutenberg 11.0.0 #33377

Closed
kafleg opened this issue Jul 13, 2021 · 1 comment
Closed

Notice and Warning with Gutenberg 11.0.0 #33377

kafleg opened this issue Jul 13, 2021 · 1 comment
Labels
[Feature] Widgets Customizer Ability to add and edit blocks in Customize → Widgets. Global Styles Anything related to the broader Global Styles efforts, including Styles Engine and theme.json [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Type] Bug An existing feature does not function as intended

Comments

@kafleg
Copy link
Member

kafleg commented Jul 13, 2021

Description

There is a notice and warning with the latest version of Gutenberg.

Notice: Undefined index: styles in E:\laragon\www\reviews\wp-content\plugins\gutenberg\lib\global-styles.php on line 138

Warning: Invalid argument supplied for foreach() in E:\laragon\www\reviews\wp-content\plugins\gutenberg\lib\global-styles.php on line 138

The latest version of the Gutenberg plugin is installed and activated. All the other plugins are deactivated. Also, activated the Twenty Twenty-One theme.

Step-by-step reproduction instructions

Please list the steps needed to reproduce the bug. For example:

  1. Go to Appearance > Customize
  2. You will see the notice but it will go out after the customizer will fully load.
  3. Press ctrl+u and at the top, you will see them.

WordPress information

  • WordPress version: 5.7.2
  • Gutenberg version: 11.0.0
  • Are all plugins except Gutenberg deactivated? - Yes
  • Are you using a default theme (e.g. Twenty Twenty-One)? - Yes

Device information

  • Device: Desktop
  • Operating system: Windows 10
  • Browser: Edge
@talldan
Copy link
Contributor

talldan commented Jul 13, 2021

Thanks for reporting. I didn't realise this happened in the customizer as well.

It should be fixed by #33127 which will be part of Gutenberg 11.1.

@talldan talldan closed this as completed Jul 13, 2021
@talldan talldan added [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Type] Bug An existing feature does not function as intended Global Styles Anything related to the broader Global Styles efforts, including Styles Engine and theme.json [Feature] Widgets Customizer Ability to add and edit blocks in Customize → Widgets. labels Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Widgets Customizer Ability to add and edit blocks in Customize → Widgets. Global Styles Anything related to the broader Global Styles efforts, including Styles Engine and theme.json [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

2 participants