Page 1 of 1

Error uploading image

Posted: Mon Aug 10, 2009 10:27 pm
by whag
Hi guys any ideas?
When we upload images we get the following error:
"
Afbeelding toevoegen...

Het bestand SS101468.JPG is succesvol geüpload als /opt/www/zwartsw/web/www.tibozwarts.be/blog/uploads/SS101468.JPG

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 3648 bytes) in /opt/www/zwartsw/web/www.tibozwarts.be/blog/include/functions_images.inc.php on line 1307
"
If I check the site trough ftp, the JPG is actually uploaded, but no thumbnail is generated and definatly doesn't showi teh medialibrary.

Thanks!

Re: Error uploading image

Posted: Mon Aug 10, 2009 11:22 pm
by kleinerChemiker
You have to raise the memorylimit of php.

Re: Error uploading image

Posted: Mon Aug 10, 2009 11:34 pm
by whag
kleinerChemiker wrote:You have to raise the memorylimit of php.
Where can I find this?

Re: Error uploading image

Posted: Tue Aug 11, 2009 10:08 am
by garvinhicking
Hi!

Either you need to contact your web provider, or you can try to use a .htaccess and set "php_value memory_limit 64M" for example.

The actual memory usage depends on the number of plugins you have installed, how much RAM the server has, and how large the image is. Remember a 500kb JPEG might take up to 30MB of RAM if thumbnail conversion is required.

Regards,
Garvin

Re: Error uploading image

Posted: Tue Aug 11, 2009 11:14 am
by whag
garvinhicking wrote:Hi!

Either you need to contact your web provider, or you can try to use a .htaccess and set "php_value memory_limit 64M" for example.

The actual memory usage depends on the number of plugins you have installed, how much RAM the server has, and how large the image is. Remember a 500kb JPEG might take up to 30MB of RAM if thumbnail conversion is required.

Regards,
Garvin
Hi gavin,

Thanks for the reply, I'll start with editing the htacces file and see what happens.

What is strange though is that it's always the same size of JPEG's. I didn't alter or install new pluggins since I setup the blog, and my wife always uses the same camera. From what I understand is that maybe the provider has tweakd something on the server and that's what causing the problems... is this correct?

Greetzzz,
Wim

Re: Error uploading image

Posted: Tue Aug 11, 2009 11:32 am
by whag
PS: where can I finf the .htaccess file? :D

Re: Error uploading image

Posted: Tue Aug 11, 2009 11:44 am
by garvinhicking
Hi!

Hm, what you could do is re-upload an image that already exists on your server, to see if your provider changed anything.

.htaccess support depends on your provider, your mileage may vary and the provider might not even supporrt it. Also, if it doesn't exist you might need to create it. Remeber that some FTP clients/servers hide files that start with "." which makes it hard to spot such files...

Regards,
Garvin