I'm stepping through Craft release versions while updating a Craft v3 site that is many versions behind. 3.5.7 works fine, but after using $ composer require craftcms/cms:3.5.8 to update to 3.5.8, loading the CP resolves in an error:
PHP Fatal Error – yii\base\ErrorException
Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes)
I've poked through the various posts that talk about this type of error and have tried a few things without success.
- updated memory_limit to 512MB (even tried setting memory_limit = -1, still didn't work)
- updated max_execution_time to 120
- set
enableTemplateCachingto false (@brad-bell suggested settingcacheElementQueriesto false in this post, but I think that setting's been deprecated) - ran garbage collection
- confirmed that craft_templatecacheelements, craft_templatecachequeries, and craft_templatecaches are all empty (0 rows)
- commented out all of the
{% cache %}tags in our templates - as a last-ditch effort, I moved all of our templates out of the
templatesdirectory- made no difference
I'm at a real impasse. The db itself is 395.2MB and contains 244 tables.
Our goal is to get Craft up to date in the hopes that it'll fix a Sprout Forms Pro issue that we're experiencing.