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.
Comments
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.
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.
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?
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).
Thanks for the clarifications.
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.
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.
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.
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
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
`
Warning!
Localization of Zenphoto currently requires native PHP gettext()support`
... with no closing body or html tags. Any ideas?
The nightly has it corrected I think but we are doing some interal restructuring right now that might still have some minor issues.
The nightly has it corrected I think but we are doing some interal restructuring right now that might still have some minor issues.
Thanks anyway...
> You really should try to get your host to upgrade to PHP 5...
I'm on a dedicated server with a bunch of legacy custom-programmed software, so unfortunately we are stuck with PHP4 for the time being. Hope to move servers in the next 6 months.
If the page does not fully load you probably have some error in your log.
> If the page does not fully load you probably have some error in your log.
Thanks, I'll check the log.
<h1>Warning!</h1>
Localization of Zenphoto currently requires native PHP `gettext()` support </div>
I guess I would check the configuration of Multibyte String Functions and iconv Functions. Also check your character set setting.
charset: UTF-8 Unicode (utf8)
In terms of iconv - not sure how to check our specific configuration, but I did find this: "Since PHP 5.0.0, this extension [iconv] comes with various utility functions that help you to write multilingual scripts."
At this point, I'm going to assume that ZenPhoto in its current version just is no longer compatible with PHP4.
Thanks again for all your help, it's been appreciated.
Anyway, since things are stopping, one of two things is happening. Either there is a PHP error, in which case it should be logged somewhere; or PHP itself is stopping because of some internal issue, probably configuration related.