s9y v0.9-alpha4 installation upgrading

Discussion corner for Developers of Serendipity.
Post Reply
gwilsonmail
Regular
Posts: 146
Joined: Tue Jul 12, 2005 9:12 pm
Location: Ottawa, Canada
Contact:

s9y v0.9-alpha4 installation upgrading

Post by gwilsonmail »

When installing the latest v0.9 s9y I want to upgrade an installation.

I have a database setup and configured, but the installation doesn't give me the option to upgrade correctly.

Under General Settings the username, blog name, etc should all be optional. At the present time they overwrite an existing installation and rename the blog amongst other things.

Plugins - In addition to the above it would be helpful if during an upgrade the installation screen told you that the existing database references a list of plugins and it can't find the corresponding plugin directories. Sidebar plugin's are easy to spot - they throw errors on the blog's pages, but event plugins are more difficult to spot.

When a plugin's directory is missing the plugin admin screen doesn't show the name of the plugin, it shows the name of the previous plugin (the one above) and tells you there is an error. This makes the detective work even more difficult.
gw
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: s9y v0.9-alpha4 installation upgrading

Post by garvinhicking »

How did you perform the upgrade? It seems you did it wrong and you did not copy over the new files over your old directory, but instead try to install it again. That's wrong, please read our 0.7 -> 0.8 upgrade documentation, the same applies for 0.8 -> 0.9 upgrade.

Because of that, it can never happen that plugins vaporize, because you upgrade to the same directory where the plugins directory is (should) still be in place.

I'll try to make the plugin manager fail more gracely in the future, that's an issue I try to fix.

Regards
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
gwilsonmail
Regular
Posts: 146
Joined: Tue Jul 12, 2005 9:12 pm
Location: Ottawa, Canada
Contact:

Post by gwilsonmail »

There are no upgrade instructions here http://www.s9y.org/index.php?node=37 for 0.7 -> 0.8
gw
wesley
Regular
Posts: 197
Joined: Sun Jul 10, 2005 11:15 am
Contact:

Post by wesley »

In some OSes, overwriting a folder means the contents inside the folder
is replaced, rather than merged, and the previous structure simply
disappears.
I make s9y plugins, too.
My s9y blog depends on them. :)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

I'm sorry, this document did in fact not contain specific notes. But it contained the information to unpack the files over the old directory, preserving old files that are not new.

For detailed info, I meant this document: http://www.s9y.org/index.php?node=63 I've also linked this to the URL you mentioned, thanks for that! :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
gwilsonmail
Regular
Posts: 146
Joined: Tue Jul 12, 2005 9:12 pm
Location: Ottawa, Canada
Contact:

Post by gwilsonmail »

Download the latest distribution, unpack it to your existing folder,
[1] Do you mean untar the nightly build and put the directory s9y_200507271336 (say) into the root directory?

Then, I'm assuming, the admin script will pick up the blogs existing database and will move files from this archive to complete the upgrade.

[2] Can I repeat this process each time I download a new version from the nightly build/cvs?

[3] The new categories as blog update says
First off, the changes needs a fresh 0.9 SVN checkout
Do I have t ostart over or can i use an updated 0.9 to the latest build?

Sorry for all the questions, but each wrong step destroys a setup and/or the database and makes the whole process very frustrating.
gw
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

[1]

No. I mean put the contents of the s9y_ directory into your root directory. That means, place the unpacked index.php to overwrite your current index.php and so on.

No files will be moved by the s9y process; you just overwrite old files!

[2]

Yes, you can do that. However I suggest if you want to do it on a regular basis and you have shell access to use a SVN connection instead...

[3]

Yeah, you can use an upgraded 0.9 installation. I am sorry that my description with "fresh checkout" was unaccurate. I simply meant you need to have the latest version applied.

I think when you solve the issue of [1] all will be well. The important thing is just that the files will be put within the same directory, so that serendipity can open serendipity_config_local.inc.phjp (which is not overwritten), see that you are running serendipity 0.8 and then perform the DB updates.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply