- This topic has 16 replies, 4 voices, and was last updated 1 month, 3 weeks ago by
Tom.
-
AuthorPosts
-
November 8, 2022 at 8:54 am #2406673
Gabriel
When autosaving an Element that contains a Dynamic Content block I get error 500 for that ajax request. The following is written in the error_log file:
[08-Nov-2022 15:30:23 UTC] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /home/waysseab/gp.waysseab.hemsida.eu/wp-includes/formatting.php on line 233
Added more details in private information.
November 8, 2022 at 9:18 am #2406712David
StaffCustomer SupportHi there,
can you check what the PHP Memory limit on your server is ?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 8, 2022 at 9:30 am #2406724Gabriel
memory_limit is 512M according to cPanel.
November 8, 2022 at 5:39 pm #2407236Fernando Customer Support
Hi Gabriel,
That’s odd. 512M should be good. There’s not much stuff in your site, the only active plugins are GP plugins as well. Inherently, saving an Element with a Dynamic Content Block shouldn’t be taking too much memory.
To clarify, does this issue only occur when there’s a Dynamic Content Block inside an Element upon saving?
Can we try creating a test Block Element on your site to replicate the issue?
November 9, 2022 at 3:06 am #2407763Gabriel
Yes, this issue only occurs when there’s a Dynamic Content block. The error occurs when autosaving. Manual update works fine.
November 9, 2022 at 4:49 am #2407906David
StaffCustomer SupportWhats in the Dynamic Content block ?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 9, 2022 at 4:53 am #2407913Gabriel
Post content. No other settings.
November 9, 2022 at 5:47 am #2408002David
StaffCustomer SupportWhat happens if you replace the Dynamic Content Block with the core
Post Content
block ?Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 9, 2022 at 7:36 am #2408176Gabriel
No errors in autosave when using the core Post Content block.
November 9, 2022 at 7:41 am #2408188David
StaffCustomer SupportHmmm… we’ll do some investiagions although i cannot replicate the issue locally. Which is fun 🙂
Are you ok using the Post Content block instead ?
As a note each of the GenerateBlocks Blocks has its own Dynamic Data settings in the block sidebar. Which you can use to display the Post Excerpt in a Headline Block if that is required.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 9, 2022 at 7:47 am #2408205Gabriel
Feel free to play around with the site in private information of my OP. It is not a productions site.
I think I will keep using your block. Manual saving works after all so it is not critical issue, just annoying.
November 9, 2022 at 8:45 am #2408518David
StaffCustomer SupportIs it possible to enable wp_debug and get a full error from the server ? So we can see get more details on that 500 error ?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 10, 2022 at 12:27 am #2409353Gabriel
wp_debug is already enabled in wp-config.php. The only error on the page is something about invalid JSON, which makes sense because the error response that I see in devtools is html. The error_log file only contains repetitions of what I mentioned in the OP.
November 11, 2022 at 9:17 pm #2412073Tom
Lead DeveloperLead DeveloperHi there,
Thanks for reporting this! I’m able to reproduce.
We’ll get it fixed in the next version of GPP.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentFebruary 1, 2023 at 10:54 am #2517404Tom
Lead DeveloperLead DeveloperHi there,
Playing with this now and trying to fix it, but I’m no longer able to reproduce it.
Is this still something that’s happening to you?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.