Page 1 of 1

web_php[xxxx]: ERR [form.elements.autoMessage is undefined]

Posted: Thu Dec 29, 2011 8:48 pm
by PacoLM
Hi,

Recently updated my system, and I'm getting this error every time I open the filter window, details:
- Debian GNU/Linux wheezy/sid
- Linux 3.1.0-1-kirkwood #1 Tue Nov 15 00:17:24 UTC 2011 armv5tel GNU/Linux
- PHP5: Version: 5.3.8.0-1
- Apache2: Version: 2.2.21-3
- MySql Server: Version: 5.1.58-1

Error:

Code: Select all

Date/Time : 2011-12-29 21:41:48.18720120816                      
Component :  web_js	
PID: 20816
Level: ERR
Message: form.elements.autoMessage is undefined
File: http://xxx.xxx.x.xx:xx/skins/classic/views/js/filter.js                                                     
Line: 18
The error points to this line (18) in /usr/share/zoneminder/skins/classic/views/js/filter.js

Code: Select all

if ( form.elements['autoMessage'].checked )
The filters works as expected, any clue?

Thanks in advance,

PacoLM

Re: web_php[xxxx]: ERR [form.elements.autoMessage is undefin

Posted: Sun Jan 08, 2012 9:51 am
by PacoLM
Bump!

Re: web_php[xxxx]: ERR [form.elements.autoMessage is undefin

Posted: Wed Feb 13, 2013 6:35 pm
by dma_k
I've got the same problem for FF 17.

Looking deeply into this I found out that one need to tick option

Code: Select all

OPT_MESSAGE 	Should ZoneMinder message you with details of events that match corresponding filters (?) 	[x]
in your configuration (tab "Email"). The problem is that "autoMessage" checkbox is not generated on filters web page if OPT_MESSAGE is not enabled in configuration, but javascript is not aware that this option is not there an needs to be fixed.

I am attaching the patch that helped me.
filter.js_checkbox.patch.gz
(338 Bytes) Downloaded 168 times

Re: web_php[xxxx]: ERR [form.elements.autoMessage is undefin

Posted: Thu Feb 14, 2013 7:39 am
by PacoLM
Thanks a lot. Patched & fixed.