Pages (2): 1 2   
Member
Member
Sponsi   06-06-2021, 18:11
#1

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

Administrator
Administrator
acrylian   06-06-2021, 18:30
#2

That could indicate that permissions are wong. 1.5.8 for sure runs on 7.4 as we develop on 7.4 and our own site runs on it as well.

Please check your config file and the file permissions.

Member
Member
Sponsi   06-06-2021, 18:31
#3

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?

Administrator
Administrator
acrylian   06-06-2021, 18:35
#4

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)

Member
Member
Sponsi   06-06-2021, 18:47
#5

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.

Administrator
Administrator
acrylian   06-06-2021, 18:55
#6

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.

Member
Member
Sponsi   06-06-2021, 19:00
#7

What's with this "upload correctly" stuff?
We are not in 1999.
I didn't change anything. It works with 7.2 so it's not a config thing, it's a code thing!

Administrator
Administrator
acrylian   06-06-2021, 19:06
#8

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.

Member
Member
Sponsi   06-06-2021, 19:07
#9

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.

Administrator
Administrator
acrylian   06-06-2021, 19:20
#10

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.

Member
Member
Sponsi   06-06-2021, 19:21
#11

Aaa... the change of the folders I guess is on purpose, to create confusion...

Administrator
Administrator
acrylian   06-06-2021, 19:22
#12

Tthe reason for the extra folder is that you don't accidentally overwrite your config stuff when updating zp-core.

Administrator
Administrator
acrylian   06-06-2021, 19:26
#13

You can compare your zp-core config template with this: https://github.com/zenphoto/zenphoto/blob/master/zp-core/zenphoto_cfg.txt

Member
Member
Sponsi   06-06-2021, 19:36
#14

Uploading the whole update package again.
Other sites worked OK with 7.2 will do this last one and then switch to 7.3 and watch it all burn.

Everything works with 7.2.
IMO there is a bug starting with 7.3.

Administrator
Administrator
acrylian   06-06-2021, 19:46
#15

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.

Member
Member
Sponsi   07-06-2021, 07:20
#16

OK so waiting for 1.5.9. Until then - 7.2.

Administrator
Administrator
acrylian   07-06-2021, 07:43
#17

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.

Administrator
Administrator
acrylian   07-06-2021, 07:46
#18

There is also a possible fix/workaround for your 2nd issue in the support build now.

Administrator
Administrator
acrylian   08-06-2021, 15:51
#19

I did several Zenphoto updates of 1.5.7 with plain 1.5.8 on five different hosts that all are farily standard shared hosting now. All on PHP 7.4.x and without any problem.

Member
Member
Sponsi   08-06-2021, 17:08
#20

Well... I don't have time to think about it so I'll wait for 1.5.9.

Pages (2): 1 2   
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.