MyBB Community Forums

Full Version: Attachment error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I tried to upload a pic 400kb while the size limit is 500k and i got this error

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1408 bytes) in /home/greedds/public_html/forums/inc/functions_image.php on line 25
I believe that the 8Mb memory per script was reached probably when it was trying to generate a thumbnail. You can try to raise the amount of memory per script in php.ini if you have access to it.
I tried the [img] code but the picture wasnt resized. It went into the post in dimension 1024X768. Any solution for that ?

Post update - Solution found

If u have similar problems u can fix the problem by editing the .htaccess file
Add this

php_value upload_max_filesize 20M
php_value post_max_size 20M
php_value memory_limit 20M