API Login - HTTP 500 - Call to undefined function apc_fetch()

Current Development version likely to have breaking changes
Post Reply
Eckat
Posts: 3
Joined: Wed Jun 28, 2023 9:04 am

API Login - HTTP 500 - Call to undefined function apc_fetch()

Post by Eckat »

Hello everyone!

Today I installed zoneminder on a new PC and I installed version 1.37.59 via the Ubuntu ppa.

After setting up the monitors it works fine for me.

I use fhem as my home automation system.
For the camera outside the house, I previously triggered it via a motion detector integrated in fhem. This minimized unnecessary triggering.

The fhem device for zoneminder cannot log in.
I have created a user with the correct (all) rights.

The request with the URL
http://192.168.20.123/zm/api/host/login ... stateful=1
is answered with error code 500.

The following can be found in the apache log:

Code: Select all

==> /var/log/apache2/error.log <==
[Wed Apr 24 22:17:39.472519 2024] [php:error] [pid 1129] [client 192.168.20.138:49608] PHP Fatal error:  Uncaught Error: Call to undefined function apc_fetch() in /usr/share/zoneminder/www/api/lib/Cake/Cache/Engine/ApcEngine.php:91
Stack trace:
#0 /usr/share/zoneminder/www/api/lib/Cake/Cache/Cache.php(363): ApcEngine->read()
#1 /usr/share/zoneminder/www/api/lib/Cake/I18n/I18n.php(235): Cache::read()
#2 /usr/share/zoneminder/www/api/lib/Cake/basics.php(636): I18n::translate()
#3 /usr/share/zoneminder/www/api/lib/Cake/Cache/Cache.php(181): __d()
#4 /usr/share/zoneminder/www/api/lib/Cake/Cache/Cache.php(151): Cache::_buildEngine()
#5 /usr/share/zoneminder/www/api/app/Config/core.php(370): Cache::config()
#6 /usr/share/zoneminder/www/api/lib/Cake/Core/Configure.php(72): include('...')
#7 /usr/share/zoneminder/www/api/lib/Cake/bootstrap.php(442): Configure::bootstrap()
#8 /usr/share/zoneminder/www/api/app/webroot/index.php(102): include('...')
#9 {main}
  thrown in /usr/share/zoneminder/www/api/lib/Cake/Cache/Engine/ApcEngine.php on line 91

==> /var/log/apache2/access.log <==
192.168.20.138 - - [24/Apr/2024:22:17:39 +0200] "GET /zm/api/host/login.json?user=fhem&pass=4711&stateful=1 HTTP/1.1" 500 185 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36"
Can anyone help here?
Many, many thanks for your work on zoneminder.

Best regards
Carsten
User avatar
iconnor
Posts: 2912
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: API Login - HTTP 500 - Call to undefined function apc_fetch()

Post by iconnor »

Post Reply