You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Zoneminder 1.36.30+ (Tested on .31) installed from RPMFusion repo
zoneminder-1.36.31-1.el7.x86_64
zoneminder-common-1.36.31-1.el7.x86_64
zoneminder-httpd-1.36.31-1.el7.x86_64
Any browser
Describe the bug
After upgrading to ZoneMinder 1.36.30+ (I went from .28 to .31) the ZoneMinder web interface is entirely blank. As in a single blank line is returned to the browser for any page requested. After digging through Apache and ZoneMinder error logs, it looks like the new PHP syntax added to /usr/share/zoneminder/www/includes/session.php is using newer PHP syntax (PHP 7+) than what is shipped with CentOS 7 (PHP 5.4).
To Reproduce
Install ZoneMinder on CentOS 7 as per docs.
Try to hit the web interface.
Blank page.
Web server error logs show something like this:
2022-10-31 15:46:49 Error: Fatal Error (4): syntax error, unexpected ':', expecting ';' or '{' in [/usr/share/zoneminder/www/includes/session.php, line 129]
Expected behavior
The ZoneMinder login page or console.
Hacky Work-around
Going through /usr/share/zoneminder/www/includes/session.php and removing the PHP 7 function return hints.
i.e. public function open($path, $name): bool { becomes public function open($path, $name) {
If PHP 5 is being deprecated, please update the docs to include SCL instructions for installing PHP 7 on CentOS 7. If not, please remove PHP 7+ function return hints.
The text was updated successfully, but these errors were encountered:
Describe Your Environment
Describe the bug
After upgrading to ZoneMinder 1.36.30+ (I went from .28 to .31) the ZoneMinder web interface is entirely blank. As in a single blank line is returned to the browser for any page requested. After digging through Apache and ZoneMinder error logs, it looks like the new PHP syntax added to /usr/share/zoneminder/www/includes/session.php is using newer PHP syntax (PHP 7+) than what is shipped with CentOS 7 (PHP 5.4).
To Reproduce
Expected behavior
The ZoneMinder login page or console.
Hacky Work-around
Going through /usr/share/zoneminder/www/includes/session.php and removing the PHP 7 function return hints.
i.e.
public function open($path, $name): bool {
becomespublic function open($path, $name) {
If PHP 5 is being deprecated, please update the docs to include SCL instructions for installing PHP 7 on CentOS 7. If not, please remove PHP 7+ function return hints.
The text was updated successfully, but these errors were encountered: