Can't setup, Call to a member function lock()

[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

  • acrylian Administrator, Developer

    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.

  • acrylian Administrator, Developer
    edited 1:14PM

    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.

Sign In or Register to comment.