Member
Member
thomfriedel   13-05-2025, 04:35
#1

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

Administrator
Administrator
acrylian   13-05-2025, 07:52
#2

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.

Member
Member
thomfriedel   13-05-2025, 12:22
#3

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.

Administrator
Administrator
acrylian   13-05-2025, 13:10
#4

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.

Administrator
Administrator
acrylian   14-05-2025, 08:23
#5

We did test and indeed sometthing is wrong on fresh installs. We'll look into it as soon as possible.

Administrator
Administrator
acrylian   14-05-2025, 09:23
#6

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.

Member
Member
thomfriedel   14-05-2025, 13:04
#7

It is 7.4, the latest

Administrator
Administrator
acrylian   14-05-2025, 13:53
#8

Good. Then try the support build please to confirm it is working again.

Member
Member
thomfriedel   15-05-2025, 01:43
#9

thanks, I got some different errors that may be permissions. I will try and look more tomorrow.

Administrator
Administrator
acrylian   15-05-2025, 06:56
#10

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

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.