Media Library returns HTTP 500 Error Code

Having trouble installing serendipity?
Post Reply
Funkmaster Flow
Posts: 4
Joined: Mon Jul 28, 2008 11:07 pm

Media Library returns HTTP 500 Error Code

Post by Funkmaster Flow »

Hi,

I installed S9Y on my webspace successfully.
It runs quite well and I encountered no problems until now.
Everytime I want to upload an image via the MediaLibrary, my Server (Hosted by 1&1) returns a 500 Error.
In my FTP-Client I see the file I've uploaded, but it doesn't show up in the Library.

Permission of the upload directory is now set to 766 (was: 777). Both types of configuration didn't work for me.
I use GDlib and not ImageMagick because of my ISP.

If there's anyone out there who encountered the same problem, please response.
If you need further information, let me know...

Regards Flow
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Media Library returns HTTP 500 Error Code

Post by garvinhicking »

Hi!

1&1 has quite low ressource limits. It might very well be that the file you upload takes up too much RAM. How large is the file you upload?

Maybe you can reduce the memory footprint if you remove some event plugins that you do not absolutely need.

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/
Funkmaster Flow
Posts: 4
Joined: Mon Jul 28, 2008 11:07 pm

Post by Funkmaster Flow »

Hi Garvin

The file I want to upload is just a .jpg with a filesize of about 400kb.
Some details from my server:

upload_max_filesize: 20M
post_max_size: 8M

I will try to get rid of some event plugins although I don't use much of them.

Thanks for your help anyways.

Regards,
Flow
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

You only quoted the filesize limit's - what is your memory limit?

A 400kb jpeg can take up 6MB in memory. Since serendipity itself already requires about 4MB, your memory_limit for a 400kb jpeg would need to be at least 10MB, better 12MB.

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/
Funkmaster Flow
Posts: 4
Joined: Mon Jul 28, 2008 11:07 pm

Post by Funkmaster Flow »

Hi,

Quote from my phpinfo();
memory_limit: 40M

Disabling event plugins didn't help for me.

Regards,
Flow
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Okay, 40M would be sufficient. The only case for a 500 error that is left would be the script running time. Since s9y parses your image and tries to get EXIF metadata, this might take a few seconds. Can you ask your provider how long a script is allowed to run, and ask them if your HTTP 500 error can be related to such ressource limits?

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/
Funkmaster Flow
Posts: 4
Joined: Mon Jul 28, 2008 11:07 pm

Post by Funkmaster Flow »

It works!

Want to know, how?
Via researching for "max_execution_time" I reached another Forum with a similar problem.

The solution ist to add these 2 lines to a .htaccess file, which should be located in the root directory:

Code: Select all

AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
I came over this solution about 2 days ago, but accidentely put the .htaccess into a subfolder... :?

I'm happy with my installation of S9Y now.

Thanks a lot Garvin

Regards,
Flow

P.S.: Schöne Grüße nach Köln ;-)
Post Reply