Thursday, January 24, 2013

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate XXXXXXXX bytes)

In the Top of the page, Try like 


<?php ini_set( "memory_limit","32M"); ?>

(Or)


<?php ini_set( "memory_limit","62M"); ?>

(Or)


<?php ini_set( "memory_limit","128M"); ?>


Better solution is,

<?php ini_set('memory_limit', '-1'); // overrides the default PHP memory limit  ?>

No comments:

Post a Comment