Best way to update/upgrade

Please post all install related problems here. Visit this forum first for troubleshooting.
Pieter
Posts: 54
Joined: Sat 20. Mar 2004, 18:08

Best way to update/upgrade

Post by Pieter »

Well, actually the title says it all.
When I update my current version (22-06-2004), how should I proceed? Should I just upload all files and thus overwrite old versions by new ones or is there a better way?
Also, I noticed that in this case there are no notable changes in the database, but what if there are? How will such changes affect the contents of the database?
Thanks in advance for all the advice.
Pappnase

Post by Pappnase »

hello

backup all files and database.

then upload all edit the conf.inc.php nad run the upgrade.php.
rescamilla
Posts: 69
Joined: Sun 25. Jul 2004, 01:53

Post by rescamilla »

Wow...ok, after much trial and error I was able to upgrade my installation to the new August 2004 release and was able to preserve my site layout and content. Thank God for site backups!! If my host had no backup system I would have been screwed casue my first upgrade attempt was a complete flop.

So far the only thing I noticed that does NOT work is the root structure, I think it was formerly called "website start" or something like that. When I try to eidt that structure, the data does not save and I get no errors either. I am trying to name it "Home".

Anybody know what is wrong? I did run the upgrade.php to modify my database.

Thanks!
-Ray

P.s. Big thanks and props to Oliver!!!!
rescamilla
Posts: 69
Joined: Sun 25. Jul 2004, 01:53

Post by rescamilla »

After a little more investigating I have found that the data for this structure is succesfully being saved to the file conf.indexpage.inc.php. Why is it not being read by the backend and frontend?

I suspect that I corrupted this upgrade somehow, but everything else seems to be working ok.

-Ray
Last edited by rescamilla on Wed 1. Sep 2004, 19:27, edited 1 time in total.
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

rescamilla wrote:I suspect that I corrupted this upgrade somehow, but everything else seems to be working ok.

-Ray
Does your database have the field "acat_name" as type "text" in table "phpwcms_articlecat" ?

From "phpwcms_update_older.sql":

Code: Select all

ALTER TABLE `phpwcms_articlecat` CHANGE `acat_name` `acat_name` TEXT NOT NULL;
rescamilla
Posts: 69
Joined: Sun 25. Jul 2004, 01:53

Post by rescamilla »

Dexxus,
Yes, my database has that entry and configuration.

Every entry from the Site Structure is saved into the database EXCEPT the root name, from what I have gathered, the root structure name and details are saved into conf.indexpage.inc.php.

After the upgrade from 2004-06-08 to 2004-08-27, the root structure name is blank (it used to be called website start). I am trying to name it to "Home". The information is saved into the conf.indexpage.inc.php file, but is not read into the backend Site Structure.

The reason why I am trying to do this is because after installing the upgrade I have lost the "Home" link in my breadcrumb trail. I am assuming that the root structure needs to be named Home if I want this back.

-Ray
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

Did you run all the .SQL upgrades?
phpwcms_1.1-RC4_13-08-004.sql
phpwcms_1.1-RC4_25-08-004.sql

You say the "conf.indexpage.inc.php" looks like this???

Code: Select all

<?php

$indexpage['acat_name']		= 'Home';
$indexpage['acat_info']		= '';
$indexpage['acat_alias']	= 'index';
$indexpage['acat_aktiv']	= 1;
$indexpage['acat_public']	= 1;
$indexpage['acat_template']	= 0;
$indexpage['acat_hidden']	= 0;
$indexpage['acat_ssl']		= 0;
$indexpage['acat_regonly']	= 0;
$indexpage['acat_topcount']	= 5;
$indexpage['acat_redirect']	= '';
$indexpage['acat_order']	= 1;


?>
rescamilla
Posts: 69
Joined: Sun 25. Jul 2004, 01:53

Post by rescamilla »

Here is my conf.indexpage.inc.php file:

Code: Select all

<?php
$indexpage['acat_name']		= 'Home';
$indexpage['acat_info']		= '';
$indexpage['acat_alias']	= '';
$indexpage['acat_aktiv']	= 1;
$indexpage['acat_public']	= 1;
$indexpage['acat_template']	= 1;
$indexpage['acat_hidden']	= 0;
$indexpage['acat_ssl']		= 0;
$indexpage['acat_regonly']	= 0;
$indexpage['acat_topcount']	= 0;
$indexpage['acat_redirect']	= '';
$indexpage['acat_order']	= 0;
?>
Yes, after overwriting my old installation with the new release files I ran upgrade.php and applied these two sql changes:
phpwcms_1.1-RC4_13-08-004.sql
phpwcms_1.1-RC4_25-08-004.sql
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

That may be a result of changes you tried -or- there ~was~ an FTP upload problem. Use the contents I posted (the default from the archive). There were also a few additions to "config.inc.php" but they are not related to this.
rescamilla
Posts: 69
Joined: Sun 25. Jul 2004, 01:53

Post by rescamilla »

Tried it no go.
This is weird. Let me ask you this, after the upgrade and from the backend are you able to rename the root structure?
-Ray
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

Yes...

Admin->Site Structure->Edit Structure Level->category title:->Send Category Data

You DO have status: visible and public ???
Last edited by DeXXus on Wed 1. Sep 2004, 18:57, edited 1 time in total.
rescamilla
Posts: 69
Joined: Sun 25. Jul 2004, 01:53

Post by rescamilla »

Well....I am lost. :cry:
but will kepp plugging away at it.
-Ray
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

Admin->Site Structure->Edit Structure Level->category title:->Send Category Data

You ~DO~ have status: visible and public, right ???

(reposted... In case I -edited- after you posted)
rescamilla
Posts: 69
Joined: Sun 25. Jul 2004, 01:53

Post by rescamilla »

I just did another server overwrite with the new installation files and wallah, it is working.
I think the issue was a bad FTP write of SOME file, like you had mentioned earlier.
I got timeouts with CuteFTP and Filezilla when trying to upgrade yesterday, so this probably contributed.
Thanks for the effort dexxus.
-Ray
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

:D
Post Reply