upgrade keeps coming back

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
jans
Forum Members
Forum Members
Posts: 87
Joined: Thu Mar 16, 2006 11:28 pm

upgrade keeps coming back

Post by jans »

I have upgraded from 1.0.3 to 1.0.4 and now every time I want to enter the admin section cms wants to do the update again, then blabbers something about frame 25 that needs to be a 27 version.
The upgrade seems to have finished okay and if I hit the back button I get in the admin section and all look okay.

someone please ?
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: upgrade keeps coming back

Post by Dee »

Make sure all files in install/upgrades/ from the 1.0.4 package are uploaded correctly (maybe delete and re-upload?).
jans wrote: The upgrade seems to have finished okay
Could you paste the output of the upgrade process from schema version 25 to 27?
jans
Forum Members
Forum Members
Posts: 87
Joined: Thu Mar 16, 2006 11:28 pm

Re: upgrade keeps coming back

Post by jans »

Upgrading config.php...[done]

Cleaning cache dirs...[done]

Please review config.php, modify any new settings as necessary and then reset it's permissions back to a locked state.

CMS is up to date. Please click here to go to your CMS site or you can go to the Admin Panel.



This is the output I get.
jans
Forum Members
Forum Members
Posts: 87
Joined: Thu Mar 16, 2006 11:28 pm

Re: upgrade keeps coming back

Post by jans »

I removed the install map as per say, then if I logoff and logon again I get an error saying install map is not there (just renamed it so no problem) then have to rename it and all begins from the beginning.

As far as I can see the login.php does a check and then throws me back into the upgade routine somehow.

Should I try to replace login.php ?

BTW I re-copied ande then reinstalled as you suggested.
Last edited by jans on Wed Feb 28, 2007 3:03 pm, edited 1 time in total.
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: upgrade keeps coming back

Post by Dee »

Very strange...
login.php (and upgrade.php) read the current database scheme version from the database (table cms_version), in your case: 25.
This is compared to the version number in version.php (in 1.0.4: schema version 27).

Upgrade.php then runs the needed upgrade files from install/upgrades/:
upgrade.25.to.26.php and upgrade.26.to.27.php - both of these (in 1.0.4) update the schema version in the database:

Code: Select all

echo '<p>Updating schema version... ';                                                                                                                       
$query = 'UPDATE '.cms_db_prefix().'version SET version = 26'; $db->Execute($query);
echo '[done]</p>'; 
and

Code: Select all

echo '<p>Updating schema version... ';
$query = 'UPDATE '.cms_db_prefix().'version SET version = 27'; $db->Execute($query);
echo '[done]</p>'; 
So you should also get a message:
Updating schema version... [done]

You did (delete and) "newly" re-upload the files in install/upgrades/ (from the 1.0.4 package)? (not only renamed the install folder later renamed it back?)

Regards,
D
jans
Forum Members
Forum Members
Posts: 87
Joined: Thu Mar 16, 2006 11:28 pm

Re: upgrade keeps coming back

Post by jans »

First I renamed the install map from install-not to install

since all is on a server in my own lan I copied all files to the apropriate location and ran the update, the update completed and gave me the message that it was completed and updated.

I then started and logged into the admn section where I got the "install folder still exists message"

I then renamed the install folder to install-old2  and logged off

Again I logged in and the install wants to run again.

Strange or not, it really does.



PS.  Just checked the Dbase but the version number still shows 25 and is not updated, could there be a problem with the update procedure and could it be that the version number is not updated as needed ?


edited; must be 25 instead of 27 , my bad
Last edited by jans on Wed Feb 28, 2007 9:31 pm, edited 1 time in total.
jans
Forum Members
Forum Members
Posts: 87
Joined: Thu Mar 16, 2006 11:28 pm

Re: upgrade keeps coming back

Post by jans »

For now I will change it by hand to stop it from keeping upgrading

Changed the version number by hand from 25 into 27, now upgrade does not start again.
Last edited by jans on Wed Feb 28, 2007 10:03 pm, edited 1 time in total.
Locked

Return to “[locked] Installation, Setup and Upgrade”