Page 1 of 1
API issue? and no Montage review...........
Posted: Wed Aug 10, 2016 11:53 pm
by dtruesdale
Zmninja will not work with zoneminder. I was asked to check API and this is what I was given from the check:
Missing Controller
Error: ZmController could not be found.
Error: Create the class ZmController below in file: app/Controller/ZmController.php
this is not there unless it was renamed ZonesController.php
I also get a blank Montage review even in Live. In Montage I have video and cycle I have video.
Re: API issue? and no Montage review...........
Posted: Wed Aug 10, 2016 11:59 pm
by asker
Hi,
please don't mix zmNinja with ZoneMinder yet. If your APIs are not configured, then lets figure that out first. Then we can talk about zmNinja.
1. Open your browser
2 Type in server/zm/api (replace server with your ZM address)
3. Please post a screenshot (please don't post approximate messages - please post exact content)
Re: API issue? and no Montage review...........
Posted: Thu Aug 11, 2016 12:06 am
by dtruesdale
Since your assuming it is an approximate message like my wife does maybe this will clarify it visually..................
Hope that clarifies it?
Re: API issue? and no Montage review...........
Posted: Thu Aug 11, 2016 1:20 am
by asker
Your wife is obviously smart.
Exact content == screenshot of address bar too.
Also exactly how did you upgrade?
Re: API issue? and no Montage review...........
Posted: Thu Aug 11, 2016 1:56 pm
by dtruesdale
Did not upgrade fresh install. Was hoping to avoid these issues.This is what is in the address bar:
http://domain-name/zm/api/ (domain-name in place of actual domain).
Re: API issue? and no Montage review...........
Posted: Thu Aug 11, 2016 3:54 pm
by asker
So this looks like a case of bad routing. for whatever reason, /zm/api is being treated by the API as a controller (zm) whereas it should not
Question:
1. When go to "
http://domain-name/zm" --> is that the URL for your ZM portal or is it "
http://domain-name" ?
2. Can you point me to the instructions you followed for your new install
3. Did you install from a package, or from source?
4. Please post information on your OS as well
5. Are you using apache or some other web server
6. Go to /usr/share/zoneminder/www/api (this is typically the path if you installed from a package) and please post contents of ".htaccess" file (also please post contents of .htaccess in api/app)
Re: API issue? and no Montage review...........
Posted: Fri Aug 19, 2016 12:27 pm
by dtruesdale
Ok marked this solved. I went and did a fresh install with Ubuntu (other install was on OpenSuse 42.1 and seems the rpm is not setup right for install) and it works as long as I use it in the internal network. When accessed from outside it let's me in the console but will not let me view more than one stream in montage and the same with cycle. Trying to figure this out now.