Code Context
trigger_error($message, E_USER_DEPRECATED);
}
$message = 'ServerRequest::session() is deprecated. Use getSession() instead. The setter part will be removed. - /var/www/src/Template/Layout/default.ctp, line: 58
You can disable deprecation warnings by setting `Error.errorLevel` to `E_ALL & ~E_USER_DEPRECATED` in your config/app.php.'
$stackFrame = (int) 1
$trace = [
(int) 0 => [
'file' => '/var/www/vendor/cakephp/cakephp/src/Http/ServerRequest.php',
'line' => (int) 570,
'function' => 'deprecationWarning',
'args' => [
(int) 0 => 'ServerRequest::session() is deprecated. Use getSession() instead. The setter part will be removed.'
]
],
(int) 1 => [
'file' => '/var/www/src/Template/Layout/default.ctp',
'line' => (int) 58,
'function' => 'session',
'class' => 'Cake\Http\ServerRequest',
'object' => object(Cake\Http\ServerRequest) {},
'type' => '->',
'args' => []
],
(int) 2 => [
'file' => '/var/www/vendor/cakephp/cakephp/src/View/View.php',
'line' => (int) 1419,
'args' => [
(int) 0 => '/var/www/src/Template/Layout/default.ctp'
],
'function' => 'include'
],
(int) 3 => [
'file' => '/var/www/vendor/cakephp/cakephp/src/View/View.php',
'line' => (int) 1380,
'function' => '_evaluate',
'class' => 'Cake\View\View',
'object' => object(App\View\AppView) {},
'type' => '->',
'args' => [
(int) 0 => '/var/www/src/Template/Layout/default.ctp',
(int) 1 => [[maximum depth reached]]
]
],
(int) 4 => [
'file' => '/var/www/vendor/cakephp/cakephp/src/View/View.php',
'line' => (int) 927,
'function' => '_render',
'class' => 'Cake\View\View',
'object' => object(App\View\AppView) {},
'type' => '->',
'args' => [
(int) 0 => '/var/www/src/Template/Layout/default.ctp'
]
],
(int) 5 => [
'file' => '/var/www/vendor/cakephp/cakephp/src/View/View.php',
'line' => (int) 885,
'function' => 'renderLayout',
'class' => 'Cake\View\View',
'object' => object(App\View\AppView) {},
'type' => '->',
'args' => [
(int) 0 => '',
(int) 1 => 'default'
]
],
(int) 6 => [
'file' => '/var/www/vendor/cakephp/cakephp/src/Controller/Controller.php',
'line' => (int) 791,
'function' => 'render',
'class' => 'Cake\View\View',
'object' => object(App\View\AppView) {},
'type' => '->',
'args' => [
(int) 0 => null,
(int) 1 => null
]
],
(int) 7 => [
'file' => '/var/www/vendor/cakephp/cakephp/src/Http/ActionDispatcher.php',
'line' => (int) 126,
'function' => 'render',
'class' => 'Cake\Controller\Controller',
'object' => object(App\Controller\UsersController) {},
'type' => '->',
'args' => []
],
(int) 8 => [
'file' => '/var/www/vendor/cakephp/cakephp/src/Http/ActionDispatcher.php',
'line' => (int) 94,
'function' => '_invoke',
'class' => 'Cake\Http\ActionDispatcher',
'object' => object(Cake\Http\ActionDispatcher) {},
'type' => '->',
'args' => [
(int) 0 => object(App\Controller\UsersController) {}
]
],
(int) 9 => [
'file' => '/var/www/vendor/cakephp/cakephp/src/Http/BaseApplication.php',
'line' => (int) 235,
'function' => 'dispatch',
'class' => 'Cake\Http\ActionDispatcher',
'object' => object(Cake\Http\ActionDispatcher) {},
'type' => '->',
'args' => [
(int) 0 => object(Cake\Http\ServerRequest) {},
(int) 1 => object(Cake\Http\Response) {}
]
],
(int) 10 => [
'file' => '/var/www/vendor/cakephp/cakephp/src/Http/Runner.php',
'line' => (int) 65,
'function' => '__invoke',
'class' => 'Cake\Http\BaseApplication',
'object' => object(App\Application) {},
'type' => '->',
'args' => [
(int) 0 => object(Cake\Http\ServerRequest) {},
(int) 1 => object(Cake\Http\Response) {},
(int) 2 => object(Cake\Http\Runner) {}
]
],
(int) 11 => [
'file' => '/var/www/vendor/cakephp/cakephp/src/Http/Runner.php',
'line' => (int) 65,
'function' => '__invoke',
'class' => 'Cake\Http\Runner',
'object' => object(Cake\Http\Runner) {},
'type' => '->',
'args' => [
(int) 0 => object(Cake\Http\ServerRequest) {},
(int) 1 => object(Cake\Http\Response) {},
(int) 2 => object(Cake\Http\Runner) {}
]
],
(int) 12 => [
'file' => '/var/www/vendor/cakephp/cakephp/src/Http/Middleware/CsrfProtectionMiddleware.php',
'line' => (int) 104,
'function' => '__invoke',
'class' => 'Cake\Http\Runner',
'object' => object(Cake\Http\Runner) {},
'type' => '->',
'args' => [
(int) 0 => object(Cake\Http\ServerRequest) {},
(int) 1 => object(Cake\Http\Response) {}
]
],
(int) 13 => [
'file' => '/var/www/vendor/cakephp/cakephp/src/Http/Runner.php',
'line' => (int) 65,
'function' => '__invoke',
'class' => 'Cake\Http\Middleware\CsrfProtectionMiddleware',
'object' => object(Cake\Http\Middleware\CsrfProtectionMiddleware) {},
'type' => '->',
'args' => [
(int) 0 => object(Cake\Http\ServerRequest) {},
(int) 1 => object(Cake\Http\Response) {},
(int) 2 => object(Cake\Http\Runner) {}
]
],
(int) 14 => [
'file' => '/var/www/vendor/cakephp/cakephp/src/Http/Runner.php',
'line' => (int) 51,
'function' => '__invoke',
'class' => 'Cake\Http\Runner',
'object' => object(Cake\Http\Runner) {},
'type' => '->',
'args' => [
(int) 0 => object(Cake\Http\ServerRequest) {},
(int) 1 => object(Cake\Http\Response) {}
]
],
(int) 15 => [
'file' => '/var/www/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php',
'line' => (int) 168,
'function' => 'run',
'class' => 'Cake\Http\Runner',
'object' => object(Cake\Http\Runner) {},
'type' => '->',
'args' => [
(int) 0 => object(Cake\Http\MiddlewareQueue) {},
(int) 1 => object(Cake\Http\ServerRequest) {},
(int) 2 => object(Cake\Http\Response) {}
]
],
(int) 16 => [
'file' => '/var/www/vendor/cakephp/cakephp/src/Http/Runner.php',
'line' => (int) 65,
'function' => '__invoke',
'class' => 'Cake\Routing\Middleware\RoutingMiddleware',
'object' => object(Cake\Routing\Middleware\RoutingMiddleware) {},
'type' => '->',
'args' => [
(int) 0 => object(Cake\Http\ServerRequest) {},
(int) 1 => object(Cake\Http\Response) {},
(int) 2 => object(Cake\Http\Runner) {}
]
],
(int) 17 => [
'file' => '/var/www/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php',
'line' => (int) 88,
'function' => '__invoke',
'class' => 'Cake\Http\Runner',
'object' => object(Cake\Http\Runner) {},
'type' => '->',
'args' => [
(int) 0 => object(Cake\Http\ServerRequest) {},
(int) 1 => object(Cake\Http\Response) {}
]
],
(int) 18 => [
'file' => '/var/www/vendor/cakephp/cakephp/src/Http/Runner.php',
'line' => (int) 65,
'function' => '__invoke',
'class' => 'Cake\Routing\Middleware\AssetMiddleware',
'object' => object(Cake\Routing\Middleware\AssetMiddleware) {},
'type' => '->',
'args' => [
(int) 0 => object(Cake\Http\ServerRequest) {},
(int) 1 => object(Cake\Http\Response) {},
(int) 2 => object(Cake\Http\Runner) {}
]
],
(int) 19 => [
'file' => '/var/www/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php',
'line' => (int) 96,
'function' => '__invoke',
'class' => 'Cake\Http\Runner',
'object' => object(Cake\Http\Runner) {},
'type' => '->',
'args' => [
(int) 0 => object(Cake\Http\ServerRequest) {},
(int) 1 => object(Cake\Http\Response) {}
]
],
(int) 20 => [
'file' => '/var/www/vendor/cakephp/cakephp/src/Http/Runner.php',
'line' => (int) 65,
'function' => '__invoke',
'class' => 'Cake\Error\Middleware\ErrorHandlerMiddleware',
'object' => object(Cake\Error\Middleware\ErrorHandlerMiddleware) {},
'type' => '->',
'args' => [
(int) 0 => object(Cake\Http\ServerRequest) {},
(int) 1 => object(Cake\Http\Response) {},
(int) 2 => object(Cake\Http\Runner) {}
]
],
(int) 21 => [
'file' => '/var/www/vendor/cakephp/cakephp/src/Http/Runner.php',
'line' => (int) 51,
'function' => '__invoke',
'class' => 'Cake\Http\Runner',
'object' => object(Cake\Http\Runner) {},
'type' => '->',
'args' => [
(int) 0 => object(Cake\Http\ServerRequest) {},
(int) 1 => object(Cake\Http\Response) {}
]
],
(int) 22 => [
'file' => '/var/www/vendor/cakephp/cakephp/src/Http/Server.php',
'line' => (int) 98,
'function' => 'run',
'class' => 'Cake\Http\Runner',
'object' => object(Cake\Http\Runner) {},
'type' => '->',
'args' => [
(int) 0 => object(Cake\Http\MiddlewareQueue) {},
(int) 1 => object(Cake\Http\ServerRequest) {},
(int) 2 => object(Cake\Http\Response) {}
]
],
(int) 23 => [
'file' => '/var/www/webroot/index.php',
'line' => (int) 40,
'function' => 'run',
'class' => 'Cake\Http\Server',
'object' => object(Cake\Http\Server) {},
'type' => '->',
'args' => []
]
]
$frame = [
'file' => '/var/www/src/Template/Layout/default.ctp',
'line' => (int) 58,
'function' => 'session',
'class' => 'Cake\Http\ServerRequest',
'object' => object(Cake\Http\ServerRequest) {
trustProxy => false
[protected] params => [
[maximum depth reached]
]
[protected] data => [[maximum depth reached]]
[protected] query => [[maximum depth reached]]
[protected] cookies => [[maximum depth reached]]
[protected] _environment => [
[maximum depth reached]
]
[protected] url => 'users/login'
[protected] base => ''
[protected] webroot => '/'
[protected] here => '/users/login'
[protected] trustedProxies => [[maximum depth reached]]
[protected] _input => null
[protected] _detectors => [
[maximum depth reached]
]
[protected] _detectorCache => [
[maximum depth reached]
]
[protected] stream => object(Zend\Diactoros\PhpInputStream) {}
[protected] uri => object(Zend\Diactoros\Uri) {}
[protected] session => object(Cake\Http\Session) {}
[protected] attributes => [[maximum depth reached]]
[protected] emulatedAttributes => [
[maximum depth reached]
]
[protected] uploadedFiles => [[maximum depth reached]]
[protected] protocol => null
[protected] requestTarget => null
[private] deprecatedProperties => [
[maximum depth reached]
]
},
'type' => '->',
'args' => []
]
deprecationWarning - CORE/src/Core/functions.php, line 311
Cake\Http\ServerRequest::session() - CORE/src/Http/ServerRequest.php, line 570
include - APP/Template/Layout/default.ctp, line 58
Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1419
Cake\View\View::_render() - CORE/src/View/View.php, line 1380
Cake\View\View::renderLayout() - CORE/src/View/View.php, line 927
Cake\View\View::render() - CORE/src/View/View.php, line 885
Cake\Controller\Controller::render() - CORE/src/Controller/Controller.php, line 791
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 126
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 94
Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 235
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Http\Middleware\CsrfProtectionMiddleware::__invoke() - CORE/src/Http/Middleware/CsrfProtectionMiddleware.php, line 104
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Http\Runner::run() - CORE/src/Http/Runner.php, line 51