web_js error message

Forum for questions and support relating to the 1.25.x releases only.
Locked
sipi
Posts: 132
Joined: Wed Feb 14, 2007 5:18 pm

web_js error message

Post by sipi »

Hi, I use zm 1.25 and have a lot of web_js error message in log.

Unknown error type: [2] gettimeofday ...

What is it mean?

Thanks
sipi
Posts: 132
Joined: Wed Feb 14, 2007 5:18 pm

Re: web_js error message

Post by sipi »

Hi, here is full message:

Date/Time Component PID Level Message File Line

2011-12-15 17:26:45.283944 web_js 5914 PNC Unknown error type: [2] gettimeofday(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still gett zm/includes/logger.php 580

What is it mean? Is it a bug, zm or web_js?
bb99
Posts: 943
Joined: Wed Apr 02, 2008 12:04 am

Re: web_js error message

Post by bb99 »

Try this one: http://www.zoneminder.com/forums/viewto ... day#p72064, lots more available through search the forums.
sipi
Posts: 132
Joined: Wed Feb 14, 2007 5:18 pm

Re: web_js error message

Post by sipi »

Thanks bb99. I modified php5.ini, changed date.timezone to my place, restart apache, reboot pc (there are some other warning) and gettimeofday error went away.
But I have a lot of new error message

web_js 2177 ERR Script error.
web_js 16310 ERR Script error.
web_js 16310 ERR Script error. ?view=logout
web_js 16310 ERR Script error. ?view=watch
web_js 16313 ERR Script error. ?view=timeline
web_js 16313 ERR Script error. ?view=events
web_js 15893 ERR Script error. ?view=timeline
web_js 15893 ERR Script error. ?view=events
web_js 12582 ERR Script error. ?view=timeline
web_js 12582 ERR Script error. ?view=events
web_js 12582 ERR Script error.

I don't understand it because web_js repeats it five minutes. And I have error message in apache2 error_log

[error] [client 192.168.1.1] File does not exist: /srv/www/htdocs/css, referer: http://192.168.1.30/zm/index.php?view=log
[error] [client 127.0.0.1] Directory index forbidden by Options directive: /srv/www/htdocs/

Apache repeats it five minutes. What is it mean?

Thanks
matz
Posts: 3
Joined: Tue Feb 21, 2012 12:03 am

Re: web_js error message

Post by matz »

Hi

I have the same problem. It is when i have the timeline view and i move the mouse on an event to see images. I got web_js errors in the log file :

"(new Element("p")).injectInside is not a function" in file /zm/skins/classic/views/js/timeline.js, line 17.
==> When browser is Firefox 10

"Uncaught TypeError: Object # has no method 'injectInside'" in file /zm/skins/classic/views/js/timeline.js, line 17.
==> When browser is Chrome

and.... no error when in Internet Explorer 8, under which i can see images without errors.

I changed the datetime.timezone to Europe/Paris, rebooted the box, same problem

Any ideas ?

Regards

Matz
Kleine
Posts: 5
Joined: Sun Jul 10, 2011 9:44 pm

Re: web_js error message

Post by Kleine »

Hello

Has anyone found a solution?
I'm getting the same errors.

When I uncomment "date.timezone = " in the php.ini file, and alter it so it looks like this: date.timezone = "Europe/Brussels"
I also get a lot of web_js error messages. And when i look in the script monitor in firebug, it always give an error at the following code ...w Date).getTime()/1E3) <parseInt(this.vars.aoi)+parseInt(this.item_delays[a].max)
Fire bug also displays an error description: event is not defined.

Thanks

With kind regards

Kleine
Locked