Notice: Undefined variable: conf in /www/xxxxxxxxxxxxxxxxxxxxxxx/functions-basic.php on line 1732
Notice: Trying to access array offset on value of type null in /www/xxxxxxxxxxxxxxxxxxxxxxxxx/functions-basic.php on line 1732
Notice: Undefined index: mysql_prefix in /www/xxxxxxxxxxxxxxxxxxxxxxx/zp-core/functions-basic.php on line 161
A configuration error occurred.
Please return later.
Good I can go back to an earlier PHP version...
But I never had to check anything?
Plus, it works with e.g. 7.2...
PHP 7.3 - one error disappeared:
Notice: Undefined variable: conf in /www/xxxxxxxxxxxxxxxxxxxxxx/zp-core/functions-basic.php on line 1732
Notice: Undefined index: mysql_prefix in /www/xxxxxxxxxxxxxxxxxxx/zp-core/functions-basic.php on line 161
A configuration error occurred.
Please return later.
There are no permissions as it's a non-CHMOD (chroot?) environment, everything has always worked flawlessly.
What do I do?
I cannot really answer. All upgrade I did so far worked without any issue including our site and demo. All on 7.4.14 currently.
On which PHP 7.4.x are you. I have a far memory that there was one version that had some bug (not that this might be related…).
Did you really upload all files correctly (sorry, standard question)? The line belongs to rewrite tokens and as far as I recall has not been changed since 1.5.7. And the config file was't changed either.
How does your config file look like (anonymize!). Did setup report anything (I assume not)
OK so let's be real:
Zenphoto doesn't work on PHP above 7.2. Because it's what works for people not for your specific environment.
Can you debug it?
Setup won't run.
Same errors for a complete installation while I had 7.2... after switching to 7.3/7.4 - those errors turned up.
Can't post anything more because of the idiotic character number limit.
Zenphoto doesn't work on PHP above 7.2.
To be exact: It does not on your server for some reason.
However I see the issue with the first notice about conf. There is a missing check. However that should not happen as that would mean the the config file template on your install is no correct (zp-core//zenphoto_cfg.txt). It should have $conf['special_pages'] somewhere and those are actually standard. Please take a look. If it does not, you didn't upload it correctly from the package.
For the mysql_prefix please review your config file in zp-data, there should an entry about it.
What's with this "upload correctly" stuff?
Some FTP clients don't correctly replace files within a folder if you upload the new zp-core.
Please, if I ask to check some files to find out why you get errors that shouldn't happen, please do so. Otherwise I can't help, especially since it works at least on several server environments for me. And it's always a code thing.
The first issue has a check in the support build now.
Everything works allright with 7.2.
I switched - started working immediately after the server changed the PHP version for my account.
The logics says: PHP version is the problem, the code even gives an error about the code, not some config stuff.
BTW Where is the zp-config file after the update?
It's not in zp-core? The site works but I can't find it.
What kind of dumb shit is this?
Where is zp-config.cfg.php?????????????????????
But the site works after update so WTF?
Refreshed file list - no luck.
And yeah - I had the zp-config file but the setup didn't start automatically, had to log in and start it.
So let's agree that not all servers are and behave the same.
The config file is and always has been in /zp-data for years. There is a .txt template file within /zp-core which is used to compare and for fresh installs. This is used here to set some rewrite tokens and somehow does not have what ti should.
You can compare your zp-core config template with this: https://github.com/zenphoto/zenphoto/blob/master/zp-core/zenphoto_cfg.txt
IMO there is a bug starting with 7.3.
Again, not in general. We are working on 7.4 only for everything and that even before 1.5.7 and surely would have noticed that. Our own site even ran a beta of 1.5.8 some weeks before the release.
You need to use the 1.5.9a aka support build for the fix regarding the first issue (althoight IMHO that issue should not be possible). In this exception you can just use the functions-basic.php which has that fix.
Please try the support build right now if the workaround fixes your first notice.Which again, should not be possibe if the config file template is present. Same for the 2nd one a teh mysql_prefix is always defined.
What ti sthe mysql prefix on your install? That might give us a clue. (that line didn't change in ages though…)
It's stil basically 1.5.8 just with a fix. This helps us to possibly not ship fixes again.
If we cannpt reproduce a bug, we also can't work on it.
I will upgrade several custom sites on several webhostings today and I will see if this surfaces anywhere else. So far all works on three different servers with 7.4.