Unfortunately not as SiteGround does not allow increasing the memory_limit
of any sites, and adjusting WP_MEMORY_LIMIT
did not fix the issue with exporting a document.
[03-Feb-2025 17:50:21 UTC] PHP Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 262144 bytes) in /home/customer/www/components.odb.host/public_html/wp-content/themes/pro/cornerstone/includes/classes/Templating/Export.php on line 109
[03-Feb-2025 17:50:43 UTC] PHP Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 262144 bytes) in /home/customer/www/components.odb.host/public_html/wp-content/themes/pro/cornerstone/includes/classes/Templating/Export.php on line 109
[03-Feb-2025 17:52:11 UTC] PHP Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 67108872 bytes) in /home/customer/www/components.odb.host/public_html/wp-content/themes/pro/cornerstone/includes/classes/Templating/Export.php on line 128
[03-Feb-2025 17:52:51 UTC] PHP Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 67108872 bytes) in /home/customer/www/components.odb.host/public_html/wp-content/themes/pro/cornerstone/includes/classes/Templating/Export.php on line 128
[03-Feb-2025 17:53:09 UTC] PHP Fatal error: Allowed memory size of 1015021568 bytes exhausted (tried to allocate 262144 bytes) in /home/customer/www/components.odb.host/public_html/wp-content/themes/pro/cornerstone/includes/classes/Templating/Export.php on line 109
[03-Feb-2025 17:53:33 UTC] PHP Fatal error: Allowed memory size of 1434451968 bytes exhausted (tried to allocate 262144 bytes) in /home/customer/www/components.odb.host/public_html/wp-content/themes/pro/cornerstone/includes/classes/Templating/Export.php on line 109
I initially thought the issue might be isolated to one website, and something else conflicting with things there, but I was able to re-create it on a new fresh install and have narrowed it down to the component needing having a group in the parameters.
i.e. if the text is populated by p.text
then it works as expected, but if it is populated by p.setup.text
then it breaks and shows the {{ looper.item.title }}
.
I have set up a new testing site: https://twig-bug.odb.host/untitled-page/
With the same login details as before, and exporting the page seems to work now if you need to do that.
Hope this helps get to the bottom of the issue!