[Solved] Error: your login.txt key does not match correctly.

Ak5intoe

Joined: 2006-10-04
Posts: 8
Posted: Wed, 2006-10-04 05:35

I'm getting "Error: your login.txt key does not match correctly.". From what I can see, this issue has been around for a while.

The odd thing for me to note is that it authenticates me once, and then immediately fails and sends me back to step 2.

I have tried modifying the index.php as suggested in other postings.

Using version - gallery-2.1.2-typical

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2006-10-04 06:08
 
Ak5intoe

Joined: 2006-10-04
Posts: 8
Posted: Fri, 2006-10-06 14:50

removed url

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2006-10-04 14:21

1. i see you're using a buggy zend optimizer version / php version combination:
do you see any errors like:
"Notice: Only variable references should be returned by reference in "

2. already tried clearing your cookies for that domain in your browser?

your php session settings look fine.

 
Ak5intoe

Joined: 2006-10-04
Posts: 8
Posted: Thu, 2006-10-05 14:29

Where would I see that error. And if I was seeing it, how should I react to it?

Any other sugestions?

 
Locor

Joined: 2004-01-29
Posts: 8
Posted: Fri, 2006-10-06 12:29

I have tried installing gallery 2 on three different hosts today and they all seem to have 'buggy zend versions' because this happens to some extent in all of them

I have been trying to run gallery2 for almost a year now without success.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2006-10-06 14:37

Locor

let's discuss your issue in a dedicated thread as described in the other thread you just posted. thanks.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2006-10-06 15:11

Ak5intoe

you probably don't see the warnings / Notices, they would be shown somewhere in the webpage.
anyway, did you try the other thing, deleting the cookie?

 
Ak5intoe

Joined: 2006-10-04
Posts: 8
Posted: Tue, 2006-10-10 01:11

Ok, I deleted my cookies and got the same problem. I'm not seeing the error you described but am seeing some errors.

Basically I get the screen telling me to copy the login.txt up to the server (A.JPG). Then I get screen B after I authenticate. When I try to continue I go back to screen A (but with a different key now).

http://www.macfarlane.org/gallery2/problem/A.JPG
http://www.macfarlane.org/gallery2/problem/B.JPG

Any ideas?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2006-10-10 01:23

thanks for the screenshots.
the php errors at the top clearly show that your webhost has php safe_mode enabled.

g2 doesn't work on such hosts.

see:
FAQ: Does G2 work with Safe Mode PHP?

 
Ak5intoe

Joined: 2006-10-04
Posts: 8
Posted: Tue, 2006-10-10 04:46

Turning safe mode off did it!

Thanks a million.

 
Maciato

Joined: 2005-10-25
Posts: 1
Posted: Wed, 2006-10-18 13:51

Might seem stupid, but how do I turn safe-mode off ?
Do I hafto enter the php conf. to do that or is it just to change cmod to 777 on that folder ?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2006-10-18 14:06

Maciato

are you a customer of a shared webhosting plan? usually you can't disable php safe_mode in such environments yourself. the administrator has to do it for you.
it's a php.ini change and requires a restart of the webserver (unless it's php-cgi and not a webserver module).

 
Klabautermann

Joined: 2006-01-25
Posts: 40
Posted: Thu, 2006-10-19 11:01

I also have this login.txt problem, but on the server where i want to use G2 is safe_mode turned off. Any suggestions how to fix the problem?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2006-10-19 11:33

Klabautermann

please post a phpinfo link and a screenshot of your login screen.
FAQ: What information is required when I ask for help in the forums?

also, i'm assuming you're using g2.12.

 
Klabautermann

Joined: 2006-01-25
Posts: 40
Posted: Thu, 2006-10-19 12:02

@valiant:

Oh sorry, have forgotten to post the infos. Okay here they come:

Link to the PHP info

and yes i (try to) use gallery2.12

And one thing also: circa 3 month ago it worked on the server well

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2006-10-19 13:16

Klabautermann

the php settings look good so far.
please clear the cookie cache of your browser and try again.
if the problem persists, please set php's error_reporting to E_ALL and try again, creating a screenshot of the authentication step before and after you hit next.

 
Klabautermann

Joined: 2006-01-25
Posts: 40
Posted: Thu, 2006-10-19 13:32

hi valiant, if i click on authenticate i get a key that is different from the one shown on the page.

i mad two pictures of this:

[img]http://www.tiny-soldiers.com/bilder/fehler1.gif[/img]

[img]http://www.tiny-soldiers.com/bilder/fehler2.gif[/img]

I cant et php's error_reporting to E_ALL because i use a hosted services, maybe i can ask my provider.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2006-10-19 14:07

- open install/index.php for edit in a texteditor
- replace "<?php" with "<?php error_reporting(E_ALL);" right at the beginning of the file.
- does that change anything?
- can you check whether there are some php session files in /tmp/ ? maybe the webserver has no write access there...
- did you clear your browser cookie cache?

 
Klabautermann

Joined: 2006-01-25
Posts: 40
Posted: Thu, 2006-10-19 14:25

That was it, i replaced >?php with <?php error_reporting(E_ALL); and it seems to work, know i can get to step 3. Thank you!

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2006-10-19 14:27

uh? error_reporting shouldn't fix your problem, it should just ensure that php displays errors if they occur.
but clearing the cookie cache might have helped.

 
loginTXT

Joined: 2006-11-26
Posts: 3
Posted: Mon, 2006-11-27 00:57

ok, I too am getting the dreaded "Error: your login.txt key does not match correctly. Please download a new authentication string from below and try again." error message.

"Authenticate

In order to proceed with the install, we have to verify that you are who you claim. The best way to be sure is to ask you to make a tiny change in the Gallery directory which will prove that you have the right permissions. So, we're going to ask that you create a new text file called login.txt in the d:\hosting\jkyaw\g2data directory on your webserver (that's the same directory where main.php is located). It must contain the following randomly generated characters:

ec0051fea2cec678ca95d77fef403c8c

As a convenience to you, we've prepared a correct version of login.txt for you. Download that and copy it into your d:\hosting\jkyaw\g2data directory and you're all set.

Once you've uploaded the file, click below to continue. "

I've tried following the instructions but the problem still exists.

Please see my PHPinfo at
http://www.kyaw.com/gallery2/phpinfo.php

Thanks for your attention

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2006-11-27 00:24

loginTXT

the phpinfo link doesn't work.
also please see:
FAQ: The installer does not accept my login.txt, what's wrong?

 
loginTXT

Joined: 2006-11-26
Posts: 3
Posted: Mon, 2006-11-27 00:59

sorry valiant, I've corrected the phpinfo page link and it should work now:

http://www.kyaw.com/gallery2/phpinfo.php

You can also see the exact error message I'm having at:

http://www.kyaw.com/gallery2/

Thanks in advance

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2006-11-27 01:03

loginTXT

gallery won't work on that webhost. it's a pretty much useless php configuration. no file operations are allowed and safe mode is enabled.
additionally, the session.safe_path is not configured.

gallery will never run there. you can ask your webhost if they're willing to change their config or you can switch webhosts.
note that other gallery software like coppermine won't work there neither. their setup is just very bad.

 
loginTXT

Joined: 2006-11-26
Posts: 3
Posted: Mon, 2006-11-27 01:35

k thnx for your feedback. I'll try it on my home linux server which has both apache, php, and mysql.

 
eliia

Joined: 2007-12-21
Posts: 2
Posted: Fri, 2007-12-21 23:04

Hi
I'm having trouble getting past Step 1. I've done the login.txt a million times, not sure what the problem is?

Here's my settings http://www.timmismotor.com/gallery2/info.php

I just want the pnmtojpeg file - can I just get this file from somewhere?

Thanks
Eliia
www.createorconquer.com