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?
The correct way is to edit your php. ini file. Edit memory_limit to your desire value. As from your question, 128M (which is the default limit) has been exceeded, so there is something seriously wrong with your code as it should not take that much.
Fix error allowed memory size WP with WHMLog in to WHM. Go to "MultiPHP INI Editor". If you have multiple PHP versions on the server, set the one that is responsible for the problem with your Wordpress website. Scroll down where it says "memory_limit" and immediately make it 256M or even 512M.
Allowed memory size of 1610612736 bytes exhausted ??? can someone help me this? Try prefixing your command with COMPOSER_MEMORY_LIMIT=-1 . This will remove the memory limit for the execution of the command.
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 :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With