"Server error: 400" when uploading photos to an album

nixphoeni

Joined: 2010-04-25
Posts: 6
Posted: Sun, 2010-04-25 01:56

Whenever I try to upload a photo to an album (on a fresh install of Gallery 3.0rc1-p1), I get "Server error: 400" in the swf upload box. Only thing in var/logs is a file containing the line:
<?php defined('SYSPATH') or die('No direct script access.'); ?>

Could this be a result of my insistence on trying lighttpd instead of Apache? It works well enough for my application (except, of course, this issue). If not, what else can I try?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sun, 2010-04-25 02:28

Could be. Try Apache and see if that works. Lighttpd isn't supported. When I tested it it, everything appeared to work except for Gallery's permission system, but it's been many months since I've tried Lighttpd and G3.

Check Lighttpd's access and error logs to see if they show anything else.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
nixphoeni

Joined: 2010-04-25
Posts: 6
Posted: Sun, 2010-04-25 02:46

Yeah, nothing interesting in lighttpd's logs. Will try Apache.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sun, 2010-04-25 02:54

Once I get my G3 install running again on my test server, I'll try Lighttd and see if I get anything.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
nixphoeni

Joined: 2010-04-25
Posts: 6
Posted: Mon, 2010-04-26 01:31

Yeah, it looks like it was because I was using lighttpd. It works using Apache (same installation). That's a little disappointing.

 
amihere

Joined: 2010-06-23
Posts: 18
Posted: Wed, 2010-06-23 15:04

Hi folks,

I run Apache server but this error appears. I discovered it appears when trying to upload picture bigger than 2MB. Is this issue of server settings (and how to fix it?) or some gallery bug (and how to fix it?)

Thanks

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2010-06-25 09:37

No bug in Gallery. Try this:
FAQ: Why can't I upload big files (over a megabyte or two)?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
amihere

Joined: 2010-06-23
Posts: 18
Posted: Fri, 2010-06-25 17:24

Thank you nivekiam,

it works. I didn't noticed this before, sorry.

 
thefluffyshrimp

Joined: 2007-02-25
Posts: 72
Posted: Tue, 2011-02-22 19:26

Please help!

I ran into this same problem (server error: 400 w hen uploading photos). I went to the FAQ: Why can't I upload big files (over a megabyte or two) page, and followed their instructions. However, I must have done something wrong, because right after I visited my website, my entire website is down.

http://missmoeller.com

I think I accidentally edited the .htaccess and php.ini files in my main directory. So I erased what I had added to the files, and uploaded them as they originally were. However, the site remains down. What should I do?

I have to present my website later today (of all times). Please help!

Thank you very much!

 
thefluffyshrimp

Joined: 2007-02-25
Posts: 72
Posted: Tue, 2011-02-22 20:23

I managed to fix the above problem on my own. Thank you, anyway. :-)

Turns out it was just an issue of not having the "." at the beginning of my .htaccess file (I didn't notice it earlier). *head palm*

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2011-02-22 19:55

Care to share with the group what you did to fix it?
____________________________________________
Like Gallery? Like the support? Donate now!

 
thefluffyshrimp

Joined: 2007-02-25
Posts: 72
Posted: Tue, 2011-02-22 20:24

However, I am still having trouble solving the "server error: 400" problem. I tried every step on the list linked to above, except the last one involving editing the configuration of my Apache server (since I'm not sure how to do that).

Can anyone please help me?

Thank you so much!

 
yungchuck

Joined: 2011-02-24
Posts: 2
Posted: Thu, 2011-02-24 10:06

Hi Everyone,

I need help. Anytime I try to upload a picture it gives me "Error 406". In the help option it says:

mod_security is good to protect your website but it might cause some problems for certain web applications, especially in file uploads.

Add to your .htaccess file this line:

SecFilterEngine Off

How do I do that??

 
nixphoeni

Joined: 2010-04-25
Posts: 6
Posted: Thu, 2011-02-24 13:04

This is unrelated to the current thread (it's not "Server error: 400"). Try checking Google for an answer:
http://www.google.com/search?q=apache+.htaccess
Google is your friend :-)