Admin Login in Troubles

burgenet

Joined: 2002-08-15
Posts: 2
Posted: Thu, 2002-08-15 18:59

Hello,

I recently installed Gallery again - I have used it before with no troubles. Everything went smoothly, and no errors were reported. However, when I submit the login form it brings back an error saying "Password Required" - (yes I am putting in the password :wink:

I was curious if anyone else has experienced this problem. I tried changing the password even, and still no luck. I am going to try completely reinstalling the gallery, but I don't want to waste my time if it is going to happen again or there is a simple explanation. I program in PHP, CGI, PERL, C++, etc... so I was able to go through the code and tried a few variations (hope you don't mind), but I was not able to see any problem. It seems to me that the problem is in the IF statement in login.php that relates to verifying if the form was submitted. It then goes to check if both username and password variables are present. The best I can tell is that it is ok with the username variable but it is not finding the password variable.

It is probably some simple oversight, but any help is appreciated.

Thanks,
Ben Burge - <!-- BBCode Start --><A HREF="http://www.burgenet.com" TARGET="_blank">BurgeNet</A><!-- BBCode End -->
President &amp; CEO

 
burgenet

Joined: 2002-08-15
Posts: 2
Posted: Thu, 2002-08-15 19:12

Follow Up:

I had a brainstorm and in the login.php file I placed:
<!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE> $password = "//mypasswordhere//";</TD></TR></TABLE><!-- BBCode End -->

I then tried logging in again and it worked. Appearantly for some reason it is not submitting the variable password. The form is correct, the form field name is correct, there really is no reason for this. I have tried dozens of times hoping it was a fluke - no luck anytime.

Anyways, thought I'd share that bit of insight into the issue.

Ben

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Fri, 2002-08-16 18:53

That's pretty weird. Try printing out the password value and see if anything is coming across. Perhaps it's getting mangled in some way in the transmission...

 
Knightsabre

Joined: 2002-09-12
Posts: 4
Posted: Thu, 2002-09-12 05:27

Has there been any headway made on this problem? I am having a similar issue on my system:

When I try to log in as admin using the password I set during configuration, it returns an 'invalid username or password' error, and resets the login window. I applied the workaround detailed above and was able to log in, then set up a new userid. Then I tried logging in as the new user, and ran into the same problem! :sad:

I am running Mandrake-Linux 8.2

Apache 1.3.23
PHP 4.1.2
Gallery 1.3.1

Thanks!

Knightsabre

 
Keith

Joined: 2002-09-12
Posts: 7
Posted: Thu, 2002-09-12 22:59

Yes, we know our password but who knows what username the software wants. It never asked us for a yourname when setting it up. Bottom line is: we can not get into the admin area to do anything. And it seems like know one wants to tell how to solve the problem. :grin:

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Thu, 2002-09-12 23:03
Quote:
Yes, we know our password but who knows what username the software wants. It never asked us for a yourname when setting it up. Bottom line is: we can not get into the admin area to do anything. And it seems like know one wants to tell how to solve the problem. :grin:

If you know your password, it should be easy. The only user created by the Gallery setup wizard, is [insert drum roll here]: admin

:wink:

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2002-09-14 05:59
Quote:
Has there been any headway made on this problem? I am having a similar issue on my system

I can't help you until somebody follows the directions I posted in my first reply and gives me a clue as to what's going on.

 
rhervig

Joined: 2002-09-21
Posts: 4
Posted: Sun, 2002-09-22 05:52

Im having this same issue. I thought something may have gotten messed up during my install so I wiped it out and reinstalled. No luck. I try and login with the admin and my password and it tells me "Error: Invalid username or password" Has anyone found anything on this? Oh and I dont know if this is normal, but when the login screen comes up the password field is full of asterixs. I clear them out obviously to enter my password but I havent seen that before.

 
rhervig

Joined: 2002-09-21
Posts: 4
Posted: Mon, 2002-09-23 01:55
Quote:
That's pretty weird. Try printing out the password value and see if anything is coming across. Perhaps it's getting mangled in some way in the transmission...

Forgive me, but how do I print out the password value?

Is anyone else still having this problem?

 
rhervig

Joined: 2002-09-21
Posts: 4
Posted: Mon, 2002-09-23 02:33

Okay, I found it. My Win 2000 machine is running Zone Alarm and apparently doesnt like the Popup login window. Alls well.

 
rhervig

Joined: 2002-09-21
Posts: 4
Posted: Mon, 2002-09-23 05:51

Okay, zone alarm wasnt my only problem. Apparently there is a cookie session ID conflict between Gallery and Geeklog. I cleaned cookies, restarted IE6 and Im good.
Am I talking to myself here? Is anyone out there? Just kiddin.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2002-09-23 07:26

I'm here, but I only get time to answer these forums once a day. :sad:

This conflict with Geeklog has been resolved in Gallery v1.3.2 -- get the latest
code from CVS (see the download page) and it should work fine for you.

 
Knightsabre

Joined: 2002-09-12
Posts: 4
Posted: Thu, 2002-09-26 01:44
Quote:
>>That's pretty weird. Try printing out the password value and see if anything is coming across. Perhaps it's getting mangled in some way in the transmission...
<<

Forgive me, but how do I print out the password value?

Is anyone else still having this problem?

I am still having this issue, and so would also like to know how to print out the password value.

Thanks! :grin:

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Thu, 2002-09-26 03:14

knightsabre, try using v1.3.2 first to see if it resolves your problem before messing with the code.