API not working on fedora 28

Forum for questions and support relating to the 1.30.x releases only.
Locked
apbran
Posts: 3
Joined: Sat Oct 11, 2003 6:21 am

API not working on fedora 28

Post by apbran »

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 ?
bbunge
Posts: 2956
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: API not working on fedora 28

Post by bbunge »

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
apbran
Posts: 3
Joined: Sat Oct 11, 2003 6:21 am

Re: API not working on fedora 28

Post by apbran »

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. :D
Locked