Page 1 of 1

Filter log

Posted: Sat Sep 20, 2014 11:33 am
by chicoze
Running ZM on VirtualBox Ubuntu 14.04.1
In the log window, the filter log does not work (shows no result). Clicking on reset button shows the error:
SQL-ERR dbFetchAll no result, statement was 'select distinct Pid from Logs where not isnull(Pid) and Component = ? order by Pid asc'

Is there something i am missing?

Re: Filter log

Posted: Sun Sep 21, 2014 4:51 am
by chicoze
Well, i think i found the solution.
on line 102 of file /usr/share/zoneminder/ajax/log.php
is missing $fieldValues
it is foreach( dbFetchAll( $sql, $field ) as $value )
should be foreach( dbFetchAll( $sql, $field, $fieldValues ) as $value )
Now it works!
Thanks.

Re: Filter log

Posted: Mon Sep 22, 2014 2:31 pm
by knight-of-ni
Exactly what version of zoneminder are you using?

Re: Filter log

Posted: Mon Sep 22, 2014 9:20 pm
by chicoze
Running ZM version v1.27.99.0 on Ubuntu Server 14.04.1 LTS 64-bit (VirtualBox)

Re: Filter log

Posted: Fri Sep 26, 2014 6:49 pm
by knight-of-ni
I believe this has been fixed:
https://github.com/ZoneMinder/ZoneMinder/issues/504

Once iconnor rolls out a new 1.27.99 deb you should be able to test.

Re: Filter log

Posted: Tue Sep 30, 2014 6:20 am
by chicoze
Thank you knnniggett. :D