(fixed) Events view in v1.24.2

Forum for questions and support relating to the 1.24.x releases only.
Locked
User avatar
robi
Posts: 477
Joined: Sat Mar 17, 2007 10:48 am

(fixed) Events view in v1.24.2

Post by robi »

When I click on the main console, in the events table to see the events list, a new window pops up as usual, but instead of showing me the events list, has the following:
Fatal error: Cannot use string offset as an array in /var/www/zm/includes/functions.php on line 1343
The most strange part is that I get this behaviour only in Firefox (currently version 3.5.7), while Internet Explorer 8.0.6001 has no problems with it.

The URL of the events window is:

Code: Select all

http://localhost:800/zm/index.php?view=events&page=1&filter[terms][0][attr]=MonitorId&filter[terms][0][op]=%3D&filter[terms][0][val]=1
(Tunnelling port 80>800 through SSH/Putty from the ZM box to the viewer client, that's why localhost:800)

The ZM box has a fresh copy of Ubuntu 9.10, with ZM v1.24.2 installed from svn (Checked out revision 3013.) according to this guide.

Any ideas?
Last edited by robi on Fri Feb 19, 2010 6:20 pm, edited 1 time in total.
v1.25.0 + Ubuntu Linux 12.04 Server
jfkastner
Posts: 74
Joined: Wed Jun 17, 2009 11:52 pm

Post by jfkastner »

IE uses cambozola, FF does NOT

check if cambo is installed correctly, the settings in options regarding cambo/streaming etc and the permissions

also try clearing/disabling the browsercache, they use different strategies
User avatar
robi
Posts: 477
Joined: Sat Mar 17, 2007 10:48 am

Post by robi »

jfkastner wrote:IE uses cambozola, FF does NOT

check if cambo is installed correctly, the settings in options regarding cambo/streaming etc and the permissions

also try clearing/disabling the browsercache, they use different strategies
I really don't see how cambozola comes in, since the problem I wrote is related to the events list, not the event view. You know, that table that shows you a big list with lots of events you can click on. No streaming occurs in this window!

By the way, if you mentioned:
- cambozola is installed correctly, streaming works fine in IE
- streaming works fine in Firefox too, which does not use cambozola
- permissions are fine on server side
- Firefox browser's cache cleaning didn't fix it
The problem is in Firefox, not Internet Explorer, dude!
v1.25.0 + Ubuntu Linux 12.04 Server
jfkastner
Posts: 74
Joined: Wed Jun 17, 2009 11:52 pm

Post by jfkastner »

sorry then i misunderstood your problem ... was a long day ...

you write about useing port 800 - a privileged port

maybe FF runs in a different securitysetup than IE and has no access to those ports?

could you post the code around "line 1343" so we could look at it to see what else is involved?

also did you try a different FF version? for me only the good'ol' 307 worked with ALL zm menus/windows
User avatar
robi
Posts: 477
Joined: Sat Mar 17, 2007 10:48 am

Post by robi »

jfkastner wrote:you write about useing port 800 - a privileged port

maybe FF runs in a different securitysetup than IE and has no access to those ports?
As I stated, IE works fine. I'm experiencing all these in both WinXP and Win7, all elevated admin privileges, no security limits on OS side.
jfkastner wrote:could you post the code around "line 1343" so we could look at it to see what else is involved?
Line 1343 is:

Code: Select all

            if ( isset($filter['terms'][$i]['cnj']) )
in function parseFilter. Have a look in functions.php.
jfkastner wrote:also did you try a different FF version? for me only the good'ol' 307 worked with ALL zm menus/windows
Strange, that Firefox 3.0.7 (portable) works fine, as IE works fine too.
The problem is indeed reproductible with Firefox 3.5.7.

However, I still think this is a ZM problem, since the error appears on server side, the error is thown by PHP, not by Firefox.
v1.25.0 + Ubuntu Linux 12.04 Server
User avatar
robi
Posts: 477
Joined: Sat Mar 17, 2007 10:48 am

Post by robi »

I analyzed Firefox's request with LiveHTTPHeaders plugin, and this is what I got. Anyone suspecting anything unusual? Maybe some mime types on apache side?

Code: Select all

http://localhost:800/zm/index.php?view=events&page=1&filter[terms][0][attr]=DateTime&filter[terms][0][op]=%3E%3D&filter[terms][0][val]=-1+hour&filter[terms][1][cnj]=and&filter[terms][1][attr]=MonitorId&filter[terms][1][op]=%3D&filter[terms][1][val]=1

GET /zm/index.php?view=events&page=1&filter[terms][0][attr]=DateTime&filter[terms][0][op]=%3E%3D&filter[terms][0][val]=-1+hour&filter[terms][1][cnj]=and&filter[terms][1][attr]=MonitorId&filter[terms][1][op]=%3D&filter[terms][1][val]=1 HTTP/1.1
Host: localhost:800
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; hu; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: hu-hu,hu;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-2,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://localhost:800/zm/index.php
Cookie: zmMontageLayout=montage_2wide.css; zmBandwidth=high; zmSkin=classic; show_filter=true; auto-start-torrents=true; filter=all; show_inspector=true; ZMSESSID=7e139b803b4b77f8d897ae72c68cc700

HTTP/1.x 200 OK
Date: Tue, 02 Feb 2010 11:23:35 GMT
Server: Apache/2.2.12 (Ubuntu)
X-Powered-By: PHP/5.2.10-2ubuntu6.4
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 131
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=iso8859-2

Code: Select all

#request# GET http://localhost:800/zm/index.php?view=events&page=1&filter[terms][0][attr]=DateTime&filter[terms][0][op]=%3E%3D&filter[terms][0][val]=-1+hour&filter[terms][1][cnj]=and&filter[terms][1][attr]=MonitorId&filter[terms][1][op]=%3D&filter[terms][1][val]=1

GET /zm/index.php?view=events&page=1&filter[terms][0][attr]=DateTime&filter[terms][0][op]=%3E%3D&filter[terms][0][val]=-1+hour&filter[terms][1][cnj]=and&filter[terms][1][attr]=MonitorId&filter[terms][1][op]=%3D&filter[terms][1][val]=1
v1.25.0 + Ubuntu Linux 12.04 Server
User avatar
robi
Posts: 477
Joined: Sat Mar 17, 2007 10:48 am

Post by robi »

Same error when viewing from the same subnet, when the URL is, so this is not related to port forwarding:

Code: Select all

http://192.168.1.10/zm/?view=events&page=1&filter[terms][0][attr]=MonitorId&filter[terms][0][op]=%3D&filter[terms][0][val]=1
Different PC.

Anyone?
v1.25.0 + Ubuntu Linux 12.04 Server
User avatar
robi
Posts: 477
Joined: Sat Mar 17, 2007 10:48 am

Post by robi »

Upgrading to Firefox 3.6 fixed this behaviour.
Still have no clue how could this happen... since all signs showed this is a server side error.
v1.25.0 + Ubuntu Linux 12.04 Server
User avatar
robi
Posts: 477
Joined: Sat Mar 17, 2007 10:48 am

Post by robi »

Sh*t. Happens again with 3.6 too.
v1.25.0 + Ubuntu Linux 12.04 Server
notwinkie
Posts: 3
Joined: Sun Oct 12, 2008 2:33 pm
Location: UK

Post by notwinkie »

The subject mentions that this is fixed, but nobody that I can see has specified a solution that apparently works?

I am having the same problem with 1.24.2 installed on Debian Lenny. This seems to have started occuring after a mysql server upgrade and restart.

Restarting zoneminder has no effect.
notwinkie
Posts: 3
Joined: Sun Oct 12, 2008 2:33 pm
Location: UK

Post by notwinkie »

Ignore my previous post, clearing cookies solved the problem.
Locked