I keep getting fatal out of memory errors when trying to get to an edit template page. I've added the following to the wp-config.php file:
define( 'WP_MEMORY_LIMIT', '2048M' );
define( 'WP_MAX_MEMORY_LIMIT', '2048M' );
That should be wayyyyy more than enough to handle this. I realize we have a very large number of plugins enabled, but we need all the ones we've installed to achieve the site functionality needed. We're trying to migrate from Drupal to WordPress and this is all stuff that we have working fine in Drupal, but in WordPress we're needing more plugins than is healthy for the site.
The fatal errors seem to only happen when we're trying to edit a template. i'm not sure if that's because of the block editor or not. We have the classic editor in use throughout the site other than editing the templates through your plugin. We do have Elementor and WPBakery installed as part of the theme we are using and we may use these as we study their demo content more in depth. But right now, we're just trying to get our already existing pages, content and functionality working in WordPress. So far, it's going mostly well, but these fatal errors are making things difficult.
Here are the last two we've gotten from trying to get to the edit template page from the Toolset dashboard:
[12-Feb-2022 04:42:22 UTC] PHP Fatal error: Out of memory (allocated 243269632) (tried to allocate 131072 bytes) in /home3/fyccnorg/public_html/shop-fyccn-org/wp-includes/media-template.php on line 1213
[12-Feb-2022 04:43:39 UTC] PHP Fatal error: Out of memory (allocated 243269632) (tried to allocate 126976 bytes) in /home3/fyccnorg/public_html/shop-fyccn-org/wp-admin/edit-form-blocks.php on line 295
I'm thinking we may need to move this site to VPS hosting. Is it possible that my increasing the memory to 2048M isn't being respected on our shared host? Or is it that 2048M isn't even enough? I've never had to go higher than 512MB on a site before getting these errors trying to get to your edit template page. But now even 2048M isn't stopping it. Any advice here that solves it would be hugely appreciated.