Login.txt looping problem

valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2007-02-07 23:30

Thank you very much for trying G2.2! Good to see that there's at least no issue after clearing cookies.

--------------
Enter the Gallery 2 Theme Contest today!

 
ikerstges

Joined: 2007-02-05
Posts: 1
Posted: Tue, 2007-02-13 22:34

I have setup Gallery2 (ver. 2.1.2) at my webhost. Now, while setting it up again at another webhost, I'm running in this exact same problem.

Gallery 2.1.2
Linux 2.6 cluster (!)
Apache 2
PHP 5.2.1
MySQL 5.0.32

From phpinfo.ini:
Safe_mode = off
session.name = PHPSESSID
session.save_path = /tmp (I created a /tmp in my webroot with 777 rights)
session.save_handler = user

I start installation, but authentication fails immediately when performing step 2. A new authentication string is presented every time. The authentication string does not match with the string in the login.txt file that is offered in step 2. Reloading the page constantly generates new authentication string! I have tried all suggestions in this thread, no luck. Trying for a week already, as I absolutely want to stick to this Gallery product (rather change serviceprovider instead! ;-)

I have no way to edit the php.ini file!

According to FAQ:
Make sure your PHP session.save_handler is set to "files" and not to "user" (or "mm"). In development builds since 2005/11/27 or since Gallery 2.1, you shouldn't have to worry about this setting (unless PHP ini_set / ini_get are disabled in your PHP installation)

This session.save_handler is the most significant difference with my already running Gallery2 install, where is is set to "files". Although the FAQ states that this shouldn't be an issue, I'd still like to ask:

* Is there a known working setup of Gallery 2 (v.2.1.2) with session.save_handler = user ?
* Is it possible to use > php_value session.save_handler files < in .htaccess ? (if so: where do I locate the .htaccess?)

My biggest question/whish:

Please explain to me how I can disable this authentication?! I have downloaded the sourcefiles of Gallery and I feel very confident that nobody-else but me is installing the software on the server, in my webspace!! I can live WITHOUT authentication, would be most happy to setup my Gallery2 and remove the installfiles afterwards! (I'm very well aware that such a change will remove me from support in these forums, but alas!)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2007-02-13 22:35

please post a phpinfo link. i'd like to see a few other settings.
and i assume you already cleared your browser's cookie cache.

and yes, removing the authentication from the installer is easy. but it should be a last resort.

--------------
Enter the Gallery 2 Theme Contest today!

 
Bèrto ëd Sèra
Bèrto ëd Sèra's picture

Joined: 2007-02-15
Posts: 1
Posted: Thu, 2007-02-15 10:23

Hi! I almost went nuts in the same loop. It was embaraaasing as I had installed Gallery for Drupal 4.7 with NO problems at all from the same server. Now installing it for Drupal 5.1 proved... impossible. Then I decided to try the impossible and used Opera 9 instead of Firefox. It worked. I went thru the full install absolutely flawless.

In case it may be of any help, I enclose an HTML copy of my phpinfo() output.

-----
Queequeg was a native of Kokowoko, an island far away to the West and South. It is not down in any map; true places never are. - H. Melville, Moby Dick.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2007-02-15 10:37

> Then I decided to try the impossible and used Opera 9 instead of Firefox. It worked. I went thru the full install absolutely flawless.

then it was probably because of cached cookies in your browser. clearing the cookie cache of firefox should have had the same effect.

--------------
Doumentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
jimmyzzz

Joined: 2007-02-15
Posts: 1
Posted: Thu, 2007-02-15 22:22

This problem is absolutely unacceptable. I just spent all this downloading, unpacking, and then uploading all the files and now I can't install it because of a silly bug in the installer. The threads in this post go back a year how in the world was this not fixed yet?! Please put a big red sign on the front page of this site that says "This script can not ever be installed". This would save all of us much grief and time. Unbelivable, what a crock of bunk.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Fri, 2007-02-16 09:23

@jimmyzzz: I'm working on this problem, but obviously (since it's been around for a while) it's not easy to solve. Did you try deleting your cookies as has been mentioned earlier in this topic? That has fixed the problem thus far for everybody who's reported it.

 
bugambilia

Joined: 2006-06-20
Posts: 9
Posted: Thu, 2007-09-27 18:39

I just migrated from mediatemple's shared server (where gallery worked fine once safe mode was turned off) to grid server lite. I reinstalled with the preinstaller and am also stuck at the login.txt step.

I've tried what's been listed in this section and no luck.

- Safe mode is off
- Deleted cookies and emptied cache

I'm with ikerstges, how can we just remove the authentication from the installer?

Attached is the php info

Thanks

 
yes_man

Joined: 2007-10-07
Posts: 5
Posted: Sun, 2007-10-07 21:57

I had this problem also.
The solution for me was (after investing many-many hours, days for searching and testing :P) setting "Accept all cookies" to "No" for my Firefox. So then the G2 kept the SessionID in the URL.
Hope it works for some of you.
Heads up! ^^

 
stevedoan

Joined: 2010-04-07
Posts: 7
Posted: Wed, 2010-05-05 15:50

Hi Valiant,

I have the same issue like others. I can't install Gallery2 because the authentication keeps looping back. It keeps giving me this error "Error: your login.txt key does not match correctly. Please download a new authentication string from below and try again. " even though I have created login.txt and stored the right key to it. Please check my phpinfo that I attached and let me know what I can do to fix it. Please remove .txt from the file I've attached so that you can view it in html.

Thanks.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2010-05-05 18:09

stevendoan, Looks like there is javascript being inserted into your pages. The phpinfo page you posted above has a ton of Yahoo garbage in it that it shouldn't if you just created a simple phpinfo page like so:

<?php phpinfo(); ?>

If there are things being inserted into your pages like that, and it appears you're running locally on a windows box, looks like you may be infected with a virus possibly. Also, having junk like that inserted into pages will break Gallery (and most web apps). That's why few, if any, work at "free" hosts who insert ads into pages being served up.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
stevedoan

Joined: 2010-04-07
Posts: 7
Posted: Wed, 2010-05-05 19:20

I think it is because I can't attach an HTML file to this forum (even though some people in here know how to do it). That's why I changed it to text file instead. But if you know or someone know how to attach the phpinfo in a better /acceptable format please help.

Thanks.

 
stevedoan

Joined: 2010-04-07
Posts: 7
Posted: Wed, 2010-05-05 19:26

I added the phpinfo to a zip file instead.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2010-05-05 19:32

No, your phpinfo file still has a bunch of Yahoo javascript that it's not suppose to have. If that's happening then your server is attaching junk to your pages.

Take a look at your phpinfo file, then view-source in your browser.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
stevedoan

Joined: 2010-04-07
Posts: 7
Posted: Wed, 2010-05-05 19:48

I guess my last resort would be to skip the authentication step.
If so could you give me the instructions on how to avoid the authentication so that I can be able to install G2?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2010-05-05 20:18

You can't. Well I guess you can if you want to hack into the code, but I'm not going to spend any time trying to figure that out. Your server or configuration is busted. It's inserting javascript into your pages that's not suppose to be there.

If it's doing that, then even if you bypass the authentication check, Gallery will not function properly if at all.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
stevedoan

Joined: 2010-04-07
Posts: 7
Posted: Thu, 2010-05-06 13:03

remove $stepOrder[] = 'Authenticate';
from install\index.php
for those who like to skip the authentication step. Not sure if G2 will still function properlly without this.

 
stevedoan

Joined: 2010-04-07
Posts: 7
Posted: Thu, 2010-05-06 15:38

BTW, what are some of the risks if I bypassed the authentication step?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2010-05-06 15:47

If you don't remove or secure the install directory someone could potentially hose your gallery install.

It's a security measure there for a reason. It doesn't seem like you've addressed the underlying issue of your server inserting javascript unnecessarily into pages.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
stevedoan

Joined: 2010-04-07
Posts: 7
Posted: Thu, 2010-05-06 16:53

I have contacted the person who knows what's going on with it so that it can be fixed. I have successfully installed G2 and uploaded some images but then I could not view the images.
Do you know why? One reason I could think was that javascript that busted me and did not let me view the images.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2010-05-06 17:05

If you're still having problems with Gallery, please start a new thread and supply as much information as possible. A link to the site would be really helpful too:
Create a new thread here:
http://gallery.menalto.com/forum/62

How to get the information that is helpful to us in helping you:
FAQ: What information is required when I ask for help in the forums?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here