The simpler media website CMS
[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
that line is
$_zp_mutex->lock();
I am trying to call zp-core/setup.php as one document says to do.
Comments
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.
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.
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.
We did test and indeed sometthing is wrong on fresh installs. We'll look into it as soon as possible.
We have a fix now in the 1.6.7a support build on GitHub. See https://www.zenphoto.org/pages/download/
Please test and confirm.
It is 7.4, the latest
Good. Then try the support build please to confirm it is working again.
thanks, I got some different errors that may be permissions. I will try and look more tomorrow.
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