Server Error on Local Host


#1

E_ERROR - Allowed memory size of 134217728 bytes exhausted (tried to allocate 9301601 bytes)

I’ve gotten this error several times on my local machine. Previously, it seemed to correct itself; but this last time I just keeping getting the error and can’t get my site to load on http://localhost:8000 … I saw a thread with the same issue abut a year ago, but there didn’t seem to be a resolution … any help?


#2

Try to increase your php memory_limit and max_execution_time in your php.ini file.


#3

Thanks. I did check that it’s set to 256, but I noticed the configuration through the Admin panel shows 128. I checked all php.ini files (other versions) and all set to 256 … where else would I check? Thanks again


#4

Just noticed, in Terminal, I get this message:
Allowed memory size of 134217728 bytes exhausted (tried to allocate 9301601 bytes) in /Users/temp/repos/grav/vendor/gregwar/image/Gregwar/Image/Adapter/GD.php on line 85

line 85 is:
imagefill($n, 0, 0, $color);


#6

You might want to have a look at an older topic Weird grav memory error and PHP memory_limit calculator for image resizing


#7

thank you! appreciate it