Notice (8): Trying to get property 'enabled' of non-object [APP/Controller/UsersController.php, line 150]Code Context
if($subject->enabled != 1 && $subject->enabled != "1") {
return $this->redirect(['controller' => 'Users', 'action' => 'showIndex']);
$sid = '61'
$session = object(Cake\Http\Session) {
[protected] _engine => null
[protected] _started => true
[protected] _lifetime => (int) 1440
[protected] _isCLI => false
}
$subjectsTable = object(ECUdS\Model\Table\SubjectsTable) {
'registryAlias' => 'Subjects',
'table' => 'subjects',
'alias' => 'Subjects',
'entityClass' => 'ECUdS\Model\Entity\Subject',
'associations' => [],
'behaviors' => [],
'defaultConnection' => 'default',
'connectionName' => 'default'
}
$subject = null
ECUdS\Controller\UsersController::showIntro() - APP/Controller/UsersController.php, line 150
Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 610
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 120
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 94
Cake\Routing\Dispatcher::dispatch() - CORE/src/Routing/Dispatcher.php, line 67
[main] - ROOT/webroot/index.php, line 37
Notice (8): Trying to get property 'enabled' of non-object [APP/Controller/UsersController.php, line 150]Code Context
if($subject->enabled != 1 && $subject->enabled != "1") {
return $this->redirect(['controller' => 'Users', 'action' => 'showIndex']);
$sid = '61'
$session = object(Cake\Http\Session) {
[protected] _engine => null
[protected] _started => true
[protected] _lifetime => (int) 1440
[protected] _isCLI => false
}
$subjectsTable = object(ECUdS\Model\Table\SubjectsTable) {
'registryAlias' => 'Subjects',
'table' => 'subjects',
'alias' => 'Subjects',
'entityClass' => 'ECUdS\Model\Entity\Subject',
'associations' => [],
'behaviors' => [],
'defaultConnection' => 'default',
'connectionName' => 'default'
}
$subject = null
ECUdS\Controller\UsersController::showIntro() - APP/Controller/UsersController.php, line 150
Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 610
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 120
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 94
Cake\Routing\Dispatcher::dispatch() - CORE/src/Routing/Dispatcher.php, line 67
[main] - ROOT/webroot/index.php, line 37