ZM 1.34.22 - API not working, CakePHP error in Apache Error Log
Posted: Tue Dec 08, 2020 11:20 am
Just upgraded to ZM 1.34.22 from 1.32 using the PPA.
I've never had to use the API before, but I do want to get zmNinja working so I can sort out remote access to site cameras for some members of staff. Attempting to access the API returns an Error 500 and the following is dropped in the web server log.
Is something not installed correctly or corrupted and what can I do to resolve it?
edit - PHP is 7.4.13, Ubuntu is 18.04. ZM Web UI is working just fine.
edit 2 - ah ha. Same solution as here - viewtopic.php?p=109497#p109497. Apache was using wrong PHP version!
I've never had to use the API before, but I do want to get zmNinja working so I can sort out remote access to site cameras for some members of staff. Attempting to access the API returns an Error 500 and the following is dropped in the web server log.
Code: Select all
PHP Fatal error: Uncaught Error: Call to undefined function apc_fetch() in /usr/share/zoneminder/www/api/lib/Cake/Cache/Engine/ApcEngine.php on line 91
edit - PHP is 7.4.13, Ubuntu is 18.04. ZM Web UI is working just fine.
edit 2 - ah ha. Same solution as here - viewtopic.php?p=109497#p109497. Apache was using wrong PHP version!