Error uploading image

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
whag
Regular
Posts: 6
Joined: Mon Jan 26, 2009 1:02 pm

Error uploading image

Post 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!
whag
Regular
Posts: 6
Joined: Mon Jan 26, 2009 1:02 pm

Re: Error uploading image

Post by whag »

kleinerChemiker wrote:You have to raise the memorylimit of php.
Where can I find this?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Error uploading image

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
whag
Regular
Posts: 6
Joined: Mon Jan 26, 2009 1:02 pm

Re: Error uploading image

Post 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
whag
Regular
Posts: 6
Joined: Mon Jan 26, 2009 1:02 pm

Re: Error uploading image

Post by whag »

PS: where can I finf the .htaccess file? :D
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Error uploading image

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply