Notice (8): Undefined offset: 0 [APP/Controller/TeenStoriesController.php, line 123]Code Context }
$story_id = $storycheck[0]->id;
}
$story_alias = 'Meet Alayna, diagnosed with Ewing's Sarcoma, aged 10 | Teens Unite'
$storycheck = []
App\Controller\TeenStoriesController::detail() - APP/Controller/TeenStoriesController.php, line 123
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\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 235
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\RoutingMiddleware::__invoke() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 162
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\Error\Middleware\ErrorHandlerMiddleware::__invoke() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 96
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 98
[main] - ROOT/webroot/index.php, line 40
Notice (8): Trying to get property 'id' of non-object [APP/Controller/TeenStoriesController.php, line 123]Code Context }
$story_id = $storycheck[0]->id;
}
$story_alias = 'Meet Alayna, diagnosed with Ewing's Sarcoma, aged 10 | Teens Unite'
$storycheck = []
App\Controller\TeenStoriesController::detail() - APP/Controller/TeenStoriesController.php, line 123
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\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 235
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\RoutingMiddleware::__invoke() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 162
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\Error\Middleware\ErrorHandlerMiddleware::__invoke() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 96
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 98
[main] - ROOT/webroot/index.php, line 40
Notice (8): Trying to get property 'meta_title' of non-object [APP/Controller/TeenStoriesController.php, line 129]Code Context
$meta_title = $teenstory->meta_title;
if(strlen($meta_title) > 0){
$story_alias = 'Meet Alayna, diagnosed with Ewing's Sarcoma, aged 10 | Teens Unite'
$storycheck = []
$story_id = null
$teenstory = null
App\Controller\TeenStoriesController::detail() - APP/Controller/TeenStoriesController.php, line 129
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\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 235
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\RoutingMiddleware::__invoke() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 162
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\Error\Middleware\ErrorHandlerMiddleware::__invoke() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 96
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 98
[main] - ROOT/webroot/index.php, line 40
Notice (8): Trying to get property 'meta_keywords' of non-object [APP/Controller/TeenStoriesController.php, line 133]Code Context }
$meta_keywords = $teenstory->meta_keywords;
if(strlen($meta_keywords) > 0){
$story_alias = 'Meet Alayna, diagnosed with Ewing's Sarcoma, aged 10 | Teens Unite'
$storycheck = []
$story_id = null
$teenstory = null
$meta_title = null
App\Controller\TeenStoriesController::detail() - APP/Controller/TeenStoriesController.php, line 133
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\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 235
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\RoutingMiddleware::__invoke() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 162
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\Error\Middleware\ErrorHandlerMiddleware::__invoke() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 96
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 98
[main] - ROOT/webroot/index.php, line 40
Notice (8): Trying to get property 'meta_description' of non-object [APP/Controller/TeenStoriesController.php, line 137]Code Context }
$meta_description = $teenstory->meta_description;
if(strlen($meta_description) > 0){
$story_alias = 'Meet Alayna, diagnosed with Ewing's Sarcoma, aged 10 | Teens Unite'
$storycheck = []
$story_id = null
$teenstory = null
$meta_title = null
$meta_keywords = null
App\Controller\TeenStoriesController::detail() - APP/Controller/TeenStoriesController.php, line 137
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\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 235
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\RoutingMiddleware::__invoke() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 162
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\Error\Middleware\ErrorHandlerMiddleware::__invoke() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 96
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 98
[main] - ROOT/webroot/index.php, line 40
Warning (512): Unable to emit headers. Headers sent in file=/var/www/vhosts/teensunite.org/httpdocs/vendor/cakephp/cakephp/src/Error/Debugger.php line=853 [CORE/src/Http/ResponseEmitter.php, line 51]Code Context if (Configure::read('debug')) {
trigger_error($message, E_USER_WARNING);
} else {
$response = object(Cake\Http\Response) {
'status' => (int) 302,
'contentType' => 'text/html',
'headers' => [
'Content-Type' => [
[maximum depth reached]
],
'Expires' => [
[maximum depth reached]
],
'Last-Modified' => [
[maximum depth reached]
],
'Cache-Control' => [
[maximum depth reached]
],
'Location' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => ''
}
$maxBufferLength = (int) 8192
$file = '/var/www/vhosts/teensunite.org/httpdocs/vendor/cakephp/cakephp/src/Error/Debugger.php'
$line = (int) 853
$message = 'Unable to emit headers. Headers sent in file=/var/www/vhosts/teensunite.org/httpdocs/vendor/cakephp/cakephp/src/Error/Debugger.php line=853'
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 51
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 141
[main] - ROOT/webroot/index.php, line 40
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/vhosts/teensunite.org/httpdocs/vendor/cakephp/cakephp/src/Error/Debugger.php:853) [CORE/src/Http/ResponseEmitter.php, line 152]Code Context $response->getStatusCode(),
($reasonPhrase ? ' ' . $reasonPhrase : '')
));
$response = object(Cake\Http\Response) {
'status' => (int) 302,
'contentType' => 'text/html',
'headers' => [
'Content-Type' => [
[maximum depth reached]
],
'Expires' => [
[maximum depth reached]
],
'Last-Modified' => [
[maximum depth reached]
],
'Cache-Control' => [
[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 152
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 57
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 141
[main] - ROOT/webroot/index.php, line 40
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/vhosts/teensunite.org/httpdocs/vendor/cakephp/cakephp/src/Error/Debugger.php:853) [CORE/src/Http/ResponseEmitter.php, line 181]Code Context foreach ($values as $value) {
header(sprintf(
'%s: %s',
$response = object(Cake\Http\Response) {
'status' => (int) 302,
'contentType' => 'text/html',
'headers' => [
'Content-Type' => [
[maximum depth reached]
],
'Expires' => [
[maximum depth reached]
],
'Last-Modified' => [
[maximum depth reached]
],
'Cache-Control' => [
[maximum depth reached]
],
'Location' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => ''
}
$cookies = []
$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 58
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 141
[main] - ROOT/webroot/index.php, line 40
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/vhosts/teensunite.org/httpdocs/vendor/cakephp/cakephp/src/Error/Debugger.php:853) [CORE/src/Http/ResponseEmitter.php, line 181]Code Context foreach ($values as $value) {
header(sprintf(
'%s: %s',
$response = object(Cake\Http\Response) {
'status' => (int) 302,
'contentType' => 'text/html',
'headers' => [
'Content-Type' => [
[maximum depth reached]
],
'Expires' => [
[maximum depth reached]
],
'Last-Modified' => [
[maximum depth reached]
],
'Cache-Control' => [
[maximum depth reached]
],
'Location' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => ''
}
$cookies = []
$values = [
(int) 0 => 'Mon, 26 Jul 1997 05:00:00 GMT'
]
$name = 'Expires'
$first = true
$value = 'Mon, 26 Jul 1997 05:00:00 GMT'
header - [internal], line ??
Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 181
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 58
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 141
[main] - ROOT/webroot/index.php, line 40
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/vhosts/teensunite.org/httpdocs/vendor/cakephp/cakephp/src/Error/Debugger.php:853) [CORE/src/Http/ResponseEmitter.php, line 181]Code Context foreach ($values as $value) {
header(sprintf(
'%s: %s',
$response = object(Cake\Http\Response) {
'status' => (int) 302,
'contentType' => 'text/html',
'headers' => [
'Content-Type' => [
[maximum depth reached]
],
'Expires' => [
[maximum depth reached]
],
'Last-Modified' => [
[maximum depth reached]
],
'Cache-Control' => [
[maximum depth reached]
],
'Location' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => ''
}
$cookies = []
$values = [
(int) 0 => 'Thu, 14 Nov 2024 14:21:54 GMT'
]
$name = 'Last-Modified'
$first = true
$value = 'Thu, 14 Nov 2024 14:21:54 GMT'
header - [internal], line ??
Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 181
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 58
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 141
[main] - ROOT/webroot/index.php, line 40
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/vhosts/teensunite.org/httpdocs/vendor/cakephp/cakephp/src/Error/Debugger.php:853) [CORE/src/Http/ResponseEmitter.php, line 181]Code Context foreach ($values as $value) {
header(sprintf(
'%s: %s',
$response = object(Cake\Http\Response) {
'status' => (int) 302,
'contentType' => 'text/html',
'headers' => [
'Content-Type' => [
[maximum depth reached]
],
'Expires' => [
[maximum depth reached]
],
'Last-Modified' => [
[maximum depth reached]
],
'Cache-Control' => [
[maximum depth reached]
],
'Location' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => ''
}
$cookies = []
$values = [
(int) 0 => 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0'
]
$name = 'Cache-Control'
$first = true
$value = 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0'
header - [internal], line ??
Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 181
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 58
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 141
[main] - ROOT/webroot/index.php, line 40
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/vhosts/teensunite.org/httpdocs/vendor/cakephp/cakephp/src/Error/Debugger.php:853) [CORE/src/Http/ResponseEmitter.php, line 181]Code Context foreach ($values as $value) {
header(sprintf(
'%s: %s',
$response = object(Cake\Http\Response) {
'status' => (int) 302,
'contentType' => 'text/html',
'headers' => [
'Content-Type' => [
[maximum depth reached]
],
'Expires' => [
[maximum depth reached]
],
'Last-Modified' => [
[maximum depth reached]
],
'Cache-Control' => [
[maximum depth reached]
],
'Location' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => ''
}
$cookies = []
$values = [
(int) 0 => 'https://www.teensunite.org/teen-stories'
]
$name = 'Location'
$first = true
$value = 'https://www.teensunite.org/teen-stories'
header - [internal], line ??
Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 181
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 58
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 141
[main] - ROOT/webroot/index.php, line 40