Page 1 of 1

Upgraded to 1.33.15 and lost web interface

Posted: Tue Dec 03, 2019 7:34 pm
by goatman64
First off .. thanks to all who contribute to zoneminder.

I have been happily running 1.33.14 with object detection and upgraded to 1.33.15 with zmeventnotification to 4.6.1. The install completed without errors but I cannot figure out why /usr/share/zoneminder/www/includes/functions.php throws an error from Apache.

From apache error.log
PHP Parse error: syntax error, unexpected ')' in /usr/share/zoneminder/www/includes/functions.php on line 2594

Zoneminder is running and collecting data but can't login to the web UI.

Must be some simple mistake ... anyone?

Re: Upgraded to 1.33.15 and lost web interface

Posted: Tue Dec 03, 2019 10:24 pm
by iconnor
I have reports of this, but have been unable to recreate it myself.

Re: Upgraded to 1.33.15 and lost web interface

Posted: Wed Dec 04, 2019 2:31 pm
by goatman64
Appreciate the reply ...

I commented out the following in function html_radio and the UI is operational but compromised. Is there a way to validate the dataset? There must be corrupt formatting in $attr and/or $value stream that creates the php error.

#$html .= sprintf('
# <div class="form-check%7$s">
# <label class="form-check-label radio%7$s" for="%1$s%6$s%2$s">
# <input class="form-check-input" type="radio" name="%1$s" value="%2$s" id="%1$s%6$s%2$s" %4$s%5$s />
# %3$s</label></div>
# ', $name, $value, $label, ($value==$selected?' checked="checked"':''),
# implode(' ', array_map(
# function($attr, $value){return $attr.'="'.$value.'"';},
# array_keys($attrs),
# array_values($attrs)
# ),
# ),
# ( isset($options['id']) ? $options['id'] : ''),
# ( ( (!isset($options['inline'])) or $options['inline'] ) ? '-inline' : ''),
# );

Re: Upgraded to 1.33.15 and lost web interface

Posted: Thu Dec 05, 2019 12:34 am
by iconnor
master has been updated with a fix. There was an extra comma. Still no idea why none of my machines complained.

Re: Upgraded to 1.33.15 and lost web interface

Posted: Thu Dec 05, 2019 7:23 pm
by goatman64
Excellent .. pulled master and all good!