Site logo

Archived topic

Error 502 after editing a single post

20 replies · Started by Morgan on April 5, 2021

Viewing posts 16–21 of 21

Yes! I provided the information in the original question. Should I attach it again? We found the error:

PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 4096 bytes) in /home/nginx/domains/morganoverholtcom.bigscoots-staging.com/public/wp-includes/class-wp-post.php

So I went into Re-usable blocks and couldn't load them without deactivating GenerateBlocks. So, I deactivated GB and went into the "Social Block" re-usable block. This re-usable block is referencing itself, which is causing an infinite loop. If you delete this re-usable block (and make sure not to try to load re-usable blocks within themselves), it should fix the issue.

Let me know :)

Great! How do I delete a reusable block if I am unable to edit a post while GenerateBlocks is enabled?

Go to yourwebsite.com/wp-admin/edit.php?post_type=wp_block and Trash the "Social Block".

That should do it :)

Boom that worked. I will steer clear of reusable blocks in the future as I now realize those are not always stable.

Awesome. You should be fine to use them, just avoid adding a re-usable block inside another re-usable block (especially if it's the same block rendering inside itself).

This archived topic is closed to new replies.