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.
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.
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.
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).
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.
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.
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.
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
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
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?
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.
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.