Hi!

I have been reciveing the same error whenever I try to upload an HQ photo.

Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to
allocate 7812 bytes) in
/homepages/33/d188125194/htdocs/cpg1410/include/picmgmt.inc.php on line
262

Soo, I did as another forum instructed me to do, go into the php.ini file and up the file size/upload limit, plus up the memory limit. I put everything at 20M which is by FAR large enough.

Yet I still get that error...

Here is part of my code:

display_errors = 1
register_globals = 0
post_max_size = 20M
post_max_size+1 = 10
post_max_size in bytes = 8388608
upload_max_filesize = 20M
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;


max_execution_time = 30 ; Maximum execution time of each script, in
seconds
max_input_time = 60 ; Maximum amount of time each script may spend
parsing request data
memory_limit = 20M ; Maximum amount of memory a script may consume
(20MB)


echo 'display_errors = ' . ini_get('display_errors') . "\n";
echo 'register_globals = ' . ini_get('register_globals') . "\n";
echo 'post_max_size = ' . ini_get('post_max_size') . "\n";
echo 'post_max_size+1 = ' . (ini_get('post_max_size')+1) . "\n";
echo 'memory_limit = ' . ini_get('memory_limit') . "\n";
echo 'post_max_size in bytes = ' .
return_bytes(ini_get('post_max_size'));

Everything seems to be correct according to the forum I was following, but it still doesn't work.

Does anyone know what's wrong? I've tried everything.. And I really need HQ pictures in my gallery.

Any help is GREATLY appreciated. Thanks a million in advance.

    Anyone know what the problem is? Sorry, I don't know if this bumping is allowed..? 😕

      Write a Reply...