API not working after an upgrade
Posted: Tue Jul 02, 2019 10:02 pm
Hello,
I upgraded some software on my Ubuntu 18.04 server, and then tried logging into Zoneminder 1.32 afterwards, and I managed to break something that appears to be related to the API, and am unable to login without editing /etc/zm/zm.conf and adding line:
I've tried stumbling through the forums, but I think I'm just making things worse. Would someone be able to point me in the right direction?
http://ip/zm/api/ displays:
Notice (8): Constant ZM_OPT_USE_AUTH already defined [/usr/share/zoneminder/www/includes/config.php, line 173]
define - [internal], line ??
loadConfig - /usr/share/zoneminder/www/includes/config.php, line 173
require_once - /usr/share/zoneminder/www/includes/config.php, line 140
include - APP/Config/bootstrap.php, line 123
Configure::bootstrap() - CORE/Cake/Core/Configure.php, line 98
include - CORE/Cake/bootstrap.php, line 442
[main] - APP/webroot/index.php, line 90
Warning (2): ini_set() [<a href='http://php.net/function.ini-set'>function.ini-set</a>]: Headers already sent. You cannot change the session module's ini settings at this time [CORE/Cake/Model/Datasource/CakeSession.php, line 581]
ini_set - [internal], line ??
CakeSession::_configureSession() - CORE/Cake/Model/Datasource/CakeSession.php, line 581
CakeSession::_cookieName() - CORE/Cake/Model/Datasource/CakeSession.php, line 619
CakeSession::_hasSession() - CORE/Cake/Model/Datasource/CakeSession.php, line 632
CakeSession::read() - CORE/Cake/Model/Datasource/CakeSession.php, line 404
SessionComponent::read() - CORE/Cake/Controller/Component/SessionComponent.php, line 69
AppController::beforeFilter() - APP/Controller/AppController.php, line 70
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 243
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 677
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 189
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 107
I upgraded some software on my Ubuntu 18.04 server, and then tried logging into Zoneminder 1.32 afterwards, and I managed to break something that appears to be related to the API, and am unable to login without editing /etc/zm/zm.conf and adding line:
Code: Select all
ZM_OPT_USE_AUTH=1
http://ip/zm/api/ displays:
Notice (8): Constant ZM_OPT_USE_AUTH already defined [/usr/share/zoneminder/www/includes/config.php, line 173]
define - [internal], line ??
loadConfig - /usr/share/zoneminder/www/includes/config.php, line 173
require_once - /usr/share/zoneminder/www/includes/config.php, line 140
include - APP/Config/bootstrap.php, line 123
Configure::bootstrap() - CORE/Cake/Core/Configure.php, line 98
include - CORE/Cake/bootstrap.php, line 442
[main] - APP/webroot/index.php, line 90
Warning (2): ini_set() [<a href='http://php.net/function.ini-set'>function.ini-set</a>]: Headers already sent. You cannot change the session module's ini settings at this time [CORE/Cake/Model/Datasource/CakeSession.php, line 581]
ini_set - [internal], line ??
CakeSession::_configureSession() - CORE/Cake/Model/Datasource/CakeSession.php, line 581
CakeSession::_cookieName() - CORE/Cake/Model/Datasource/CakeSession.php, line 619
CakeSession::_hasSession() - CORE/Cake/Model/Datasource/CakeSession.php, line 632
CakeSession::read() - CORE/Cake/Model/Datasource/CakeSession.php, line 404
SessionComponent::read() - CORE/Cake/Controller/Component/SessionComponent.php, line 69
AppController::beforeFilter() - APP/Controller/AppController.php, line 70
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 243
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 677
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 189
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 107