joomla Fatal error: Allowed memory size of 272629760 bytes exhausted joomla Fatal error: Allowed memory size of 272629760 bytes exhausted nginx nginx

joomla Fatal error: Allowed memory size of 272629760 bytes exhausted


256 MB is more than enough for almost all Joomla websites. If you need more then most likely the problem will not be fixed with the allocation of more memory.

You have a memory leak somewhere (most likely caused by a recursive function that never ends) - the reason why the increase to 4 GB (4294967296 bytes) seemed to work is that the server timed out. Check this post on how to find that memory leak on your Joomla website (if you're not very technical, then start disable 3rd party modules/plugins until you find the culprit).


Just add this below line to before line or function of you getting error in your file

ini_set('memory_limit', '-1');

If you want server unlimited me usage for all function and all app, you add this line to php.ini file

memory_limit = -1

Or define max memory usage

memory_limit = 1024M

Refer this question Allowed memory size of 33554432 bytes exhausted (tried to allocate 43148176 bytes) in php

Update: Try modify your index.php like that:

define('JOOMLA_MINIMUM_PHP', '5.3.10');ini_set('memory_limit', '-1');if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '<')){    die('Your host needs to use PHP ' . JOOMLA_MINIMUM_PHP . ' or higher to run this version of Joomla!');}

Goodluck and have fun!