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

Forum for questions and support relating to the 1.25.x releases only.
Locked
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

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

Post 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

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

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

Post by PacoLM »

Bump!

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
dma_k
Posts: 27
Joined: Sat Jan 19, 2013 5:58 pm

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

Post 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 156 times
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

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

Post by PacoLM »

Thanks a lot. Patched & fixed.

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
Locked