-
Notifications
You must be signed in to change notification settings - Fork 1
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: Memory exhausted loading recursive reusable blocks #31
Comments
I found a problem that didn't detect recursion.
That's a good edge case! |
I revealed my proposed solution in the Gutenberg issue. |
I'm not sure I can believe my eyes. I hooked into
So why (the f) was it being rendered in the first place? |
OK. So I've temporarily prevented the recursion in the editor by breaking the block. |
It would be nice if there were a I think there's a problem here. |
This is a different problem from that which I had editing a reusable block which was a Draft. |
While working on |
…fixed using the editor. Issue #25 - start refactoring of overrides
… ID into the $fizzie_processed_content array.
I'm going to close this now everything's moved on. Fizzie has its own recursion detection logic over and above what's provided in core/Gutenberg. |
In Gutenberg there have been at least 3 issues associated with Reusable blocks causing infinite recursion.
WordPress/gutenberg#18704
WordPress/gutenberg#21117
WordPress/gutenberg#22131
The first of these 3 is still open.
I wanted to see if my fix for #27 and #30 could also be applied to issue 18704.
I created a scenario with three reusable blocks named after these issues.
These are in a recursive loop. 1133 -> 1135 -> 1134 -> 1133
I added a reusable block to the
404.html
template and achieved the fatal error.I then overrode the
gutenberg_render_block_core_block
render_callbackwith
fizzie_render_block_core_block
The text was updated successfully, but these errors were encountered: