Member
Member
jfutral   2018-04-10, 03:38
#1

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.

Member
Member
jfutral   2018-04-10, 03:48
#2

Sorry this "Installing Zenphoto v1.4.13" should read this "Installing Zenphoto v1.4.14"

Joe

Administrator
Administrator
acrylian   2018-04-10, 09:21
#3

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.

Member
Member
jfutral   2018-04-10, 12:53
#4

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

Administrator
Administrator
acrylian   2018-04-10, 13:44
#5

You can take a look at zp-data as there are ZP's own logs. But the PHP server log is better. Ask your host about it. It might be only available on request (on my I have to enabled it first), via backend or even SSH… every host is different…

Member
Member
jfutral   2018-04-10, 14:57
#6

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

Administrator
Administrator
acrylian   2018-04-10, 14:59
#7

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/

Member
Member
jfutral   2018-04-10, 15:09
#8

Yes the file exists. I'll check permissions, then.

Thanks!
Joe

Member
Member
jfutral   2018-04-10, 15:28
#9

Grr. Permissions are as they should be.

Joe

Administrator
Administrator
acrylian   2018-04-10, 15:32
#10

Hm, then I sadly don't have any idea right now. Unless you find any other errors… Maybe as a currently helpless idea try a re-upload of zp-core, sometimes FTP upload messes up permissions/owners…

Member
Member
jfutral   2018-04-10, 15:33
#11

Will do.

Thanks,
Joe

Member
Member
jfutral   2018-04-10, 16:25
#12

So I found another Error log with this:

[Tue Apr 10 08:42:40.488047 2018] [core:error] [pid 54973] (13)Permission denied: [client 216.244.66.246:48240] AH00132: file permissions deny server access: /~/robots.txt

This one is logged many times.

Joe

Administrator
Administrator
acrylian   2018-04-10, 17:35
#13

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…

Member
Member
jfutral   2018-04-10, 17:50
#14

I'm going to try a clean install and see where that gets me. RTZ!

Joe

Member
Member
jfutral   2018-04-11, 03:21
#15

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.

Administrator
Administrator
acrylian   2018-04-11, 09:27
#16

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?

Member
Member
jfutral   2018-04-12, 14:33
#17

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

Administrator
Administrator
acrylian   2018-04-12, 16:14
#18

Great that you managed it! It really shouldn't have been that hard ;-) Thanks for the follow up!

Member
Member
jfutral   2018-04-12, 19:54
#19

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

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.