Log in

View Full Version : error attachment again


geevest.com
11-30-2008, 03:17 PM
i found some of attachment error like this :

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 8192 bytes) in /home/name/public_html/forum/attachment_watermark.php on line 148

how i can fixed this?

Princeton
11-30-2008, 03:50 PM
file too large..
ask your host to increase memory

Lynne
11-30-2008, 03:50 PM
That error indicates that your php doesn't have enough memory allocated to complete the operation. You can either increase your memory_limit setting in php.ini to 32M or to temporarily up your limits edit your includes/config.php file and add this line right under the <?php line:

ini_set('memory_limit', 32 * 1024 * 1024);

If you still get the error, increase it to 64 or 128 (it must be a power of 2).