"Show Timeline" does not work when selecting all events

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
enunes
Posts: 3
Joined: Fri Feb 28, 2020 6:22 pm

"Show Timeline" does not work when selecting all events

Post 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.
User avatar
iconnor
Posts: 2900
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: "Show Timeline" does not work when selecting all events

Post by iconnor »

Probably running out of ram. Check apache logs. Edit php.ini set memory limit higher.
enunes
Posts: 3
Joined: Fri Feb 28, 2020 6:22 pm

Re: "Show Timeline" does not work when selecting all events

Post 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.
User avatar
iconnor
Posts: 2900
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: "Show Timeline" does not work when selecting all events

Post by iconnor »

Wow, there's a lot of un-updated code in there.

Fixes will be in 1.34.6.
enunes
Posts: 3
Joined: Fri Feb 28, 2020 6:22 pm

Re: "Show Timeline" does not work when selecting all events

Post by enunes »

Great!
Thanks!
Post Reply