-
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
Fatal Error: Attempt to assign property "parsed_block" on null #46294
Comments
Ok I'm looking into this now. Thanks for the ping! 🙇 |
Any chance you could send me the inner blocks of that Navigation Menu with the ID |
Here is are the actual menu items. @getdave
Could it possibly be that the empty submenu that's causing the error? |
The later tag is invalid and I guess should not be present. If a standalone block is desired then it should be:
This matches how HTML works. Containing
vs Self closing
Notice the slash has moved to the end. I don't know how this would have occurred in the block editor unless someone manually edited those blocks 🤔 Also having created a menu with these inner blocks, I don't see the error you are reporting on the front of the site. |
And here is the code cleaned up.
|
Potential fix here: WordPress/wordpress-develop#3731 |
And here #46374 |
This seems to have been fixed, since Dec 8th, 2022 |
Description
Full error message + stack
[04-Dec-2022 09:00:53 UTC] PHP Fatal error: Uncaught Error: Attempt to assign property "parsed_block" on null in /wp-includes/class-wp-block.php:239
Stack trace:
#0 /wp-content/plugins/gutenberg/build/block-library/blocks/navigation.php(707): WP_Block->render()
#1 /wp-includes/class-wp-block.php(258): gutenberg_render_block_core_navigation()
#2 /wp-includes/class-wp-block.php(244): WP_Block->render()
#3 /wp-includes/class-wp-block.php(244): WP_Block->render()
#4 /wp-includes/blocks.php(1051): WP_Block->render()
#5 /wp-includes/blocks.php(1089): render_block()
#6 /wp-content/plugins/gutenberg/build/block-library/blocks/template-part.php(131): do_blocks()
#7 /wp-includes/class-wp-block.php(258): gutenberg_render_block_core_template_part()
#8 /wp-includes/blocks.php(1051): WP_Block->render()
#9 /wp-includes/blocks.php(1089): render_block()
#10 /wp-includes/block-template.php(240): do_blocks()
#11 /wp-includes/template-canvas.php(12): get_the_block_template_html()
#12 /wp-includes/template-loader.php(106): include('...')
#13 /wp-blog-header.php(19): require_once('...')
#14 /index.php(17): require('...')
#15 {main}
thrown in /wp-includes/class-wp-block.php on line 239
Step-by-step reproduction instructions
Still trying to figure out what exactly goes wrong.
What I tried
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
Header Core containing the navigation
The text was updated successfully, but these errors were encountered: