Page 1 of 1

Object.clone javascript not working?

Posted: Sat Jul 28, 2012 9:53 pm
by pashdown
Just installed Zoneminder from the Ubuntu 12.04 package version 1.25. For whatever reason, Chrome/Safari/Firefox Javascript is complaining that there is no "Object.clone" function in skin.js when I try to add a monitor. What is odd is that when I installed previously with source, it didn't have this problem and the skin.js files are identical. Is something not getting loaded? I can't find the Object.clone function defined anywhere.

Thank you in advance.

Re: Object.clone javascript not working?

Posted: Sun Jul 29, 2012 6:53 pm
by pashdown
Found the problem.

Zoneminder refers to mootools files under /javascript, which translates to /usr/share/zoneminder/javascript, when Ubuntu/Debian actually installs these into /usr/share/javascript. Putting an alias into your webserver config for /javascript -> /usr/share/javascript will fix the problem. Make sure your browser caches are flushed, otherwise it may not load the proper files again.

Re: Object.clone javascript not working?

Posted: Tue Aug 05, 2014 9:18 pm
by mice777
Thanks, that solved my problem.
The installation of ZM is a hell :evil: