Notice (8): Trying to get property of non-object [APP/Controller/NewsController.php, line 78]Code Context
}catch (\Exception $e) {
return $this->redirect('/'.$this->pslSite->psl_slug_city.'/noticias');
$slug = 'cafe-de-ideias-_-projeto-chega-ao-municipio-de-ibiuna'
$e = object(Cake\Datasource\Exception\RecordNotFoundException) {
[protected] _defaultCode => (int) 404
[protected] _attributes => []
[protected] _messageTemplate => ''
[protected] _responseHeaders => null
[protected] message => 'Record not found in table "news"'
[protected] code => (int) 404
[protected] file => '/home/edvaldo/lib-vsv/vendor/cakephp/cakephp/src/Datasource/QueryTrait.php'
[protected] line => (int) 428
}App\Controller\NewsController::view() - APP/Controller/NewsController.php, line 78
Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 441
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 119
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 93
Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 103
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Http\Middleware\CsrfProtectionMiddleware::__invoke() - CORE/src/Http/Middleware/CsrfProtectionMiddleware.php, line 102
App\Application::App\{closure}() - APP/Application.php, line 67
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\AssetMiddleware::__invoke() - CORE/src/Routing/Middleware/AssetMiddleware.php, line 88
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\RoutingMiddleware::__invoke() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 107
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Http\Runner::run() - CORE/src/Http/Runner.php, line 51
Cake\Http\Server::run() - CORE/src/Http/Server.php, line 81
[main] - ROOT/webroot/index.php, line 40
Warning (512): Unable to emit headers. Headers sent in file=/home/edvaldo/lib-vsv/vendor/cakephp/cakephp/src/Error/Debugger.php line=850 [CORE/src/Http/ResponseEmitter.php, line 48]Code Context $message = "Unable to emit headers. Headers sent in file=$file line=$line";
if (Configure::read('debug')) {
trigger_error($message, E_USER_WARNING);
$response = object(Cake\Http\Response) {
'status' => (int) 302,
'contentType' => 'text/html',
'headers' => [
'Content-Type' => [
[maximum depth reached]
],
'Location' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => ''
}
$maxBufferLength = (int) 8192
$file = '/home/edvaldo/lib-vsv/vendor/cakephp/cakephp/src/Error/Debugger.php'
$line = (int) 850
$message = 'Unable to emit headers. Headers sent in file=/home/edvaldo/lib-vsv/vendor/cakephp/cakephp/src/Error/Debugger.php line=850'Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 48
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 106
[main] - ROOT/webroot/index.php, line 40
Warning (2): Cannot modify header information - headers already sent by (output started at /home/edvaldo/lib-vsv/vendor/cakephp/cakephp/src/Error/Debugger.php:850) [CORE/src/Http/ResponseEmitter.php, line 148]Code Context $response->getProtocolVersion(),
$response->getStatusCode(),
($reasonPhrase ? ' ' . $reasonPhrase : '')
$response = object(Cake\Http\Response) {
'status' => (int) 302,
'contentType' => 'text/html',
'headers' => [
'Content-Type' => [
[maximum depth reached]
],
'Location' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => ''
}
$reasonPhrase = 'Found'header - [internal], line ??
Cake\Http\ResponseEmitter::emitStatusLine() - CORE/src/Http/ResponseEmitter.php, line 148
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 54
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 106
[main] - ROOT/webroot/index.php, line 40
Warning (2): Cannot modify header information - headers already sent by (output started at /home/edvaldo/lib-vsv/vendor/cakephp/cakephp/src/Error/Debugger.php:850) [CORE/src/Http/ResponseEmitter.php, line 181]Code Context $name,
$value
), $first);
$response = object(Cake\Http\Response) {
'status' => (int) 302,
'contentType' => 'text/html',
'headers' => [
'Content-Type' => [
[maximum depth reached]
],
'Location' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => ''
}
$cookies = [
'csrfToken' => [
'name' => 'csrfToken',
'value' => '31e39e2b908925fc9c6668d445b7b54cef295cf2b729ae3694c8f9ee74ca11d13172f3eb97098b703578c06507ee2412bd067c67184079c362df5abe17567f3f',
'path' => '/',
'domain' => '',
'secure' => false,
'httpOnly' => true,
'expire' => null
]
]
$values = [
(int) 0 => 'text/html; charset=UTF-8'
]
$name = 'Content-Type'
$first = true
$value = 'text/html; charset=UTF-8'header - [internal], line ??
Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 181
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 55
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 106
[main] - ROOT/webroot/index.php, line 40
Warning (2): Cannot modify header information - headers already sent by (output started at /home/edvaldo/lib-vsv/vendor/cakephp/cakephp/src/Error/Debugger.php:850) [CORE/src/Http/ResponseEmitter.php, line 181]Code Context $name,
$value
), $first);
$response = object(Cake\Http\Response) {
'status' => (int) 302,
'contentType' => 'text/html',
'headers' => [
'Content-Type' => [
[maximum depth reached]
],
'Location' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => ''
}
$cookies = [
'csrfToken' => [
'name' => 'csrfToken',
'value' => '31e39e2b908925fc9c6668d445b7b54cef295cf2b729ae3694c8f9ee74ca11d13172f3eb97098b703578c06507ee2412bd067c67184079c362df5abe17567f3f',
'path' => '/',
'domain' => '',
'secure' => false,
'httpOnly' => true,
'expire' => null
]
]
$values = [
(int) 0 => '//noticias'
]
$name = 'Location'
$first = true
$value = '//noticias'header - [internal], line ??
Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 181
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 55
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 106
[main] - ROOT/webroot/index.php, line 40
Warning (2): Cannot modify header information - headers already sent by (output started at /home/edvaldo/lib-vsv/vendor/cakephp/cakephp/src/Error/Debugger.php:850) [CORE/src/Http/ResponseEmitter.php, line 206]Code Context $cookie['domain'],
$cookie['secure'],
$cookie['httpOnly']
$cookies = [
'csrfToken' => [
'name' => 'csrfToken',
'value' => '31e39e2b908925fc9c6668d445b7b54cef295cf2b729ae3694c8f9ee74ca11d13172f3eb97098b703578c06507ee2412bd067c67184079c362df5abe17567f3f',
'path' => '/',
'domain' => '',
'secure' => false,
'httpOnly' => true,
'expire' => null
]
]
$cookie = [
'name' => 'csrfToken',
'value' => '31e39e2b908925fc9c6668d445b7b54cef295cf2b729ae3694c8f9ee74ca11d13172f3eb97098b703578c06507ee2412bd067c67184079c362df5abe17567f3f',
'path' => '/',
'domain' => '',
'secure' => false,
'httpOnly' => true,
'expire' => null
]
setcookie - [internal], line ??
Cake\Http\ResponseEmitter::emitCookies() - CORE/src/Http/ResponseEmitter.php, line 206
Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 186
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 55
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 106
[main] - ROOT/webroot/index.php, line 40