Moderator
t-p
(@t-p)
An Allowed Memory Size Exhausted error means that your WordPress installation doesn’t have enough memory to achieve what you want. You can try out the following steps:
– Increase your memory limit in wp-config.php
– Increase your memory limit by editing php.ini. This is not a file that comes with WordPress so if you are unfamiliar with it you should contact your web host about increasing your memory limit.
Thanks t-p but that didn’t solved it and I’m still with the same exact problem.
I added define( ‘WP_MEMORY_LIMIT’, ‘368M’ ); to my wp-config.php but didn’t solved it and still the same 2 errors.
One thing I don’t understand is why those fatal errors indicate memory size exhausted with 20480 bytes if my memory_limit is set to 385875968 bytes.
Can anyone advice here? I’m really stuck on this one :/
Thanks in advance.
-
This reply was modified 5 years, 4 months ago by
casparpt.
Moderator
t-p
(@t-p)
If you’re seeing this error either suddenly (no specific task was done to cause the error) or frequently, try deactivating all plugins to rule-out a plugin-specific issue and try switching themes to rule-out a theme-specific issue.
I solved my errors!
Before going deep into the investigation, I deactivated all the plugins and activated the Twenty Twenty-One theme, both actions didn’t fix the problem, so I assumed it was definitely a problem on that specific page.
I did a step-by-step reproduction of what I was doing when the error appeared and concluded the following:
I was trying to use a Reusable Block when the page crashed, so I focused there.
I’ve tried to reach the Reusable Blocks Admin Menu by creating a draft page and adding a test block to the reusable blocks section. Nothing happened and the block wasn’t added. So I got convinced that the problem might be a corrupted saved block messing with the page.
Since I wasn’t able to reach the Reusable Blocks Management Page, I was forced to install this plugin to manage my saved blocks.
I deleted the block that caused the page crash and BOOM, the errors were gone and the page can be seen again.
Gutenberg has such a tremendous potential but it’s so buggy and a mess to work with. You don’t need the fancy and expensive Elementor or similar builder to design a good and beautiful website. You just need Gutemberg working properly and without all the bugs it currently has.