API issue? and no Montage review...........

Forum for questions and support relating to the 1.30.x releases only.
Post Reply
dtruesdale
Posts: 11
Joined: Tue Apr 19, 2016 9:04 pm

API issue? and no Montage review...........

Post by dtruesdale » Wed Aug 10, 2016 11:53 pm

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.

User avatar
asker
Posts: 1106
Joined: Sun Mar 01, 2015 12:12 pm

Re: API issue? and no Montage review...........

Post by asker » Wed Aug 10, 2016 11:59 pm

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)
--
My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

dtruesdale
Posts: 11
Joined: Tue Apr 19, 2016 9:04 pm

Re: API issue? and no Montage review...........

Post by dtruesdale » Thu Aug 11, 2016 12:06 am

Since your assuming it is an approximate message like my wife does maybe this will clarify it visually..................


Image

Hope that clarifies it?

User avatar
asker
Posts: 1106
Joined: Sun Mar 01, 2015 12:12 pm

Re: API issue? and no Montage review...........

Post by asker » Thu Aug 11, 2016 1:20 am

Your wife is obviously smart.

Exact content == screenshot of address bar too.

Also exactly how did you upgrade?
--
My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

dtruesdale
Posts: 11
Joined: Tue Apr 19, 2016 9:04 pm

Re: API issue? and no Montage review...........

Post by dtruesdale » Thu Aug 11, 2016 1:56 pm

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).

User avatar
asker
Posts: 1106
Joined: Sun Mar 01, 2015 12:12 pm

Re: API issue? and no Montage review...........

Post by asker » Thu Aug 11, 2016 3:54 pm

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)
--
My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

dtruesdale
Posts: 11
Joined: Tue Apr 19, 2016 9:04 pm

Re: API issue? and no Montage review...........

Post by dtruesdale » Fri Aug 19, 2016 12:27 pm

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests