Page 1 of 1
1.31.44 Unable to add monitor
Posted: Mon Apr 30, 2018 6:45 pm
by gsaindon
Hi,
I tested upgrading from 1.31.42 to 1.31.44. Unable to add monitor anymore. Here what appears in the log file:
web_php[10021]: ERR [Uncaught ReferenceError: addMonitor is not defined]
Thanks,
Re: 1.31.44 Unable to add monitor
Posted: Mon Apr 30, 2018 10:47 pm
by juanmoura
Same with me
Re: 1.31.44 Unable to add monitor
Posted: Tue May 01, 2018 2:52 pm
by iconnor
I suspect your issue is related to errors in loading the js. You need to update your apache config to look like the one at the following gist
https://gist.github.com/connortechnolog ... 54ee45067e
Re: 1.31.44 Unable to add monitor
Posted: Tue May 01, 2018 8:34 pm
by juanmoura
but where i change for this new config? I put in the /etc/apache2/apache2.conf but not work. So where can i change?
Re: 1.31.44 Unable to add monitor
Posted: Tue May 01, 2018 9:06 pm
by juanmoura
i try to change /etc/apache2/confi-available/zoneminder.conf but the apache2 don't start. I put the config before the del all lines inside the zoneminder.conf
Still without sucess.
Re: 1.31.44 Unable to add monitor
Posted: Tue May 01, 2018 11:18 pm
by amritgary
i have same issue with 1.31.44.. don't know where to update this config???
Re: 1.31.44 Unable to add monitor
Posted: Tue May 01, 2018 11:43 pm
by juanmoura
yes.
I don't know.
I tried changing /etc/apache2/conf-available/zoneminder.conf and apacha2.conf
in both locations the apache2 don't start.
Re: 1.31.44 Unable to add monitor
Posted: Wed May 02, 2018 12:51 am
by amritgary
ok, here's what i did:
1. Create a file in /etc/apache2/ and call it abc.conf (or whatever name)
2. Copy the contents of link above into this abc.conf. Make sure to fix line 58 per comments on the bottom of page.
3. then, to apache2.conf add a line at bottom of file add
Include abc.conf
4. Next restart apache2
/etc/init.d/apache2 restart
However, now i have an error
/var/log/zm/zm_debug.log
05/01/18 19:37:21.583041 web_js[4479].ERR [Uncaught ReferenceError: createPopup is not defined] at
http://192.168.0.25/zm/index.php line 205
So, i am still stuck..
Re: 1.31.44 Unable to add monitor
Posted: Wed May 02, 2018 2:24 am
by amritgary
okay figured it out..
replace the file /etc/apache2/conf-available/zoneminder.conf with the code provided in link (See post above). Make sure to backup and also make sure to fix line 58 (per prior post).
Worked for me
Re: 1.31.44 Unable to add monitor
Posted: Wed May 02, 2018 2:55 am
by rockedge
you can enable / disable the apache /etc/apache2/conf-available/zoneminder.conf in a terminal with
or to disable :
then a restart of Apache.
more info for Ubuntu or variants ->
http://manpages.ubuntu.com/manpages/tru ... onf.8.html