Notice (8): Trying to access array offset on value of type null [APP/Controller/Component/CAuthComponent.php, line 374]Code Context private static function getUserID()
{
return CakeSession::read('Auth.User')['id'];
CAuthComponent::getUserID() - APP/Controller/Component/CAuthComponent.php, line 374
CAuthComponent::checkACF() - APP/Controller/Component/CAuthComponent.php, line 383
CAuthComponent::__construct() - APP/Controller/Component/CAuthComponent.php, line 64
ComponentCollection::load() - CORE/Cake/Controller/ComponentCollection.php, line 116
ComponentCollection::init() - CORE/Cake/Controller/ComponentCollection.php, line 53
Controller::constructClasses() - CORE/Cake/Controller/Controller.php, line 649
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 188
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 126
Notice (8): Trying to access array offset on value of type null [APP/Controller/Component/CAuthComponent.php, line 374]Code Context private static function getUserID()
{
return CakeSession::read('Auth.User')['id'];
CAuthComponent::getUserID() - APP/Controller/Component/CAuthComponent.php, line 374
CAuthComponent::__construct() - APP/Controller/Component/CAuthComponent.php, line 65
ComponentCollection::load() - CORE/Cake/Controller/ComponentCollection.php, line 116
ComponentCollection::init() - CORE/Cake/Controller/ComponentCollection.php, line 53
Controller::constructClasses() - CORE/Cake/Controller/Controller.php, line 649
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 188
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 126
Notice (8): Trying to access array offset on value of type null [APP/Controller/Component/CAuthComponent.php, line 247]Code Context {
if (is_null($user_id)) {
return CakeSession::read('Auth.User')['role_id'];
$user_id = null
CAuthComponent::getUserRoleID() - APP/Controller/Component/CAuthComponent.php, line 247
CAuthComponent::__construct() - APP/Controller/Component/CAuthComponent.php, line 66
ComponentCollection::load() - CORE/Cake/Controller/ComponentCollection.php, line 116
ComponentCollection::init() - CORE/Cake/Controller/ComponentCollection.php, line 53
Controller::constructClasses() - CORE/Cake/Controller/Controller.php, line 649
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 188
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 126