Page 1 of 1

Upgrade 7.1 to 8

Posted: Sat Apr 23, 2005 3:36 pm
by Terry
Ok, I've been running 7.1 since it came out and have been quite happy with the way things work / run / etc. That is, until I attempted an upgrade to 8.

Before I start I'm going to state that it is NOT a problem with a bad tarball, as I have downloaded the tarball from several locations and get the same results. This is NOT a problem with permissions as I have ensured everything is 777 (I've been a good little boy and read as mush as possible on the forums).

After unpacking and cp -a * ~/public/ (after a backup, of course), I make my way to http://www.terrysoucy.ca, and I get a similar message that others are receiving (query failed, blah blah blah Unknown column 'a.realname' in 'field list'). No auto-update happening. I changed the version number in serendipity_config_local.php.inc, and nothing new happened. I went right to serendipity_admin.php, and nothing out of the ordinary happened, and there was no reference to upgrading. There is constant reference in the forums to read the documentation included with the distribution, as well as on the site, yet I find no real content about upgrading from 7 to 8. The sql directory holds several sql entried that I would feel VERY comfortable in implimenting by hand, if there was any reference to version 7.1 in any of the files, but there is not (a lot of 6.x to 7.0 and 8 alpha and beta).

Am I missing something here? Am I not seeing the proper upgrade docs? Am I still dl'ing the wrong tarball? Is the world going to end a week from Tuesday?

Re: Upgrade 7.1 to 8

Posted: Mon Apr 25, 2005 11:06 am
by garvinhicking
First off, yes - world's coming to an end this week.

Then: The most important issue you're facing is that your automatic upgrader does not kick in. Are you absolutely positive that serendipity_config_local.inc.php has $serendipity['versionInstalled'] set to '0.7.1' and the file is read+writable?

The next thing, if your sql directory contains all those db_update_0.8* files, then those really need to get executed.

I'd really love to help you out with the problem. If the above things are absoultely sure to be that way, I can offer you to have a look at your isntall if you provide me with temporary FTP access to your site? If you want to do that, just contact me privately.

Regards,
Garvin

Posted: Mon Apr 25, 2005 4:32 pm
by Guest
In order for me to get Serendipity to upgrade from 0.7.1 to 0.8, I needed to make the following temporary change in serendipity_config.inc.php:

Code: Select all

define ('IS_up2date', ...);
to

Code: Select all

define ('IS_up2date', false);
Once I did that, the update went smooth as silk... of course, I had to change it back again when I was done (Serendipity kept on thinking that I still needed to upgrade :oops: when I didn't change it back).

Could there be a problem with the version_compare function? I didn't check it out at all but it seems like a reasonable conclusion...

If you want any more info about my setup to help debug the issue, feel free to e-mail me at ken.wong@microtronix.com

Re: Upgrade 7.1 to 8 UPDATE

Posted: Mon Apr 25, 2005 8:52 pm
by Terry
Ok, here's how things went.

I made sure that permissions were not my trouble for the upgrade ...

chmod a+rw -R *

... then I copied the files into place, and reset the permissions again ...

cp -a temp/serendipity/* .
chmod a+rw -R *

and finally checked the version listed in serendipity_config_local.inc.php to verify that it was listed as 0.7.1, which it was.

hit the frontpage of my blog and received the same error message I was getting before. Then I changed the line mentioned in the posting above, and reloaded the front page, and TA-DA! There was the auto-upgrade.

From there, things went downhill fast, but that between me and my server admin. Had to comment out the DirectoryIndex directive in the .htaccess file, otherwise I kept getting an internal server error.

I also had a problem with the php_uname function (as I have php 4.1.2), as the upgrade information complained about an improper number of arguments for the function (which is a known bug in 4.1.2, so I had to change php_uname to @php_uname.

Anyhoo, blog is back up and rocking and rolling. Now I just need to fogure out smarty templates and the new plugin schemes.

Thanks

Terry
http://www.terrysoucy.ca
http://www.42computers.ca

Posted: Tue Apr 26, 2005 1:01 am
by Sven Hartge
Anonymous wrote:In order for me to get Serendipity to upgrade from 0.7.1 to 0.8, I needed to make the following temporary change in serendipity_config.inc.php:

Code: Select all

define ('IS_up2date', ...);
to

Code: Select all

define ('IS_up2date', false);
It seems, S9Y, or at least the upgrader, does not work with PHP 4.1. I hit the same problem (read about it on http://sven.formvision.de/blog/archives ... nicht.html (sorry, it's in German)), I had to upgrade my PHP to 4.3 to make it work. (I took the easy way and upgraded my whole system from Debian Woody to Debian Sarge).

So please check your PHP version.

Greetings,
Sven[/url][/b]

Posted: Tue Apr 26, 2005 12:02 pm
by garvinhicking
Sven,

thanks a lot for this pointer. I just added a NEWS item and updated our docs/INSTALL file for upcoming release to say that PHP 4.3 is required.

Regards,
Garvin

Posted: Tue Apr 26, 2005 1:50 pm
by OweH
garvinhicking wrote: thanks a lot for this pointer. I just added a NEWS item and updated our docs/INSTALL file for upcoming release to say that PHP 4.3 is required.
How about making a Sticky Announcement in this forum, so this information isn't lost?

Posted: Tue Apr 26, 2005 3:49 pm
by garvinhicking
Well, I for one noticed that people don't read stickies anyways, so it wouldn't matter - doing a search for "realname serendipity does not upgrade" or so should hopefully suffice.

Regards,
Garvin