Failed upgrade to 1.34.6 on Freebsd

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
bignellrp
Posts: 19
Joined: Sun Dec 22, 2019 12:37 pm

Failed upgrade to 1.34.6 on Freebsd

Post by bignellrp »

Hi,

I did an upgrade from ports on freebsd and now zoneminder wont show the UI on a web browser.

Using PHP7.2 with openssl and php-fpm installed
Using nginx
Openssl is uncommented in php.ini (extension=openssl)

Error in the nginx logs:

2020/03/21 11:01:01 [error] 22513#102247: *2 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function openssl_random_pseudo_bytes() in /usr/local/www/zoneminder/index.php:180
Stack trace:
#0 {main}
thrown in /usr/local/www/zoneminder/index.php on line 180" while reading response header from upstream, client: 192.168.0.23, server: _, request: "GET /zm/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.0.27"
User avatar
iconnor
Posts: 2896
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Failed upgrade to 1.34.6 on Freebsd

Post by iconnor »

You could try changing that line 180 to use random_bytes instead of openssl_random_pseudo_bytes
User avatar
iconnor
Posts: 2896
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Failed upgrade to 1.34.6 on Freebsd

Post by iconnor »

Master has a fix and 1.34.7 will contain it as well.
bignellrp
Posts: 19
Joined: Sun Dec 22, 2019 12:37 pm

Re: Failed upgrade to 1.34.6 on Freebsd

Post by bignellrp »

Perfect. Thats fixed it. Legend!
Post Reply