Jump to content

  •  

  • Tutorial info Visit support topic

    • Added on: Oct 24 2006 04:46 PM
    • Date Updated: Apr 29 2008 07:47 PM
    • Views: 5413
     


    * * * * *
    4 Ratings

    Allowed memory size of X bytes exhausted

    How to correct the "Allowed memory size of X bytes exhausted" error.

    Posted by Michael on Oct 24 2006 04:46 PM
    Sometimes, an error like this can come up on your board:

    Quote

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 19228995 bytes) in /path/to/some/file.php on line 1
    The numbers there, the file, and line number could all be different, but the issue is the same: some process on your board is trying to use more memory than what the server's configuration will let you.  You have three options to correct this:

    1. Open up your ips_kernel/class_xml.php file and find this line:
    	var $lite_parser	   = 0;
    Change it to this:
    	var $lite_parser	   = 1;
    Save and upload the file.  Try whatever it was that caused the error again.  If that doesn't work...

    2. You'll want to add the following line to your .htaccess file, or create a new .htaccess file with this line in it and put it in your domain's root directory:
    php_value memory_limit 64M
    Save and upload the file.  Try whatever it was that caused the error again.  If that doesn't work...

    3. Open your forum's init.php file, find this code:
    //-----------------------------------------------
    // NO USER EDITABLE SECTIONS BELOW
    //-----------------------------------------------
    And add this code above that:
    ini_set("memory_limit","64M");

    4. Contact your host and see if they can increase the memory_limit value for you in the php.ini file.

    Powered by Tutorials 1.4.1 © 2012, by Michael McCune