Successful admin login redirects to install/upgrade.php

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
chilsta
Forum Members
Forum Members
Posts: 52
Joined: Thu Oct 20, 2005 8:22 pm

Successful admin login redirects to install/upgrade.php

Post 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*
Last edited by chilsta on Fri Jun 09, 2006 11:21 am, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

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

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
stopsatgreen
Power Poster
Power Poster
Posts: 322
Joined: Sat Feb 04, 2006 1:24 am

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

Post by stopsatgreen »

I also have this problem. Is there a way to fix it?
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

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

Post 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)
User avatar
chilsta
Forum Members
Forum Members
Posts: 52
Joined: Thu Oct 20, 2005 8:22 pm

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

Post 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*
Post Reply

Return to “CMSMS Core”