I’ve got a script that’s giving me headaches on a particular server.
I keep getting this error:
Fatal error: Allowed memory size of 67108864 bytes exhausted
Even though I’ve edited php.ini to this:
max_execution_time = 300 ; Maximum execution time of each script, in seconds
max_input_time = 600 ; Maximum amount of time each script may spend parsing request data
memory_limit = 96M ; Maximum amount of memory a script may consume (16MB)
Where would the 67108864 bytes limit be coming from?
First, as far as I know, it has to be 96M (without the B)
Second, make sure you are editing the correct php.ini, and you are restarting the web server after the change (needed if PHP is loaded as an apache module for example).
And third, increasing the memory limit may resolve the problem, but it’s best to check why 64M are not enough 🙂