Page 1 of 1

how to upgrade

Posted: Tue Nov 15, 2005 9:08 am
by periferral
Hi I am running serendipity 0.8.3
can someone tell me how to upgrade to 0.9
thanks

Posted: Tue Nov 15, 2005 9:18 am
by yngexec
You should just be able to paste the new files over the existing ones.

see http://www.s9y.org/11.html for additional info first

can't upgrade

Posted: Fri Nov 18, 2005 9:57 am
by ed
i tried to move up from 0.8beta6, copied the new files over the old ones, and my blog broke, but i can log into the admin page. the faq states "then go to your Serendipity Admin Panel, and you will see the Serendipity upgrader"- where exactly do i see the upgrader? i see nothing like it anywhere on the admin page...

Re: can't upgrade

Posted: Fri Nov 18, 2005 12:14 pm
by garvinhicking
If you do not see the upgrader when logging in to your admin, you copied the files wrong.

What exactly did you do. Try to reproduce the steps in our FAQ one by one. My bet is that you didn't preserve your serendipity_config_local.inc.php file as mentioned in the FAQ.

Regards,
Garvin

Posted: Sun Nov 20, 2005 12:36 am
by Guest
nope, i still have the serendipity_config_local.inc.php.

i simply extracted the files onto my local computer, then copied it onto the server, having it overwrite all files that were the same. then i went to the admin panel. that's pretty much all the instructions in the FAQ, unless i'm missing something...

Posted: Mon Nov 21, 2005 7:48 am
by Guest
finally got it working... after copying the files over directory by directory...

Same problem

Posted: Wed Jan 25, 2006 2:08 pm
by hbrecht
Hi,

I have nearly the same problem - the upgrader does not start.
I dont have overwritten the serendipity_config_local.inc.php (that has the permissions 777 btw), I just made a tar -xz serendipity....gz.
I have updated from many versions to higher ones during the time and the updater never appeared - I always made the things by hand.
But now the faq is much better (thanks a lot for that and for the whole, very nice software) and i thought now I am sure thats not my fault at all :-)
So please have you any suggestions?

Thanks in advance,
Valeri

Re: Same problem

Posted: Wed Jan 25, 2006 2:13 pm
by garvinhicking
So you extracted all the files to your serendipity installation, overwriting existing files, right?

Please look at your serendipity_config_local.inc.php and see what it says for "versionInstalled". Then open the file "serendipity_config.inc.php" and check which version is says.

The first version from your local file should be something like '0.9.1'. The second version in the serendipity file should be '1.0-beta' or something like that.

Only if the versions differ, the serendipity upgrader will take action.

Regards,
Garvin

Re: Same problem

Posted: Wed Jan 25, 2006 2:30 pm
by hbrecht
garvinhicking wrote:So you extracted all the files to your serendipity installation, overwriting existing files, right?
Yes, thats true. After that I changed the owner to www-data recursively (this is my webserver) for getting the webserver the rights to write.
garvinhicking wrote: Please look at your serendipity_config_local.inc.php and see what it says for "versionInstalled". Then open the file "serendipity_config.inc.php" and check which version is says.

The first version from your local file should be something like '0.9.1'. The second version in the serendipity file should be '1.0-beta' or something like that.

Only if the versions differ, the serendipity upgrader will take action.
$serendipity['versionInstalled'] = '0.9.1';
$serendipity['version'] = '1.0-beta1';

Exactly as it should be :-/

Cheers,
Valeri

Re: Same problem

Posted: Wed Jan 25, 2006 2:38 pm
by garvinhicking
Valeri,

which PHP version do you have installed? I believe there was a version of PHP with a bug in the version_compare() functionality that we use to compare version numbers.

Regards,
Garvin

Re: Same problem

Posted: Wed Jan 25, 2006 2:44 pm
by hbrecht
Hi Garvin,
garvinhicking wrote: which PHP version do you have installed? I believe there was a version of PHP with a bug in the version_compare() functionality that we use to compare version numbers.
Thats 4.1.2, pretty old one... Do I have to fix a line of code in that case?

Cheers,
Valeri

Re: Same problem

Posted: Wed Jan 25, 2006 2:55 pm
by garvinhicking
Okay, 4.1.2 is really pretty outdated, and I believe it has that error. Serendipity requires PHP 4.3.0 for several other functions, so you should upgrade your PHP.

4.1.2 has a LOT of security issues you don't want to have on any server. Fixing the version compare logic can be done in your serendipity_config.inc.php file. But I don't have the time do write a manual version comparing function (because relying on version_comapre() with recent php versions should be okay), so you'll need to either upgrade or create a php-4.1.2-working check yourself ;-)

Best regards,
Garvin

Re: Same problem

Posted: Wed Jan 25, 2006 4:26 pm
by Guest
garvinhicking wrote:Fixing the version compare logic can be done in your serendipity_config.inc.php file. But I don't have the time do write a manual version comparing function (because relying on version_comapre() with recent php versions should be okay), so you'll need to either upgrade or create a php-4.1.2-working check yourself ;-)
Ok, til I got the update I just defined IS_up2date to false and it worked properly.

Thanks a lot,
Valeri

Posted: Fri Jan 26, 2007 10:30 pm
by tomtom76
Ok, til I got the update I just defined IS_up2date to false and it worked properly.
hi! i have the same problem... how did you define IS_up2date to false?

thank you
tom

Posted: Fri Jan 26, 2007 10:50 pm
by tomtom76
found it :)

upgrade done, thank you!