-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 when adding a Post author block #22100
Comments
cc @epiqueras @aduth in case this rings any bells. (Maybe block context) |
Note that the single.html does not have a post content block... I will keep testing |
Looks like it's from #19894 (cc @draganescu) https://github.com/WordPress/gutenberg/pull/19894/files#diff-585397093c781537eba985402a000b3aR96 It's quite likely there was a confusion stemming from the introduction and subsequent removal of a block object as first argument of It's my hope to merge #21925 today, at which point this could be fixed by addressing |
Fix at #22114 |
God sticky mobile fingers |
Describe the bug
I switched from Gutenberg version 8.0.0 to master, and this PHP notice appeared.
The notice appears in:
-It does not appear in the site editor when viewing the single template.
Notice: Trying to get property 'attributes' of non-object in /var/www/html/wp-content/plugins/gutenberg/build/block-library/blocks/post-author.php on line 96
To reproduce
Steps to reproduce the behavior:
Note:
The content/ markup of my single.html file is:
Expected behavior
I expect the post author data to display correctly.
Editor version (please complete the following information):
WordPress version: 5.4.1
Gutenberg: Master, latest commit was: b73bb6d
Desktop (please complete the following information):
Windows 10
Chrome version: 81.0.4044.129
The text was updated successfully, but these errors were encountered: