Page 1 of 1

Progress Bar and Stills only working on first Monitor

Posted: Fri Mar 13, 2015 9:47 pm
by twild
Hi,

I've got upgraded from1.27 to 1.28.1. I am working with OPT_USE_AUTH = yes

Actually i've 8 Cams mainly Foscams Cams. Since upgrade the progress bar does only appear on first Monitor's Event. Furthermore also Stills (Link) works only on the first Minitor (Cam). If I switch to OPT_USE_AUTH = Off all Monitors have progress bar as well Stills (link) does work fine. It seems all other functions are working as expected.

I'm not sure if this is relateted to that issue, in case if I klick an event for i.e. second (or higher) monitor I get the message in apache's error log:

"03/13/15 20:27:25.488276 web_js[26504].ERR [SyntaxError: expected expression, got ','] at serveraddress/index.php?view=event line 67"
"03/13/15 20:27:25.532025 web_js[26504].ERR [ReferenceError: connKey is not defined] atserveraddress//zm/skins/classic/views/js/event.js line 32"

On first Monitor's events no errors are written.

It worked properly with 1.27. Any suggestions?

Tnx Thomas

Re: Progress Bar and Stills only working on first Monit

Posted: Sat Mar 14, 2015 9:23 pm
by twild
Ok ... I'm discoverd a little bit around. And I found out If I changed this tree lines it workes out properly. I know this might not be the right sollution, but at the moment it is sufficed for me. May be the zm team will solve the issue in the next release?

Tnx . Regards Thomas

diff -u ./skins/classic/views/event.php.orig ./skins/classic/views/event.php
--- ./skins/classic/views/event.php.orig 2015-02-05 03:52:37.000000000 +0100
+++ ./skins/classic/views/event.php 2015-03-14 22:16:32.523520125 +0100
@@ -27,9 +27,10 @@
$eid = validInt( $_REQUEST['eid'] );
$fid = !empty($_REQUEST['fid'])?validInt($_REQUEST['fid']):1;

-if ( $user['MonitorIds'] )
- $midSql = " and MonitorId in (".join( ",", preg_split( '/["\'\s]*,["\'\s]*/', dbEscape($user['MonitorIds']) ) ).")";
-else
+// if this three lines are active, no progress bar and Stills are working
+// if ( $user['MonitorIds'] )
+// $midSql = " and MonitorId in (".join( ",", preg_split( '/["\'\s]*,["\'\s]*/', dbEscape($user['MonitorIds']) ) ).")";
+// else
$midSql = '';

Re: Progress Bar and Stills only working on first Monitor

Posted: Wed Apr 01, 2015 9:42 pm
by pio00
I confirm, that this solution worked also for me.
Without that there was no progress bar for users, which had limited list of available cameras assigned in the user profile.

Regards,
Piotr