API Error

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
Bkmar1192
Posts: 2
Joined: Thu Feb 01, 2018 2:26 pm

API Error

Post by Bkmar1192 »

I am not able to get the ZM api working. when I got to http://myip/zm/api/host/getVersion.json in a web browser I get:

dispatch( new CakeRequest(), new CakeResponse() );

If I use curl nothing is returned.

the /var/log/apache2/error.log shows the following error:

[php7:error] [pid 10460] [client 192.168.1.190:57560] PHP Fatal error: Uncaught Error: Call to undefined function apc_fetch() in /usr/share/zoneminder/www/api/lib/Cake/Cache/Engine/ApcEngine.php:91\nStack trace:\n#0 /usr/share/zoneminder/www/api/lib/Cake/Cache/Cache.php(363): ApcEngine->read()\n#1 /usr/share/zoneminder/www/api/lib/Cake/I18n/I18n.php(235): Cache::read()\n#2 /usr/share/zoneminder/www/api/lib/Cake/basics.php(636): I18n::translate()\n#3 /usr/share/zoneminder/www/api/lib/Cake/Cache/Cache.php(182): __d()\n#4 /usr/share/zoneminder/www/api/lib/Cake/Cache/Cache.php(151): Cache::_buildEngine()\n#5 /usr/share/zoneminder/www/api/app/Config/core.php(375): Cache::config()\n#6 /usr/share/zoneminder/www/api/lib/Cake/Core/Configure.php(72): include('/usr/share/zone...')\n#7 /usr/share/zoneminder/www/api/lib/Cake/bootstrap.php(442): Configure::bootstrap()\n#8 /usr/share/zoneminder/www/api/app/webroot/index.php(102): include('/usr/share/zone...')\n#9 {main}\n thrown in /usr/share/zoneminder/www/api/lib/Cake/Cache/Engine/ApcEngine.php on line 91


Any suggested help?
Bkmar1192
Posts: 2
Joined: Thu Feb 01, 2018 2:26 pm

Re: API Error

Post by Bkmar1192 »

fixed by adding the following to the /etc/php/7.4/apache2/php.ini

extension=apcu.so
Post Reply