Ok, i've tried to comment the following lines in api/config/app.php:
//'Security' => [
// 'salt' => '__SALT__',
//],
Security.salt error is vanished but when i try to connect ZM with zm-ninja i get an api error.
PHP7 issues with ZM API (due to bundled CakePHP 2.5-RC)
Re: PHP7 issues with ZM API (due to bundled CakePHP 2.5-RC)
- Attachments
-
- zm_ninja_error.png (12.77 KiB) Viewed 3084 times
Re: PHP7 issues with ZM API (due to bundled CakePHP 2.5-RC)
You can't comment those lines - add a random value instead. And I'd recommend you don't fiddle with zmNinja yet. If your APIs are not working, zmNinja won't work.felixita wrote:Ok, i've tried to comment the following lines in api/config/app.php:
//'Security' => [
// 'salt' => '__SALT__',
//],
Security.salt error is vanished but when i try to connect ZM with zm-ninja i get an api error.
Get to a point where on your browser http://server/zm/api/monitors.json works
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
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
-
- Posts: 494
- Joined: Sun Jun 29, 2014 1:12 pm
- Location: Melbourne, AU
Re: PHP7 issues with ZM API (due to bundled CakePHP 2.5-RC)
Swapped lib folder for CakePHP 2.8.0, worked in PHP 5.5. Updated to php 7 using PPA and confirmed that API still working. Pull request submitted for 2.8.0 update.
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
Random Selection of Cameras (Dahua and Hikvision)
Re: PHP7 issues with ZM API (due to bundled CakePHP 2.5-RC)
very cool - thanks for giving it a go, Steve
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
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
Re: PHP7 issues with ZM API (due to bundled CakePHP 2.5-RC)
I Confirm that Zm-Ninja work out of the box on zoneminder 1.29.1 on Arch linux (php7)