![]() |
|
Updated, changed PHP to 7.4 - got an error - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Updated, changed PHP to 7.4 - got an error (/thread-13591.html) Pages:
1
2
|
Updated, changed PHP to 7.4 - got an error - Sponsi - 2021-06-06 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 Please return later. Good I can go back to an earlier PHP version... Updated, changed PHP to 7.4 - got an error - acrylian - 2021-06-06 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. Updated, changed PHP to 7.4 - got an error - Sponsi - 2021-06-06 But I never had to check anything? 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 Please return later. There are no permissions as it's a non-CHMOD (chroot?) environment, everything has always worked flawlessly. Updated, changed PHP to 7.4 - got an error - acrylian - 2021-06-06 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) Updated, changed PHP to 7.4 - got an error - Sponsi - 2021-06-06 OK so let's be real: 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. Updated, changed PHP to 7.4 - got an error - acrylian - 2021-06-06
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 For the mysql_prefix please review your config file in zp-data, there should an entry about it. Updated, changed PHP to 7.4 - got an error - Sponsi - 2021-06-06 What's with this "upload correctly" stuff? Updated, changed PHP to 7.4 - got an error - acrylian - 2021-06-06
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. Updated, changed PHP to 7.4 - got an error - Sponsi - 2021-06-06 Everything works allright with 7.2. 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? And yeah - I had the zp-config file but the setup didn't start automatically, had to log in and start it. Updated, changed PHP to 7.4 - got an error - acrylian - 2021-06-06 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. Updated, changed PHP to 7.4 - got an error - Sponsi - 2021-06-06 Aaa... the change of the folders I guess is on purpose, to create confusion... Updated, changed PHP to 7.4 - got an error - acrylian - 2021-06-06 Tthe reason for the extra folder is that you don't accidentally overwrite your config stuff when updating zp-core. Updated, changed PHP to 7.4 - got an error - acrylian - 2021-06-06 You can compare your zp-core config template with this: https://github.com/zenphoto/zenphoto/blob/master/zp-core/zenphoto_cfg.txt Updated, changed PHP to 7.4 - got an error - Sponsi - 2021-06-06 Uploading the whole update package again. Everything works with 7.2. Updated, changed PHP to 7.4 - got an error - acrylian - 2021-06-06
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. Updated, changed PHP to 7.4 - got an error - Sponsi - 2021-06-07 OK so waiting for 1.5.9. Until then - 7.2. Updated, changed PHP to 7.4 - got an error - acrylian - 2021-06-07 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. Updated, changed PHP to 7.4 - got an error - acrylian - 2021-06-07 There is also a possible fix/workaround for your 2nd issue in the support build now. Updated, changed PHP to 7.4 - got an error - acrylian - 2021-06-08 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. Updated, changed PHP to 7.4 - got an error - Sponsi - 2021-06-08 Well... I don't have time to think about it so I'll wait for 1.5.9. |