A day or two ago I started getting memory issues when trying to access /admin
At first it was on and off and now the site tree doesn't load rendering the admin sections unusable. Anyone know what the issue could be? Or has experienced something like this before?
I tried clearing cache and setting a silverstripe-cache folder but that didn't do anything.
Assuming it could be the code which I've written I moved all the pages types out of the directory, ran dev/build & flush but that the error still persists.
Modules active:
> multivaluefield
> external_auth
Page types : 15
# of pages : 40,261
The error I get is:
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 71 bytes) in /framework/model/connect/PDOQuery.php on line 26, referer: /admin/pages/
Can anyone suggest where I should focus to fix this? I'm a bit stumped as too what/where the issue is
Update / answer / my solution
I managed to fix the issue (for now)...
What I did was empty the SiteTree_Live table and reverted back to a commit back when I knew my code was running well with no doubts of any memory issues, then I published all the articles again and bumped up the commits until I was back to the most recent one.
It now works and I can get back into the admin panel just fine so it does seem like it was something to do with the amount of data. Increasing the memory limit would have done the trick.