• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error message in image upload

#1
[eluser]Rubiz'[/eluser]
Hello all.

I have a image uploader in my web site, but when I try to upload big images, size and kbytes, it returns me an error message, like this:

Allowed memory size of 25165824 bytes exhausted (tried to allocate 10304 bytes) in /hsphere/local/home/sergiopo/sergioporto.com.br/admin/system/libraries/Image_lib.php on line 1157

Anyone could tell me what does it means?

#2
[eluser]NateL[/eluser]
Try this at the top of your page:

ini_set("memory_limit","12M");

or change "12M" to a higher number if it isn't high enough..

try this out

#3
[eluser]Rubiz'[/eluser]
NateL, it didn't work...

I have written your init config in the top of the function that uploads the image; the image to upload has 807kb, and I get thids error:

Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to allocate 2576 bytes) in /hsphere/local/home/sergiopo/sergioporto.com.br/admin/system/libraries/Image_lib.php on line 1157

D'you know how I could solv this problem?


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.