404 Login and Logout problem with 1.5.10

BlackPanda

Joined: 2005-03-25
Posts: 49
Posted: Thu, 2009-01-22 02:43

The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version: 1.5.10
Apache version: 2.0.63
PHP version (don't just say PHP 4, please): PHP v5.2.5
Graphics Toolkit: ImageMagick
Operating system: Windows XP SP2
Web browser/version (if applicable): Firefox 3.0.5

------------------------------------------------

Whenever I login or logout I get this page:

Not Acceptable

An appropriate representation of the requested resource /gallery/login.php could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.mydomain.com Port 80

What do I need to do to fix this issue?

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Thu, 2009-01-22 07:16

Hello

Can you give us the URL to your Gallery?

Jens
--
Gallery Developer

 
BlackPanda

Joined: 2005-03-25
Posts: 49
Posted: Thu, 2009-01-22 14:45
 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Thu, 2009-01-22 15:14

Hi,

Its a 406 followed by a 404.

Do you have mod_security installed and activated in your apache?

Jens
--
Gallery Developer

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Thu, 2009-01-22 15:19

If yes,

add this in the Gallery .htaccess file:

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>

Jens
--
Gallery Developer

 
BlackPanda

Joined: 2005-03-25
Posts: 49
Posted: Thu, 2009-01-22 19:22

I don't know if mod security is installed and activated, but I will try the change to the .htaccess file as soon as I get home.

 
3rdCoast
3rdCoast's picture

Joined: 2005-03-01
Posts: 2
Posted: Thu, 2009-01-22 21:47

I'm having what might be similar problems.

I click the login link and the browser "spins" until it eventually times out. I can login by going to gallery/setup/ but the same thing happens between Step 2 and Step 3 of the Config Wizard. It just times out.

I have no problems with the Sessions test script and once I login in at gallery/setup/ I can go back to the gallery already logged in.

http://www.elmriver.k12.mi.us/gallery/

Sandstone Digital
Foundational Web Sites
www.SandstoneDigital.com

 
BlackPanda

Joined: 2005-03-25
Posts: 49
Posted: Thu, 2009-01-22 23:07

I tried to add that code and I still can't login. I noticed if I go to this link http://www.archivedjokes.com/gallery/login.php, I am able to login, but if I click the login link I get this super long url = http://www.archivedjokes.com/gallery/login.php?g1_return=http%3A%2F%2Fwww.archivedjokes.com%2Fgallery%2Falbums.php%3Fpage%3D1

My browser isn't timing out.

 
BlackPanda

Joined: 2005-03-25
Posts: 49
Posted: Fri, 2009-01-23 14:13

Any ideas on this one yet?

It seems to me it might be in the coding. For some reason after the 'return=' the code is stripping the slashes. Is there a way to fix that? When I mouse over the link it appears correctly, but then when it's clicked on it strips the slashes.

 
BlackPanda

Joined: 2005-03-25
Posts: 49
Posted: Fri, 2009-01-23 14:18

I tried the same link changing the characters to what it should be and it still didn't work.

http://www.archivedjokes.com/gallery/login.php?g1_return=http://www.archivedjokes.com/gallery/albums.php?page=1&cmd=logout

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Fri, 2009-01-23 14:24

They are not stripped, they are URL encoded, which is correct.

Can you provide us a URL of a phpinfo of your server?

Jens
--
Gallery Developer

 
BlackPanda

Joined: 2005-03-25
Posts: 49
Posted: Fri, 2009-01-23 18:20
 
BlackPanda

Joined: 2005-03-25
Posts: 49
Posted: Sat, 2009-01-24 16:41

I have discovered that the links to logout are different on a couple of different pages. If I go to the admin-page.php and logout I can logout no problems, but if I am on any other page I can't logout. I'm still wondering if it's something in the coding sending me to the wrong link to logout, or do I have something configured wrong in my settings? I've double checked my settings and left everything the same from the previous version I upgraded from.

 
BlackPanda

Joined: 2005-03-25
Posts: 49
Posted: Sat, 2009-01-24 17:13

This link for the login and the register are different in that the register is a popup link, and the login link doesn't popup. It has to be in the coding but I don't know enough about the coding of this script to change or edit it. Please help me.

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Sat, 2009-01-24 17:33

The URLs contain information to redirect you after an successfull operation.

Your server does obviously not allow it in the way Gallery does it.
The problem seems the URL inside the URL.

Gallery 1 is not longer developed, but maybe some of the guys here is able to help.

Jens
--
Gallery Developer

 
BlackPanda

Joined: 2005-03-25
Posts: 49
Posted: Sat, 2009-01-24 20:02

Here is the login link - http://www.archivedjokes.com/gallery/login.php?g1_return=http%3A%2F%2Fwww.archivedjokes.com%2Fgallery%2Falbums.php%3Fpage%3D1

Here is the register link - http://www.archivedjokes.com/gallery/register.php?gallery_popup=1

As you can see the register link is a popup, and the login link is not. It was in the older version.

Someone else here must have the same problem?? Or, there must be a fix for this??? I realize you guys do this voluntarily, but it would be nice to get some help, so that I can get my site up and running.

 
BlackPanda

Joined: 2005-03-25
Posts: 49
Posted: Sat, 2009-01-24 22:03

O.k. here's what I did.

I set up a Gallery on another server, and it worked fine. So, I set up a clean install, not an upgrade on my current server, and I got the same error. I sent Tech Support a ticket, and it was the mod_security setting. I don't understand why the code I put in my .htaccess file didn't work to disable mod_security?

Any ideas on that one?

Anyway my Gallery is working, YAY!!!

Thanks for your help!

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Mon, 2009-01-26 08:55

Glad you got it working.

Maybe these kind of settings are not allowed to be changed for you.

Jens
--
Gallery Developer