ZenphotoCMS Forum
How to restart setup without user/passwd prompt? - 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: How to restart setup without user/passwd prompt? (/thread-12771.html)



How to restart setup without user/passwd prompt? - rtwingfield - 25-06-2015

I have "bit the bullet" and hauled down and installed the tarball for zenphoto-zenphoto-1.4.8.tar.gz. Got a little way into setup, and crashed.

When attempting to restart, a login prompt panel is presented, and after provide user name and passwd, the following crash complaint:

[b]Fatal error: Call to undefined function hash() in /usr/local/www/zenphoto/zp-core/lib-auth.php on line 1250[/b]

This source-code line reference is to the following block of code:

Quote:`
1249 static function pbkdf2($p, $s, $c = 1000, $kl = 32, $a = 'sha256') {
[b]1250[/b] $hl = strlen(hash($a, null, true)); # Hash length
1251 $kb = ceil($kl / $hl); # Key blocks to compute
1252 $dk = ''; # Derived key
1253 # Create key
1254 for ($block = 1; $block