Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

cannot login to back end, authentication fails #607

Closed
ghost opened this issue Nov 29, 2011 · 3 comments
Closed

cannot login to back end, authentication fails #607

ghost opened this issue Nov 29, 2011 · 3 comments
Assignees

Comments

@ghost
Copy link

ghost commented Nov 29, 2011

versions: IIS5, PHP 5.2.9-1, TYPOlight 2.6.7, MySQL 5.0.22

Hi, I'm trying to install TYPOlight on my IIS5 Windows 2000 shared hosting server. I've set all the permissions and the system check test reports everything ok, except a few missing js files way down the list. I have up-to-date MySQL/PHP etc.

When I enter the default install password (typolight), it just clears the input field and stays where it is. The next field that is supposed to drop down and appear simply doesn't. It doesn't give an 'invalid password' error message, it just clears the input box and nothing happens.

I installed the same file set on my local Vista test laptop (WAMP setup) and it installed just fine, so I don't think there's any file corruption. I also tried fresh install, and I also downloaded the new RC1, same problem.

Does anyone have any ideas?

I hope I can work this out as I really like it, after spending 2 months trying most everything else ...

Thanks, Adrian

UPDATE#1: I edited the install.php file around line 143, this allowed me to finish the install:

// Check cookie
if (


{
$this->Template->login = true;
echo "cookie issue";
//$this->outputAndExit(); /commenting this line did the trick/
}

so, I guess it's a cookie related problem on iis. Changing browsers didn't help ...

After the install was finished, the front end worked, but I could not login to backend with default k.jones login, it did a similar thing to the earlier problem, just went blank, no message, so I presume it's another cookie problem. Next, I will experiment with the backend login script ...

😢
So no joy there, I can't get any further, and I still can't login to the back end ... hope someone out there has some ideas)

I found one other forum user with exactly the same (unresolved) problem:

http://www.contao.org/forum/message/2522.html

This doesn't necessarily look like an IIS problem, I think they use Apache. I am using a sub-folder in my root for the install, and I wonder if that may be part of the problem. I checked the localconfig.php and the path seems correct ...

UPDATE #2:

So I tracked the script execution through to a file called backenduser.php and discovered an authentication routine that is failing, passing me back to the index.php. Here's the line that fails in authenticate():

if (parent::authenticate() || $this->Environment->script == 'typolight/index.php')

Keep in mind, it doesn't give me an 'invalid login' error, it just reloads a blank index.php as if I had just started. When it reloads, it adds a referrer to the url like this:

index.php?referer=dHlwb2xpZ2h0L21haW4ucGhw

I also deleted the entire install/db, started fresh, but this time didn't import demo site - same problem ...

--- Originally created by aerohost on March 19th, 2009, at 07:40pm (ID 607)

@ghost ghost assigned leofeyer Nov 29, 2011
@leofeyer
Copy link
Member

#18

--- Originally created on March 19th, 2009, at 07:50pm

@leofeyer
Copy link
Member

--- Originally closed on March 19th, 2009, at 07:50pm

@frostyandy2k
Copy link

I had the exact same issue after moving the installation to another directory.
I had to change the hard-coded path in
website/system/config/localconfig.php:16:$GLOBALS['TL_CONFIG']['websitePath'] = '';
After that it worked.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants