I upgraded Fedora from 27 to 28 and the API has stopped working so zmNinja reports that it's authenticated but the API is not correctly configured.
The RPM is zoneminder-1.30.4-7.fc28.x86_64 from the RPM fusion repository.
I wondered if it was something in my upgrade so I erased the zoneminder RPM and reinstalled it and it's still the same. The web interface works fine but the API doesn't.
As a further check I've installed F 28 onto a virtualbox VM and installed zoneminder using the RPMFusion route and its the same. All API calls get a blank screen and 500 in the HTTP access log.
I have found some posts saying that there is a problem with the version of Cake when using PHP7 .
/usr/share/zoneminder/www/api/lib/Cake/VERSION.txt says 2.8.0 and the PHP rpm is php-7.2.9-1.fc28.x86_64 .
Where to go from here ? Has anyone any ideas ?
API not working on fedora 28
Re: API not working on fedora 28
Had the same issue with Ubuntu. Have an API "fix" if you want to try to patch it to RH:
https://drive.google.com/file/d/1QjvVeS ... sp=sharing
https://drive.google.com/file/d/1QjvVeS ... sp=sharing
Re: API not working on fedora 28
Api-fixed indeed. That's marvellous bbunge. Thanks so much.
Have you raised a pull request on https://github.com/ZoneMinder/zoneminder ?
That should be incorporated into the code.
I'm guessing that's upgraded Cake to 2.10.8 judging by the VERSION.txt file.
Have you raised a pull request on https://github.com/ZoneMinder/zoneminder ?
That should be incorporated into the code.
I'm guessing that's upgraded Cake to 2.10.8 judging by the VERSION.txt file.