PHP7 issues with ZM API (due to bundled CakePHP 2.5-RC)

Forum for questions and support relating to the 1.29.x releases only.
felixita
Posts: 28
Joined: Tue Feb 09, 2016 12:35 pm

Re: PHP7 issues with ZM API (due to bundled CakePHP 2.5-RC)

Post by felixita »

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.
Attachments
zm_ninja_error.png
zm_ninja_error.png (12.77 KiB) Viewed 3084 times
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: PHP7 issues with ZM API (due to bundled CakePHP 2.5-RC)

Post by asker »

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

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

Post by SteveGilvarry »

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

Re: PHP7 issues with ZM API (due to bundled CakePHP 2.5-RC)

Post by asker »

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
felixita
Posts: 28
Joined: Tue Feb 09, 2016 12:35 pm

Re: PHP7 issues with ZM API (due to bundled CakePHP 2.5-RC)

Post by felixita »

I Confirm that Zm-Ninja work out of the box on zoneminder 1.29.1 on Arch linux (php7)
Locked