API - troubleshooting help request
Posted: Mon Jun 27, 2016 3:03 pm
Running CentOs 6.6 with a recent upgrade to ZM 1.29. I use DNSexit for DDNS so I can check events from remote computers but can't seem to get
web access via my Android phone. Browsers on the phone error out with "This site can't be reached" "ERR_CONNECTION REFUSED". I believe this is due to the self generated certificate being rejected due to my employer's security requirements.
So I would like to get ZMNinja working. I can get the Windows app to reach the installation but I get "Login validated but API failed. After searching around, I see that CentOs requires an update to PHP which I did. I also found a posting with the identical error message and it refers to:
https://github.com/pliablepixels/zmNinj ... -apis-work
Accessing this url I found a referral to "Bill Bunge's ubuntu page for Zoneminder " Had to hunt around a bit but did find a link in the FAQ section that referred me back to the pliablepixels/ZMNinja wiki where I did find info on upgrading PHP which I followed.
So here I am, if I try to connect to the API (https://<server>/zm/api) I get this error. "Error: syntax error, unexpected T_USE, expecting T_FUNCTION
File: /usr/share/zoneminder/www/api/app/Controller/AppController.php
Line: 34"
Where do I go from here?
Thank you!
KK
web access via my Android phone. Browsers on the phone error out with "This site can't be reached" "ERR_CONNECTION REFUSED". I believe this is due to the self generated certificate being rejected due to my employer's security requirements.
So I would like to get ZMNinja working. I can get the Windows app to reach the installation but I get "Login validated but API failed. After searching around, I see that CentOs requires an update to PHP which I did. I also found a posting with the identical error message and it refers to:
https://github.com/pliablepixels/zmNinj ... -apis-work
Accessing this url I found a referral to "Bill Bunge's ubuntu page for Zoneminder " Had to hunt around a bit but did find a link in the FAQ section that referred me back to the pliablepixels/ZMNinja wiki where I did find info on upgrading PHP which I followed.
So here I am, if I try to connect to the API (https://<server>/zm/api) I get this error. "Error: syntax error, unexpected T_USE, expecting T_FUNCTION
File: /usr/share/zoneminder/www/api/app/Controller/AppController.php
Line: 34"
Where do I go from here?
Thank you!
KK