Page 1 of 1
"Show Timeline" does not work when selecting all events
Posted: Fri Feb 28, 2020 6:39 pm
by enunes
Hi,
First, many thanks for this great tool!
Since updating to 1.34.4, "Show Timeline" does not work if you select all events, i.e. events from all monitors or all events from a group (last line in console view). The output is a HTTP ERROR 500.
However it works if you select the events for a specific monitor.
Just updated to v1.34.5 and it has the same behavior. Tested with Chrome, Firefox and IE.
Does anyone have the same issue?
Many thanks for any help.
Re: "Show Timeline" does not work when selecting all events
Posted: Fri Feb 28, 2020 9:55 pm
by iconnor
Probably running out of ram. Check apache logs. Edit php.ini set memory limit higher.
Re: "Show Timeline" does not work when selecting all events
Posted: Sun Mar 01, 2020 1:14 pm
by enunes
Thanks for your suggestion.
Checking apache error log, I get this:
[Sat Feb 29 19:08:51.375826 2020] [php7:error] [pid 1384] [client x.x.x.84:50254] PHP Fatal error: Uncaught Error: Call to undefined function Error() in /usr/share/zoneminder/www/skins/classic/includes/timeline_functions.php:213\nStack trace:\n#0 /usr/share/zoneminder/www/skins/classic/views/timeline.php(146): parseFilterToTree(Array)\n#1 /usr/share/zoneminder/www/index.php(279): require_once('/usr/share/zone...')\n#2 {main}\n thrown in /usr/share/zoneminder/www/skins/classic/includes/timeline_functions.php on line 213, referer:
http://x.x.x.10/zm/index.php?view=event ... C5%2C6%2C7
Looking at timeline_functions.php, it seems the URL above is built using operator "IN" instead of "=[]" or "=%5B%5D".
I've changed the URL to:
http://x.x.x.10/zm/index.php?view=event ... C5%2C6%2C7
and it works.
So I guess it's the last line of console view - sum of all events, per hour, per day, etc - which has the incorrect operator in its URL.
Re: "Show Timeline" does not work when selecting all events
Posted: Sun Mar 01, 2020 4:08 pm
by iconnor
Wow, there's a lot of un-updated code in there.
Fixes will be in 1.34.6.
Re: "Show Timeline" does not work when selecting all events
Posted: Sun Mar 01, 2020 9:24 pm
by enunes
Great!
Thanks!