Page 2 of 2

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

Posted: Tue Feb 16, 2016 8:25 pm
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.

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

Posted: Tue Feb 16, 2016 8:38 pm
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

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

Posted: Thu Feb 25, 2016 1:52 pm
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.

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

Posted: Thu Feb 25, 2016 3:22 pm
by asker
very cool - thanks for giving it a go, Steve

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

Posted: Sun Apr 10, 2016 5:54 pm
by felixita
I Confirm that Zm-Ninja work out of the box on zoneminder 1.29.1 on Arch linux (php7)