php7 error
Posted: Thu Aug 23, 2018 9:20 am
I updated my zm from 1.30.2 to 1.30.4. I run it on openSuSE Leap 42.3 and use SUSE packages.
zm 1.30.2 used php5 and I haven't any problem, zmninja could connect to zm, cakephp worked fine. After update cakephp doesn't work me, zmninja can't connect to zm 1.30.4. zmninja message was "Login validated but API failed".
I get error messages in apache2's error.log:
[Wed Aug 22 22:03:19.833600 2018] [php7:error] [pid 11373] [client 192.168.1.2:55116] PHP Fatal error: Uncaught Error: Call to undefined function apc_fetch() in /srv/www/htdocs/zm/api/lib/Cake/Cache/Engine/ApcEngine.php:78\nStack trace:\n#0 /srv/www/htdocs/zm/api/lib/Cake/Cache/Cache.php(363): ApcEngine->read('myapp_cake_core...')\n#1 /srv/www/htdocs/zm/api/lib/Cake/I18n/I18n.php(235): Cache::read('cake_dev_hu', '_cake_core_')\n#2 /srv/www/htdocs/zm/api/lib/Cake/basics.php(636): I18n::translate('Cache engine "%...', NULL, 'cake_dev')\n#3 /srv/www/htdocs/zm/api/lib/Cake/Cache/Cache.php(184): __d('cake_dev', 'Cache engine "%...', '_cake_core_')\n#4 /srv/www/htdocs/zm/api/lib/Cake/Cache/Cache.php(151): Cache::_buildEngine('_cake_core_')\n#5 /srv/www/htdocs/zm/api/app/Config/core.php(375): Cache::config('_cake_core_', Array)\n#6 /srv/www/htdocs/zm/api/lib/Cake/Core/Configure.php(72): include('/srv/www/htdocs...')\n#7 /srv/www/htdocs/zm/api/lib/Cake/bootstrap.php(434): Configure::bootstrap(true)\n#8 /srv/www/htdocs/zm/api/app/webroot/index.php(90): include('/srv/www/htdocs...')\n#9 {main}\n thrown in /srv/www/htdocs/zm/api/lib/Cake/Cache/Engine/ApcEngine.php on line 78
I tried to test cakephp by http://serverip/zm/api/host/getVersion.json, http://serverip/zm/ap, http://serverip/zm/api/monitors.json but I get a blank page and same as error in apache2's error.log than zmninja connection.
I browsed this forum and all internet but I didn't find any solution. Can someone help me?
zm 1.30.2 used php5 and I haven't any problem, zmninja could connect to zm, cakephp worked fine. After update cakephp doesn't work me, zmninja can't connect to zm 1.30.4. zmninja message was "Login validated but API failed".
I get error messages in apache2's error.log:
[Wed Aug 22 22:03:19.833600 2018] [php7:error] [pid 11373] [client 192.168.1.2:55116] PHP Fatal error: Uncaught Error: Call to undefined function apc_fetch() in /srv/www/htdocs/zm/api/lib/Cake/Cache/Engine/ApcEngine.php:78\nStack trace:\n#0 /srv/www/htdocs/zm/api/lib/Cake/Cache/Cache.php(363): ApcEngine->read('myapp_cake_core...')\n#1 /srv/www/htdocs/zm/api/lib/Cake/I18n/I18n.php(235): Cache::read('cake_dev_hu', '_cake_core_')\n#2 /srv/www/htdocs/zm/api/lib/Cake/basics.php(636): I18n::translate('Cache engine "%...', NULL, 'cake_dev')\n#3 /srv/www/htdocs/zm/api/lib/Cake/Cache/Cache.php(184): __d('cake_dev', 'Cache engine "%...', '_cake_core_')\n#4 /srv/www/htdocs/zm/api/lib/Cake/Cache/Cache.php(151): Cache::_buildEngine('_cake_core_')\n#5 /srv/www/htdocs/zm/api/app/Config/core.php(375): Cache::config('_cake_core_', Array)\n#6 /srv/www/htdocs/zm/api/lib/Cake/Core/Configure.php(72): include('/srv/www/htdocs...')\n#7 /srv/www/htdocs/zm/api/lib/Cake/bootstrap.php(434): Configure::bootstrap(true)\n#8 /srv/www/htdocs/zm/api/app/webroot/index.php(90): include('/srv/www/htdocs...')\n#9 {main}\n thrown in /srv/www/htdocs/zm/api/lib/Cake/Cache/Engine/ApcEngine.php on line 78
I tried to test cakephp by http://serverip/zm/api/host/getVersion.json, http://serverip/zm/ap, http://serverip/zm/api/monitors.json but I get a blank page and same as error in apache2's error.log than zmninja connection.
I browsed this forum and all internet but I didn't find any solution. Can someone help me?