My gallery has been running flawlessly for several years, now all of a sudden it stopped. I don't remember the error, but I decided to install the update. Now I am stuck on the setup page with this error:
Welcome to Zenphoto! This page will set up Zenphoto 1.4.14 on your web server.
Systems Check:
Installing Zenphoto v1.4.13
zp-data security
PHP version 5.6.34
PHP Sessions.
PHP Register Globals
PHP Safe Mode
PHP magic_quotes_gpc
PHP magic_quotes_runtime
PHP magic_quotes_sybase
PHP display_errors
PHP gettext() support [is not present]
Warning!
Localization of Zenphoto requires native PHP gettext() support
PHP flock support
Testing mb_strings.
Any help is appreciated.
What PHP version does your server have? Errors in the server PHP error log or elsewhere?
If the server meanwhile upgraded to PHP 7 or something, 1.4.13 may cause some trouble as it is not fully compatible. You should be using 1.4.14 in any case.
The gettext warning is not important unless you need to use other languages than the native English.
Yes, it is v1,4,14 (I corrected it in the next post. PHP v5.6.34.
Right, I don't really care about the gettext. What I do care about is I can't get past this screen, though. Makes it unavailable to clients who want to see my work portfolio.
Not sure where to find the PHP server log, but will poke around.
Thanks,
Joe
So I found these from the last time I tried to visit my gallery.:
[10-Apr-2018 02:58:20 UTC] PHP Warning: require_once(/~/zp-core/version.php): failed to open stream: No such file or directory in /~/zp-core/global-definitions.php on line 6
[10-Apr-2018 02:58:20 UTC] PHP Fatal error: require_once(): Failed opening required '/~/zp-core/version.php' (include_path='.:/opt/cpanel/ea-php56/root/usr/share/pear') in /~/zp-core/global-definitions.php on line 6
"~" = directory path editing for my own security, but is all the same info.
Does this help narrow down the problem?
Thanks,
Joe
Did you check if that file actually exists? If it does and you still get the error you might need to check your file/folder permissions. Info about the recommended ones (differs also from server to server) you find here: http://www.zenphoto.org/news/permissions-for-zenphoto-files-and-folders/
That's now permissions but robots.txt here should not harm setup to be run. Maybe it is still all permissions in the end. On some servers you need for some reason less than optimal.
Or the file owner is for some reason not the owner that runs PHP processes? That can lead to "funny" results…
Well, that was a fail and now this is added to the screen:
zp-data security [is compromised]
Warning!
Zenphoto suggests you make the sensitive files in the zp-data folder accessable by owner only (permissions = 0600). The file permissions for setup.log are 0644 which may allow unauthorized access.
That is not necessarily an issue or "showstopper" for running setup, just a warning. This is a stricter permission that not even works on every host (as mentioned all are different).
Sorry, unless you can provide some more errors from the PHP error log, I sadly will not be able to help. Zenphoto runs on fairly standard configured (shared) web hosts without any problem and I installed it on quite a few.
Maybe this is sadly the point to ask your host for help?
Great suggestion! While rooting around I noticed my host promotes ZenPhoto as one of the recommended image gallery solutions, so I figure, sure why not?
The problem was an old suPHP line on my root htaccess file. They fixed that and FINALLY all is good. Apparently that was what was causing the PHP gettext warning.
Lunarpages rocks. Just sayin'.
Joe
I just wish I was smarter at these things and more interested in backend stuff like when I was younger. These days I just don't have it in me anymore.
Still one of my favorite internet products. That I went three years without a problem, without even logging in (I also had to reset the admin login, as I couldn't even remember or find my login credentials!) speaks volumes.
Joe