contao/test — Issue #607: cannot login to back end, authentication fails
Author: importer
Created: 2011-11-29 06:31:23+00:00
State: open
Labels: backend, Defect, Duplicate

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->Input->cookie('TL_INSTALL_AUTH'))
{
$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 ...

:cry:
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)_