- This topic has 16 replies, 4 voices, and was last updated 1 year, 2 months ago by Tom.
-
AuthorPosts
-
November 8, 2022 at 8:54 am #2406673Gabriel
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 #2406712DavidStaffCustomer SupportHi there,
can you check what the PHP Memory limit on your server is ?
November 8, 2022 at 9:30 am #2406724Gabrielmemory_limit is 512M according to cPanel.
November 8, 2022 at 5:39 pm #2407236Fernando Customer SupportHi 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 #2407763GabrielYes, 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 #2407906DavidStaffCustomer SupportWhats in the Dynamic Content block ?
November 9, 2022 at 4:53 am #2407913GabrielPost content. No other settings.
November 9, 2022 at 5:47 am #2408002DavidStaffCustomer SupportWhat happens if you replace the Dynamic Content Block with the core
Post Content
block ?November 9, 2022 at 7:36 am #2408176GabrielNo errors in autosave when using the core Post Content block.
November 9, 2022 at 7:41 am #2408188DavidStaffCustomer 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.
November 9, 2022 at 7:47 am #2408205GabrielFeel 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 #2408518DavidStaffCustomer 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 ?
November 10, 2022 at 12:27 am #2409353Gabrielwp_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 #2412073TomLead DeveloperLead DeveloperHi there,
Thanks for reporting this! I’m able to reproduce.
We’ll get it fixed in the next version of GPP.
February 1, 2023 at 10:54 am #2517404TomLead 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?
-
AuthorPosts
- You must be logged in to reply to this topic.