Pages (2): 1 2   
Member
Member
kp   27-09-2010, 15:17
#1

Hi there,

I want to upgrade an installation from 1.2.5. What do you recommend - a staged upgrade, or do you think going straight to 1.3.1.2 would be safe? If a staged upgrade is recommended, which specific versions do you suggest for each step?

I do have a test-server installation on which I can try out the upgrade before proceeding to the live server.

ZenPhoto is currently running perfectly, under this setup.

* Zenphoto version 1.2.5 [4022] (Official Build)
* Current gallery theme: grostern_custom
* PHP version: 4.4.8
* Graphics support: PHP GD library bundled (2.0.28 compatible)
* PHP memory limit: (Note: Your server might allocate less!)
* MySQL version: 4.1.22
* Database name: [omitted]
* Table prefix: zphoto_
* Spam filter: simple
* Captcha generator: zenphoto

Active plugins:

* dynamic-locale v1.0.0
* filter-zenphoto_seo v1.0.0
* image_album_statistics v1.0.7.2

Active filters:

* none

Thanks for your help.

Member
Member
kagutsuchi   27-09-2010, 16:00
#2

There have been a few threads about upgrading from quite out-of-date versions, and it seems that the concensus is to do a staged upgrade. As to which versions you have to use, I have no idea, but doing each one would minimize the risk that something would go wrong.

Administrator
Administrator
acrylian   27-09-2010, 16:15
#3

In any case we would recommend upgrading or switching your server to PHP 5.2+ and MySQL 5, although we are not striclty PHP 5/MySQL 5 yet we only test on that.

Member
Member
kp   27-09-2010, 16:59
#4

Thanks, both.

We're stuck with the existing PHP & MySQL versions for the time being.

In terms of the staged upgrade, I'd still be grateful if anyone is able recommend specifically which versions to try. Thanks.

Member
Member
kp   27-09-2010, 17:00
#5

Or... would you recommend just sticking to the existing version (1.2.5) since it works fine?

Administrator
Administrator
acrylian   27-09-2010, 17:07
#6

Well, we did fix and improve a lot of things including security related stuff so we generaly recommend to upgrade (it may work well with php/mysql 4). I would say upgrade each release individually until 1.3. Then an update to the recent 1.3.1.2 will be easier (Note I have not tried this so I am just guessing.)

However if you don't need newer features and it works well for you, you probably don't need now. I suggest to review our changelog maybe.

But note that we bascially are only able to support the current release and that upgrade may be more troublesome the longer you wait.

Member
Member
kp   27-09-2010, 17:11
#7

Thanks a lot, acrylian, appreciate the suggestions.

Here's another crazy idea. What if I tried a fresh install of the latest version. If it works, could I import the old data?

Administrator
Administrator
acrylian   27-09-2010, 17:19
#8

Depends what data you mean. You can copy the content of your root albums folder over but you will loose all data entered to the database like titles, descriptions, tags and such. Except you have stored such data in the EXIF meta data of your images itself.

You will not be able to just export your database and reimport it because of changes. If you need that a step by step update is your best change. I would actually try that not on the live install if that has important data without a database backup so you could revert to 1.2.5 if it fails!

Current releases have a database backup utility to make these things easier (since 1.3 I think but don't remember exactly).

Member
Member
kp   27-09-2010, 17:25
#9

Ah - by "data" I did mean the old database of images, ZenPhoto descriptions, categories, etc. (We're not using EXIF meta data.)

Thanks for the clarifications.

Member
Member
sbillard   27-09-2010, 19:20
#10

Zenphoto v1.2.5 does have the backup facility. I would suggest you make a backup using that facility. Import it and your album/image files to a fresh location/install of v1.3.1.2. Do this before your run setup. After setup completes you will be offtered the option of restoring from the backup.

I suspect you will get some reported errors from the restore as probably some database tables/fields have changed. But there is a good chance the important data will be migrated.

Member
Member
kp   27-09-2010, 19:52
#11

Thanks a lot, sbillard. I will try this - if it works, it might save a lot of time vs. doing the step-by-step upgrade. I'll report back in case it helps others.

Member
Member
kp   29-09-2010, 19:48
#12

Tried to do a fresh install of 1.3.1.2. Unfortunately I can't even get past the setup screen - I get these warnings, with no option to proceed past it. Is there any way around this?

PHP version 4.4.8
Warning!
Version 5.2 or greater is strongly recommended.

PHP magic_quotes_gpc [is enabled]
Warning!
You should consider disabling magic_quotes_gpc. For more information See What is magic_quotes_gpc and why should it be disabled? in the Zenphoto troubleshooting guide.

PHP gettext() support [is not present]
Warning!
Localization of Zenphoto currently requires native PHP gettext() support
`

I also get various PHP warnings for fopen, fwrite & fclose.

Member
Member
sbillard   29-09-2010, 20:09
#13

The above warnings (except for the one on the PHP level) are not likely to be the problem. It will be the PHP warnings we will need to know about.

But maybe the best would be to upgrade your PHP to version 5. We have not tested at all on PHP4 and altough we will not deliberately do something that requires PHP4 since we do not test, such dependencies may sneak in.

In particular, the Imagick graphics library seems to have problems with PHP4 even though it should not be loading with that version.

Member
Member
kp   29-09-2010, 20:28
#14

Hiya, thanks so much for the quick reply. Unfortunately upgrading to PHP5 isn't an option right now, but it will be down the road when we switch servers. Here's an example of the PHP errors:

Warning: copy(/home/xxxxxx/portfolio2/.htaccess) [function.copy]: failed to open stream: Permission denied in /home/xxxxxx/portfolio2/zp-core/setup.php on line 263
xxxxxx
Warning: fopen(/home/xxxxxx/portfolio2/zp-data/setup_log.txt) [function.fopen]: failed to open stream: Permission denied in /home/xxxxxx/portfolio2/zp-core/setup.php on line 54

Warning: fwrite(): supplied argument is not a valid stream resource in /home/xxxxxx/portfolio2/zp-core/setup.php on line 55

Warning: fclose(): supplied argument is not a valid stream resource in /home/xxxxxx/portfolio2/zp-core/setup.php on line 56

Warning: fopen(/home/xxxxxx/portfolio2/zp-data/setup_log.txt) [function.fopen]: failed to open stream: Permission denied in /home/xxxxxx/portfolio2/zp-core/setup.php on line 54

Warning: fwrite(): supplied argument is not a valid stream resource in /home/xxxxxx/portfolio2/zp-core/setup.php on line 55

Warning: fclose(): supplied argument is not a valid stream resource in /home/xxxxxx/portfolio2/zp-core/setup.php on line 56

Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxxx/portfolio2/zp-core/setup.php:263) in /home/xxxxxx/portfolio2/zp-core/setup.php on line 294
Zenphoto Setup

Member
Member
sbillard   29-09-2010, 22:52
#15

These are basically file permissions errors. Setup is trying to do things like create the .htaccess file and open/write to the setup log. Check the permissions on the zp-core folder and the zp-data folder.

Member
Member
kp   01-10-2010, 14:27
#16

Thanks - I'll check permissions and try again.

Member
Member
kp   01-10-2010, 14:57
#17

OK, I've gotten rid of the PHP errors, but I still don't see a way to get past the other warnings - what am I missing? There's no submit button or setup link to continue the process. I've tried both Firefox & Safari.

This is all that's on the page now:

Welcome to Zenphoto! This page will set up Zenphoto on your web server.
Systems Check:

* PHP version 4.4.8
  Warning!
  Version 5.2 or greater is strongly recommended.
* PHP Safe Mode
* PHP magic_quotes_gpc [is enabled]
  Warning!
  You should consider disabling magic_quotes_gpc. For more information See What is magic_quotes_gpc and why should it be disabled? in the Zenphoto troubleshooting guide.
* PHP gettext() support [is not present]
  Warning!
  Localization of Zenphoto currently requires native PHP gettext() support
Member
Member
kp   01-10-2010, 15:20
#18

Hey there, here's a possible clue for this mystery - when I view the source for the setup page, it looks like the page hasn't completely been displayed. It ends here:

`

Warning!

Localization of Zenphoto currently requires native PHP gettext()support

`

... with no closing body or html tags. Any ideas?

Administrator
Administrator
acrylian   01-10-2010, 15:37
#19

It might be releated to a bug with the Imagick libary function which require PHP 5 and cause this even if you don't have it all. You really should try to get your host to upgrade to PHP 5...

The nightly has it corrected I think but we are doing some interal restructuring right now that might still have some minor issues.

Administrator
Administrator
acrylian   01-10-2010, 15:39
#20

It might be releated to a bug with the Imagick libary function which require PHP 5 and cause this even if you don't have it all. You really should try to get your host to upgrade to PHP 5...

The nightly has it corrected I think but we are doing some interal restructuring right now that might still have some minor issues.

Pages (2): 1 2   
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.