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

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

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

Post 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.
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

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

Post 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)
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
dtruesdale
Posts: 11
Joined: Tue Apr 19, 2016 9:04 pm

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

Post by dtruesdale »

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: 1553
Joined: Sun Mar 01, 2015 12:12 pm

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

Post by asker »

Your wife is obviously smart.

Exact content == screenshot of address bar too.

Also exactly how did you upgrade?
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
dtruesdale
Posts: 11
Joined: Tue Apr 19, 2016 9:04 pm

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

Post 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).
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

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

Post 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)
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
dtruesdale
Posts: 11
Joined: Tue Apr 19, 2016 9:04 pm

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

Post 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.
Locked