Can't add monitor, missing mootools

Forum for questions and support relating to the 1.25.x releases only.
Locked
DrBergie
Posts: 5
Joined: Sat Nov 02, 2013 3:03 pm

Can't add monitor, missing mootools

Post by DrBergie »

Hallo,
I got the installation working, but now I am stuck with the mootools not being found on my server. I followed Ubuntu http://www.zoneminder.com/wiki/index.ph ... e_easy_way giude , had to turn on the short_open_tag setting in /etc/php5/apache2/php.ini as per http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=711413 So the server is running, and so is zoneminder.

When the page is being serverd however, it 404s on mootools

Code: Select all

NetworkError: 404 Not Found - pathtomyserver/javascript/mootools/mootools-more-nc.js
When looking at the file /usr/share/zoneminder/skins/classic/includes/functions.php it refers to "/javascript/mootools/mootools-more-nc.js" nothing relative. I have package libjs-mootools installed, so the folder /usr/share/javascript/mootools exists, and does seem to contain the correct files.

I am using Ubuntu 13.04 and installed version 1.25.0 of ZoneMinder.

What is missing? Did a package not install correctly? Any easy way to fix this?
DrBergie
Posts: 5
Joined: Sat Nov 02, 2013 3:03 pm

Re: Can't add monitor, missing mootools

Post by DrBergie »

Go this working with adding the following file

Code: Select all

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        DocumentRoot /usr/share/javascript/mootools

        # From URL WITHHELD server path
        ServerPath /javascript/mootools/
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
to the folder /etc/apache2/sites-enabled/ Any filename will do.

I can add a monitor now!
Stef
Posts: 6
Joined: Fri Jun 01, 2012 4:57 am

Re: Can't add monitor, missing mootools

Post by Stef »

I have recently updated to 1.26.5 and have also ran into the "Missing MooTools" problem.

The apache2 error log contained:

Code: Select all

File does not exist: /usr/share/zoneminder/tools/mootools/mootools-core.js, referer: http://192.168.200.123/zm/
File does not exist: /usr/share/zoneminder/tools/mootools/mootools-more.js, referer: http://192.168.200.123/zm
Under/usr/share/zoneminder/tools/mootools/ the files were:
mootools-core-1.3.2-nc.js mootools-core-1.3.2-yc.js mootools-more-1.3.2.1-nc.js mootools-more-1.3.2.1-yc.js

I am not sure what the difference is between the nc & yc versions however I just linked to the missing files:

Code: Select all

#cd /usr/share/zoneminder/tools/mootools/
#ln -s mootools-core-1.3.2-nc.js ./mootools-core.js
# ln -s mootools-more-1.3.2.1-nc.js ./mootools-more.js
Regards,
Stef
User avatar
snake
Posts: 337
Joined: Sat May 21, 2016 2:20 am

Re: Can't add monitor, missing mootools

Post by snake »

I have had the missing mootools error when using a webkit based browser.

Using a different browser, or updating, rebuilding, and recompiling the webkit browser fixed the issue.
User avatar
snake
Posts: 337
Joined: Sat May 21, 2016 2:20 am

Re: Can't add monitor, missing mootools

Post by snake »

This occurred again. I reboot the zm server but the error remained.

I deleted the cache and any cookies of the webkit browser (in home folder). I also reboot the client computer. The error disappeared.
Locked