ZoneMinder / zoneminder

ZoneMinder is a free, open source Closed-circuit television software application developed for Linux which supports IP, USB and Analog cameras.
http://www.zoneminder.com/
GNU General Public License v2.0
5.13k stars 1.22k forks source link

ZoneMinder 1.36.30+ No Longer Works On CentOS 7 #3622

Closed gandihar closed 1 year ago

gandihar commented 1 year ago

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

  1. Install ZoneMinder on CentOS 7 as per docs.
  2. Try to hit the web interface.
  3. Blank page.
  4. 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.

welcome[bot] commented 1 year ago

Thanks for opening your first issue here! Just a reminder, this forum is for Bug Reports only. Be sure to follow the issue template!

connortechnology commented 1 year ago

This should have been fixed in 1.36.32.

gandihar commented 1 year ago

Confirmed working. TYVM