![]() |
|
Can't setup, Call to a member function lock() - 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: Can't setup, Call to a member function lock() (/thread-14043.html) |
Can't setup, Call to a member function lock() - thomfriedel - 13-05-2025 [13-May-2025 04:32:10 UTC] PHP Fatal error: Uncaught Error: Call to a member function lock() on null in /home/domains/new.mysite.com/www/zenphoto-1.6.6/zp-core/functions/functions-reconfigure.php:121 I am trying to call zp-core/setup.php as one document says to do. Can't setup, Call to a member function lock() - acrylian - 13-05-2025 Sorry, no idea right now and never have seens this before I think. $_zp_mutex should be an object of the zp-mutex class which is a core class of Zenphoto. Any other errors maybe? Like file permissions or similar? Anything may help. Also, could you post some information about the server configuration please. Can't setup, Call to a member function lock() - thomfriedel - 13-05-2025 New Centos server but running PHP 7. I see the same error here but nowhere else: https://forum.zenphoto.org/discussion/1410983/zenphoto-1-6 He seems to have solved it by manually putting sql info into a cfg file, but that did not work for me. Can't setup, Call to a member function lock() - acrylian - 13-05-2025 I hope you didn't meant PHP 7 in the sense of PHP 7.0. You should at least have 7.4 but I strongely recommend PHP 8+ or better 8.2/8.3. I know officially the minimum version is PHP 7.0.0 currently but I realize that is a mistake to not have changed that. We can't even really test that anymore… We primarily test on PHP 8.3 currently. TThe next release might not officially support PHP 7at all anymore. That forum post is quite old. You should try again to put the data into the config file (zp-data/zenphoto.cfg.php - if it is not created the template is within zp-core/file-templates/). It must be there in any case. If that really does not work some of the credentials are not correct. Can't setup, Call to a member function lock() - acrylian - 14-05-2025 We did test and indeed sometthing is wrong on fresh installs. We'll look into it as soon as possible. Can't setup, Call to a member function lock() - acrylian - 14-05-2025 We have a fix now in the 1.6.7a support build on GitHub. See https://www.zenphoto.org/pages/download/ Can't setup, Call to a member function lock() - thomfriedel - 14-05-2025 It is 7.4, the latest Can't setup, Call to a member function lock() - acrylian - 14-05-2025 Good. Then try the support build please to confirm it is working again. Can't setup, Call to a member function lock() - thomfriedel - 15-05-2025 thanks, I got some different errors that may be permissions. I will try and look more tomorrow. Can't setup, Call to a member function lock() - acrylian - 15-05-2025 Great, testing will help us to not ship any bug with the 1.6.7 follow up release we like to release very soon naturally |