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
I am sorry that you have that much problems. Zenphoto is aimed at standard shared webhosts with standard PHP configurations and I personally never encountered any such issues on half a dozen hosts (I never installed PHP myself and let host do that work).
hash() actually belongs to a standard PHP extension that should generally be available:
https://secure.php.net/manual/de/book.hash.php
Evne the PDO and MySQL are such standard extension that are simply needed to be there. If I am not mistaken a graphics libary like GDlibary or Imagick is also missing from your list.
Again, thanks for your response -- I would have also responded sooner, but for some reason, the functionality to respond, edit, or start a new thread just disappeared from your website . . .as least in my browser. Actually, when I submitted the post, your site displayed some green-background message that prompted me to return to a previous page (. . .not sure?) I actually thought my post was lost in the ether.
Regardless, I did search the FreeBSD forum and found this post:
https://forums.freebsd.org/threads/opencart-php-call-to-undefined-function-hash.50583/#post-292396
I followed the original FreeBSD Forum's poster's lead and installed the additional php56-extensions package. This enabled the plethora of additional extensions support including hash support that solved the undefined function crash. I had overlooked (or didn't know to look for it) in the phpinfo() output . . .just assumed that it should be part of the base.
I have successfully installed the v1.4.8 from your tarball and with a little tweaking, appears to be working well. That nuance regarding the prefix to the MySQL table names resolved the path problem that I suspected. Now all of my album data are found and rendered as advertized. You might be interested to know that I did upgrade directly from v1.4.0.4 to v1.4.8. and apparently the table elements were successfully mapped where matches were found. If I had understood the path nuances, and didn't have to contend with a partial PHP5.6 installation, then I think it would have gone very quickly and I would not have cluttered your forum with so many posts.
Finally, I do appreciate that probably many of your users are not programmers, and are probably using third-party hosting sites (where they don't have to install and configure [i]PHPig[/i]), etc., and are looking for something cleaner, more versatile, and less cluttered than say, for example, [i]PhotoBucket[/i].
Oh, and yeah, I had to install the GD graphics suite, too. I guess that what is "standard" for some, is not so "standard" for others.
OTTF,
Ron W.
No problem! That is what the forum is for.
Direct upgrades from older versions often work well and I even did it from much older ones successfully. But since we don't specifially test it, it may also fail in some parts. In any case the biggest problem are mostly old themes or plugins especially if third party or custom ones that need updating.
Quote:Finally, I do appreciate that probably many of your users are not programmers, and are probably using third-party hosting sites (where they don't have to install and configure PHPig)
Even if they are they not necessarily setup or know how to servers on their own.
Quote:Oh, and yeah, I had to install the GD graphics suite, too. I guess that what is "standard" for some, is not so "standard" for others.
Yes, would be great if all servers all over the world would be setup the same way.