Page 1 of 1

Successful admin login redirects to install/upgrade.php

Posted: Fri Jun 09, 2006 9:55 am
by chilsta
Very strange that this has just started happening.

I recently upgraded a site to 0.13 and all worked well for about a week, then when any admin user logs in, the browser is redirected to /install/upgrade.php
- the whole install dir was deleted after the upgrade so it's bringing up the 404 page.

Thing is that the user is being logged in correctly- if the user manually types the /admin URL into the browser after being redirected to the upgrade URL they can get in fine.

I've also tried clearing the cache.

Any ideas?

Thanks,

C*

Re: Successful admin login redirects to install/upgrade.php

Posted: Fri Jun 09, 2006 1:02 pm
by calguy1000
I think this redirect happens if the database schema is not up to date, it attempts to upgrade the schema... this was a feature put in recently.  However, it looks like the install directory got nuked before the schema got upgraded.

However, we'll see about putting some more checks in there for the next version.

Re: Successful admin login redirects to install/upgrade.php

Posted: Fri Jun 09, 2006 1:15 pm
by stopsatgreen
I also have this problem. Is there a way to fix it?

Re: Successful admin login redirects to install/upgrade.php

Posted: Fri Jun 09, 2006 7:34 pm
by tsw
You could reupload install directory and see if it tries to upgrade again, let it do its upgrade (please do a backup first just in case) then remove install dir (or chmod 000 it)

Re: Successful admin login redirects to install/upgrade.php

Posted: Mon Jun 12, 2006 9:08 am
by chilsta
Replaced /install dir and indeed, on logging into admin was redirected to upgrade.php again, which detected that the schema was out of date.

I let it upgrade, deleted /install and all appears to be working well now.

(Could've sworn I ran upgrade.php when upgrading to 0.13 and it went through the same process successfully... weird).

Thanks for your help.

C*