Warning (2) : Trying to access array offset on value of type null [APP/Controller/ContentsController.php , line 376 ]Code Context
$this -> set ( 'title' , $data [ 'title' ]);
$this -> viewBuilder ()-> setLayout ( $data [ 'layout' ][ 'name' ]);
App\Controller\ContentsController::preview() - APP/Controller/ContentsController.php, line 376
Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 539
Cake\Controller\ControllerFactory::handle() - CORE/src/Controller/ControllerFactory.php, line 140
Cake\Controller\ControllerFactory::invoke() - CORE/src/Controller/ControllerFactory.php, line 115
Cake\Http\BaseApplication::handle() - CORE/src/Http/BaseApplication.php, line 317
Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 77
Cake\Http\Middleware\CsrfProtectionMiddleware::process() - CORE/src/Http/Middleware/CsrfProtectionMiddleware.php, line 164
Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 73
Cake\Http\Middleware\BodyParserMiddleware::process() - CORE/src/Http/Middleware/BodyParserMiddleware.php, line 157
Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 73
Cake\Routing\Middleware\RoutingMiddleware::process() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 161
Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 73
Cake\Routing\Middleware\AssetMiddleware::process() - CORE/src/Routing/Middleware/AssetMiddleware.php, line 77
Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 73
Cake\Error\Middleware\ErrorHandlerMiddleware::process() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 126
Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 73
Cake\Http\Runner::run() - CORE/src/Http/Runner.php, line 58 Warning (2) : Trying to access array offset on value of type null [APP/Controller/ContentsController.php , line 377 ]Code Context $this -> set ( 'title' , $data [ 'title' ]);
$this -> viewBuilder ()-> setLayout ( $data [ 'layout' ][ 'name' ]);
App\Controller\ContentsController::preview() - APP/Controller/ContentsController.php, line 377
Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 539
Cake\Controller\ControllerFactory::handle() - CORE/src/Controller/ControllerFactory.php, line 140
Cake\Controller\ControllerFactory::invoke() - CORE/src/Controller/ControllerFactory.php, line 115
Cake\Http\BaseApplication::handle() - CORE/src/Http/BaseApplication.php, line 317
Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 77
Cake\Http\Middleware\CsrfProtectionMiddleware::process() - CORE/src/Http/Middleware/CsrfProtectionMiddleware.php, line 164
Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 73
Cake\Http\Middleware\BodyParserMiddleware::process() - CORE/src/Http/Middleware/BodyParserMiddleware.php, line 157
Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 73
Cake\Routing\Middleware\RoutingMiddleware::process() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 161
Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 73
Cake\Routing\Middleware\AssetMiddleware::process() - CORE/src/Routing/Middleware/AssetMiddleware.php, line 77
Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 73
Cake\Error\Middleware\ErrorHandlerMiddleware::process() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 126
Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 73
Cake\Http\Runner::run() - CORE/src/Http/Runner.php, line 58 Warning (2) : Trying to access array offset on value of type null [APP/Controller/ContentsController.php , line 377 ]Code Context $this -> set ( 'title' , $data [ 'title' ]);
$this -> viewBuilder ()-> setLayout ( $data [ 'layout' ][ 'name' ]);
App\Controller\ContentsController::preview() - APP/Controller/ContentsController.php, line 377
Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 539
Cake\Controller\ControllerFactory::handle() - CORE/src/Controller/ControllerFactory.php, line 140
Cake\Controller\ControllerFactory::invoke() - CORE/src/Controller/ControllerFactory.php, line 115
Cake\Http\BaseApplication::handle() - CORE/src/Http/BaseApplication.php, line 317
Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 77
Cake\Http\Middleware\CsrfProtectionMiddleware::process() - CORE/src/Http/Middleware/CsrfProtectionMiddleware.php, line 164
Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 73
Cake\Http\Middleware\BodyParserMiddleware::process() - CORE/src/Http/Middleware/BodyParserMiddleware.php, line 157
Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 73
Cake\Routing\Middleware\RoutingMiddleware::process() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 161
Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 73
Cake\Routing\Middleware\AssetMiddleware::process() - CORE/src/Routing/Middleware/AssetMiddleware.php, line 77
Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 73
Cake\Error\Middleware\ErrorHandlerMiddleware::process() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 126
Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 73
Cake\Http\Runner::run() - CORE/src/Http/Runner.php, line 58 Warning (2) : Trying to access array offset on value of type null [APP/Controller/AppController.php , line 78 ]Code Context $userGroupId = $this -> UserAuth -> getGroupId ();
if ( count ( $data [ 'content_groups' ]) > 0 ) {
foreach ( $data [ 'content_groups' ] as $value ) {
App\Controller\AppController::isAuthorizedForPage() - APP/Controller/AppController.php, line 78
App\Controller\ContentsController::preview() - APP/Controller/ContentsController.php, line 379
Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 539
Cake\Controller\ControllerFactory::handle() - CORE/src/Controller/ControllerFactory.php, line 140
Cake\Controller\ControllerFactory::invoke() - CORE/src/Controller/ControllerFactory.php, line 115
Cake\Http\BaseApplication::handle() - CORE/src/Http/BaseApplication.php, line 317
Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 77
Cake\Http\Middleware\CsrfProtectionMiddleware::process() - CORE/src/Http/Middleware/CsrfProtectionMiddleware.php, line 164
Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 73
Cake\Http\Middleware\BodyParserMiddleware::process() - CORE/src/Http/Middleware/BodyParserMiddleware.php, line 157
Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 73
Cake\Routing\Middleware\RoutingMiddleware::process() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 161
Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 73
Cake\Routing\Middleware\AssetMiddleware::process() - CORE/src/Routing/Middleware/AssetMiddleware.php, line 77
Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 73
Cake\Error\Middleware\ErrorHandlerMiddleware::process() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 126
Cake\Http\Runner::handle() - CORE/src/Http/Runner.php, line 73 Warning (512) : Unable to emit headers. Headers sent in file=/home/walmsley/public_html/vendor/cakephp/cakephp/src/Error/Debugger.php line=988 [CORE/src/Http/ResponseEmitter.php , line 71 ]Code Context $message = "Unable to emit headers. Headers sent in file= $file line= $line " ;
trigger_error ( $message , E_USER_WARNING );
}
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 71
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 128
[main] - ROOT/webroot/index.php, line 40 Warning (2) : Cannot modify header information - headers already sent by (output started at /home/walmsley/public_html/vendor/cakephp/cakephp/src/Error/Debugger.php:988) [CORE/src/Http/ResponseEmitter.php , line 168 ]Code Context $response -> getStatusCode (),
( $reasonPhrase ? ' ' . $reasonPhrase : '' )
));
header - [internal], line ??
Cake\Http\ResponseEmitter::emitStatusLine() - CORE/src/Http/ResponseEmitter.php, line 168
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 74
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 128
[main] - ROOT/webroot/index.php, line 40 Warning (2) : Cannot modify header information - headers already sent by (output started at /home/walmsley/public_html/vendor/cakephp/cakephp/src/Error/Debugger.php:988) [CORE/src/Http/ResponseEmitter.php , line 197 ]Code Context foreach ( $values as $value ) {
header ( sprintf (
'%s: %s' ,
header - [internal], line ??
Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 197
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 75
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 128
[main] - ROOT/webroot/index.php, line 40
Error: count(): Argument #1 ($value) must be of type Countable|array, null given
public function isAuthorizedForPage ( $data ) {
//$this->debug($data);
$groupIds = array();
$userGroupId = $this -> UserAuth -> getGroupId ();
if ( count ( $data [ 'content_groups' ]) > 0 ) {
foreach ( $data [ 'content_groups' ] as $value ) {
$groupIds [] = $value [ 'group_id' ];
}
if ( in_array ( $userGroupId , $groupIds )) {
Arguments
public function isAuthorizedForPage ( $data ) {
//$this->debug($data);
$groupIds = array();
$userGroupId = $this -> UserAuth -> getGroupId ();
if ( count ( $data [ 'content_groups' ]) > 0 ) {
foreach ( $data [ 'content_groups' ] as $value ) {
$groupIds [] = $value [ 'group_id' ];
}
if ( in_array ( $userGroupId , $groupIds )) {
$this -> set ( 'title' , $data [ 'title' ]);
$this -> viewBuilder ()-> setLayout ( $data [ 'layout' ][ 'name' ]);
if ( $this -> isAuthorizedForPage ( $data ) == "deny" ) {
$this -> Flash -> error ( __ ( 'Please login below to access these pages.' ));
$this -> redirect ( '/login.html?redirect=/page/' . $urlName . ".html" );
}
* @ throws \UnexpectedValueException If return value of action is not ` null ` or ` ResponseInterface ` instance .
*/
public function invokeAction ( Closure $action , array $args ): void
{
$result = $action (... $args );
if ( $result !== null && ! $result instanceof ResponseInterface ) {
throw new UnexpectedValueException ( sprintf (
'Controller actions can only return ResponseInterface instance or null. '
. 'Got %s instead.' ,
$args = $this -> getActionArgs (
$action ,
array_values ((array) $controller -> getRequest ()-> getParam ( 'pass' ))
);
$controller -> invokeAction ( $action , $args );
$result = $controller -> shutdownProcess ();
if ( $result instanceof ResponseInterface ) {
return $result ;
Arguments
[
(int) 0 => 'stress-and-anxiety' ,
]
return $runner -> run ( $middlewareQueue , $controller -> getRequest (), $this );
}
return $this -> handle ( $controller -> getRequest ());
}
/**
* Invoke the action .
Arguments
object( Cake\Http\ServerRequest ) id: 0 {
trustProxy => false
protected params => [
'slug' => 'stress-and-anxiety' ,
'pass' => [
(int) 0 => 'stress-and-anxiety' ,
] ,
'controller' => 'Contents' ,
'action' => 'preview' ,
'plugin' => null ,
'_matchedRoute' => '/page/:slug.html' ,
'_ext' => null ,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'PATH' => '/usr/local/bin:/bin:/usr/bin' ,
'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' ,
'HTTP_ACCEPT_ENCODING' => 'br,gzip' ,
'HTTP_ACCEPT_LANGUAGE' => 'en-US,en;q=0.5' ,
'HTTP_HOST' => 'www.walmsley.ca' ,
'HTTP_USER_AGENT' => 'CCBot/2.0 (https://commoncrawl.org/faq/)' ,
'HTTP_X_HTTPS' => '1' ,
'DOCUMENT_ROOT' => '/home/walmsley/public_html' ,
'REMOTE_ADDR' => '44.201.97.138' ,
'REMOTE_PORT' => '60962' ,
'SERVER_ADDR' => '209.54.112.191' ,
'SERVER_NAME' => 'www.walmsley.ca' ,
'SERVER_ADMIN' => 'webmaster@walmsley.ca' ,
'SERVER_PORT' => '443' ,
'REQUEST_SCHEME' => 'https' ,
'REQUEST_URI' => '/page/stress-and-anxiety.html' ,
'REDIRECT_URL' => '/webroot/page/stress-and-anxiety.html' ,
'REDIRECT_REQUEST_METHOD' => 'GET' ,
'HTTPS' => 'on' ,
'REDIRECT_STATUS' => '200' ,
'X_SPDY' => 'HTTP2' ,
'SSL_PROTOCOL' => 'TLSv1.3' ,
'SSL_CIPHER' => 'TLS_AES_256_GCM_SHA384' ,
'SSL_CIPHER_USEKEYSIZE' => '256' ,
'SSL_CIPHER_ALGKEYSIZE' => '256' ,
'SCRIPT_FILENAME' => '/home/walmsley/public_html/webroot/index.php' ,
'QUERY_STRING' => '' ,
'SCRIPT_URI' => 'https://www.walmsley.ca/page/stress-and-anxiety.html' ,
'SCRIPT_URL' => '/page/stress-and-anxiety.html' ,
'SCRIPT_NAME' => '/webroot/index.php' ,
'SERVER_PROTOCOL' => 'HTTP/1.1' ,
'SERVER_SOFTWARE' => 'LiteSpeed' ,
'REQUEST_METHOD' => 'GET' ,
'X-LSCACHE' => 'on' ,
'PHP_SELF' => '/webroot/index.php' ,
'REQUEST_TIME_FLOAT' => (float) 1726879610.6677 ,
'REQUEST_TIME' => (int) 1726879610 ,
'ORIGINAL_REQUEST_METHOD' => 'GET' ,
'HTTP_X_REQUESTED_WITH' => null ,
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'GET' ,
] ,
'post' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'POST' ,
] ,
'put' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'PUT' ,
] ,
'patch' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'PATCH' ,
] ,
'delete' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'DELETE' ,
] ,
'head' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'HEAD' ,
] ,
'options' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'OPTIONS' ,
] ,
'ssl' => [
'env' => 'HTTPS' ,
'options' => [
'' => [maximum depth reached] ,
] ,
] ,
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH' ,
'value' => 'XMLHttpRequest' ,
] ,
'json' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'json' ,
] ,
'xml' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'xml' ,
] ,
'mobile' => object( Closure ) id: 1 {
} ,
'tablet' => object( Closure ) id: 2 {
} ,
'csv' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'csv' ,
] ,
]
protected _detectorCache => [
'ajax' => false ,
]
protected stream => object( Laminas\Diactoros\PhpInputStream ) id: 3 {
protected resource => (resource) Resource id #158
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object( Laminas\Diactoros\Uri ) id: 4 {
base => ''
webroot => '/'
protected allowedSchemes => [
'' => [maximum depth reached] ,
]
private scheme => 'https'
private userInfo => ''
private host => 'www.walmsley.ca'
private port => null
private path => '/page/stress-and-anxiety.html'
private query => ''
private fragment => ''
private uriString => null
}
protected session => object( Cake\Http\Session ) id: 5 {
protected _engine => null
protected _started => null
protected _lifetime => (int) 86400
protected _isCLI => false
}
protected flash => object( Cake\Http\FlashMessage ) id: 6 {
protected _defaultConfig => [
'' => [maximum depth reached] ,
]
protected session => object( Cake\Http\Session ) id: 5 {}
protected _config => [
'' => [maximum depth reached] ,
]
protected _configInitialized => true
}
protected attributes => [
'csrfToken' => 'L9+0CmoIWR9bVkeywiSJiOyugMCFx6rlKQ5gApClQzv+l3BKsKXPdVSPv0pBFGS/y8eS5FuEIbrzRTCXjC1fj2+E3nwJxnZ638vj97z+mtIYa1U1pJR3D8zyRi6DxvkQbb7bLnAhUIivpvTUa+JA3A==' ,
]
protected emulatedAttributes => [
(int) 0 => 'session' ,
(int) 1 => 'flash' ,
(int) 2 => 'webroot' ,
(int) 3 => 'base' ,
(int) 4 => 'params' ,
(int) 5 => 'here' ,
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
}
$controller = $this -> controllerFactory -> create ( $request );
return $this -> controllerFactory -> invoke ( $controller );
}
}
Arguments
object( App\Controller\ContentsController ) id: 0 {
paginate => [
'limit' => (int) 25 ,
]
searchFields => [
'index' => [
'Contents' => [
'' => [maximum depth reached] ,
] ,
] ,
]
apiKey => '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'
key => 'SHn7bkJfGFYa1MeZ14O8HOp61g7864U4'
receptionGroupId => (int) 13
affiliateGroupId => (int) 10
corporateGroupId => (int) 11
email => 'behnishmann85@gmail.com'
emailName => 'banny'
enableDependent => false
RequestHandler => object( Cake\Controller\Component\RequestHandlerComponent ) id: 1 {
'components' => [
]
'implementedEvents' => [
'Controller.startup' => 'startup' ,
'Controller.beforeRender' => 'beforeRender' ,
]
'_config' => [
'checkHttpCache' => true ,
'viewClassMap' => [
'' => [maximum depth reached] ,
] ,
]
}
Flash => object( Cake\Controller\Component\FlashComponent ) id: 2 {
'components' => [
]
'implementedEvents' => [
]
'_config' => [
'key' => 'flash' ,
'element' => 'default' ,
'plugin' => null ,
'params' => [
'' => [maximum depth reached] ,
] ,
'clear' => false ,
'duplicate' => true ,
]
}
UserAuth => object( App\Controller\Component\UserAuthComponent ) id: 3 {
'components' => [
]
'implementedEvents' => [
'Controller.initialize' => 'beforeFilter' ,
'Controller.beforeRender' => 'beforeRender' ,
]
'_config' => [
]
}
FormProtection => object( Cake\Controller\Component\FormProtectionComponent ) id: 4 {
'components' => [
]
'implementedEvents' => [
'Controller.startup' => 'startup' ,
]
'_config' => [
'validate' => true ,
'unlockedFields' => [
'' => [maximum depth reached] ,
] ,
'unlockedActions' => [
'' => [maximum depth reached] ,
] ,
'validationFailureCallback' => object( Closure ) id: 5 {
} ,
]
}
Search => object( App\Controller\Component\SearchComponent ) id: 6 {
'components' => [
(int) 0 => 'UserAuth' ,
]
'implementedEvents' => [
'Controller.initialize' => 'beforeFilter' ,
'Controller.startup' => 'startup' ,
'Controller.beforeRender' => 'beforeRender' ,
]
'_config' => [
]
}
Auth => object( Cake\Controller\Component\AuthComponent ) id: 7 {
'components' => [
(int) 0 => 'RequestHandler' ,
(int) 1 => 'Flash' ,
]
'implementedEvents' => [
'Controller.initialize' => 'authCheck' ,
'Controller.startup' => 'startup' ,
]
'_config' => [
'authenticate' => [
'' => [maximum depth reached] ,
] ,
'authorize' => [
'' => [maximum depth reached] ,
] ,
'flash' => [
'' => [maximum depth reached] ,
] ,
'loginAction' => [
'' => [maximum depth reached] ,
] ,
'loginRedirect' => '/dashboard' ,
'logoutRedirect' => '/login' ,
'authError' => 'You are not authorized to access that location.' ,
'unauthorizedRedirect' => [
'' => [maximum depth reached] ,
] ,
'storage' => 'Session' ,
'checkAuthIn' => 'Controller.startup' ,
]
}
Newsletterposters => object( App\Model\Table\NewsletterpostersTable ) id: 8 {
'registryAlias' => 'Newsletterposters'
'table' => 'newsletterposters'
'alias' => 'Newsletterposters'
'entityClass' => 'App\Model\Entity\Newsletterposter'
'associations' => [
]
'behaviors' => [
(int) 0 => 'AuditLog' ,
(int) 1 => 'Timestamp' ,
]
'defaultConnection' => 'default'
'connectionName' => 'default'
}
Blogs => object( App\Model\Table\BlogsTable ) id: 9 {
'registryAlias' => 'Blogs'
'table' => 'blogs'
'alias' => 'Blogs'
'entityClass' => 'App\Model\Entity\Blog'
'associations' => [
(int) 0 => 'Users' ,
(int) 1 => 'BlogCategories' ,
(int) 2 => 'BlogBlogTags' ,
(int) 3 => 'BlogMetas' ,
(int) 4 => 'FeatureImageBlog' ,
(int) 5 => 'FeatureVideo' ,
(int) 6 => 'BlogSeos' ,
]
'behaviors' => [
(int) 0 => 'AuditLog' ,
(int) 1 => 'Timestamp' ,
]
'defaultConnection' => 'default'
'connectionName' => 'default'
}
Contents => object( App\Model\Table\ContentsTable ) id: 10 {
'registryAlias' => 'Contents'
'table' => 'contents'
'alias' => 'Contents'
'entityClass' => 'App\Model\Entity\Content'
'associations' => [
(int) 0 => 'Layouts' ,
(int) 1 => 'Users' ,
(int) 2 => 'ParentContents' ,
(int) 3 => 'App' ,
(int) 4 => 'Podcasts' ,
(int) 5 => 'Books' ,
(int) 6 => 'ContentMetas' ,
(int) 7 => 'ContentGroups' ,
(int) 8 => 'ContentSeos' ,
(int) 9 => 'FeatureImage' ,
]
'behaviors' => [
(int) 0 => 'AuditLog' ,
(int) 1 => 'Tree' ,
(int) 2 => 'Timestamp' ,
]
'defaultConnection' => 'default'
'connectionName' => 'default'
}
Layouts => object( App\Model\Table\LayoutsTable ) id: 11 {
'registryAlias' => 'Layouts'
'table' => 'layouts'
'alias' => 'Layouts'
'entityClass' => 'App\Model\Entity\Layout'
'associations' => [
(int) 0 => 'Contents' ,
]
'behaviors' => [
]
'defaultConnection' => 'default'
'connectionName' => 'default'
}
protected name => 'Contents'
protected request => object( Cake\Http\ServerRequest ) id: 12 {
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 base => ''
protected webroot => '/'
protected trustedProxies => [
'' => [maximum depth reached] ,
]
protected _detectors => [
'' => [maximum depth reached] ,
]
protected _detectorCache => [
'' => [maximum depth reached] ,
]
protected stream => object( Laminas\Diactoros\PhpInputStream ) id: 13 {
}
protected uri => object( Laminas\Diactoros\Uri ) id: 14 {
}
protected session => object( Cake\Http\Session ) id: 15 {
}
protected flash => object( Cake\Http\FlashMessage ) id: 16 {
}
protected attributes => [
'' => [maximum depth reached] ,
]
protected emulatedAttributes => [
'' => [maximum depth reached] ,
]
protected uploadedFiles => [
'' => [maximum depth reached] ,
]
protected protocol => null
protected requestTarget => null
}
protected response => object( Cake\Http\Response ) id: 17 {
'status' => (int) 200
'contentType' => 'text/html'
'headers' => [
'Content-Type' => [
'' => [maximum depth reached] ,
] ,
]
'file' => null
'fileRange' => [
]
'cookies' => object( Cake\Http\Cookie\CookieCollection ) id: 18 {
}
'cacheDirectives' => [
]
'body' => ''
}
protected autoRender => true
protected _components => object( Cake\Controller\ComponentRegistry ) id: 19 {
'_Controller' => object( App\Controller\ContentsController ) id: 0 {}
'_loaded' => [
(int) 0 => 'RequestHandler' ,
(int) 1 => 'Flash' ,
(int) 2 => 'UserAuth' ,
(int) 3 => 'FormProtection' ,
(int) 4 => 'Search' ,
(int) 5 => 'Auth' ,
]
'_eventManager' => object( Cake\Event\EventManager ) id: 20 {
}
'_eventClass' => 'Cake\Event\Event'
}
protected plugin => null
protected middlewares => [
]
protected _eventManager => object( Cake\Event\EventManager ) id: 20 {}
protected _eventClass => 'Cake\Event\Event'
protected defaultTable => 'Contents'
protected _tableLocator => object( Cake\ORM\Locator\TableLocator ) id: 21 {
protected locations => [
'' => [maximum depth reached] ,
]
protected _config => [
'' => [maximum depth reached] ,
]
protected instances => [
'' => [maximum depth reached] ,
]
protected _fallbacked => [
'' => [maximum depth reached] ,
]
protected fallbackClassName => 'Cake\ORM\Table'
protected allowFallbackClass => false
protected options => [
'' => [maximum depth reached] ,
]
}
protected modelClass => 'Contents'
protected _modelFactories => [
'Table' => [
(int) 0 => object( Cake\ORM\Locator\TableLocator ) id: 21 {} ,
(int) 1 => 'get' ,
] ,
]
protected _modelType => 'Table'
protected _viewBuilder => object( Cake\View\ViewBuilder ) id: 22 {
protected _templatePath => null
protected _template => null
protected _plugin => null
protected _theme => null
protected _layout => null
protected _autoLayout => true
protected _layoutPath => null
protected _name => null
protected _className => null
protected _options => [
'' => [maximum depth reached] ,
]
protected _helpers => [
'' => [maximum depth reached] ,
]
protected _vars => [
'' => [maximum depth reached] ,
]
}
}
return $middleware -> process ( $request , $this );
}
if ( $this -> fallbackHandler ) {
return $this -> fallbackHandler -> handle ( $request );
}
$response = new Response ([
'body' => 'Middleware queue was exhausted without returning a response '
Arguments
object( Cake\Http\ServerRequest ) id: 0 {
trustProxy => false
protected params => [
'slug' => 'stress-and-anxiety' ,
'pass' => [
(int) 0 => 'stress-and-anxiety' ,
] ,
'controller' => 'Contents' ,
'action' => 'preview' ,
'plugin' => null ,
'_matchedRoute' => '/page/:slug.html' ,
'_ext' => null ,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'PATH' => '/usr/local/bin:/bin:/usr/bin' ,
'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' ,
'HTTP_ACCEPT_ENCODING' => 'br,gzip' ,
'HTTP_ACCEPT_LANGUAGE' => 'en-US,en;q=0.5' ,
'HTTP_HOST' => 'www.walmsley.ca' ,
'HTTP_USER_AGENT' => 'CCBot/2.0 (https://commoncrawl.org/faq/)' ,
'HTTP_X_HTTPS' => '1' ,
'DOCUMENT_ROOT' => '/home/walmsley/public_html' ,
'REMOTE_ADDR' => '44.201.97.138' ,
'REMOTE_PORT' => '60962' ,
'SERVER_ADDR' => '209.54.112.191' ,
'SERVER_NAME' => 'www.walmsley.ca' ,
'SERVER_ADMIN' => 'webmaster@walmsley.ca' ,
'SERVER_PORT' => '443' ,
'REQUEST_SCHEME' => 'https' ,
'REQUEST_URI' => '/page/stress-and-anxiety.html' ,
'REDIRECT_URL' => '/webroot/page/stress-and-anxiety.html' ,
'REDIRECT_REQUEST_METHOD' => 'GET' ,
'HTTPS' => 'on' ,
'REDIRECT_STATUS' => '200' ,
'X_SPDY' => 'HTTP2' ,
'SSL_PROTOCOL' => 'TLSv1.3' ,
'SSL_CIPHER' => 'TLS_AES_256_GCM_SHA384' ,
'SSL_CIPHER_USEKEYSIZE' => '256' ,
'SSL_CIPHER_ALGKEYSIZE' => '256' ,
'SCRIPT_FILENAME' => '/home/walmsley/public_html/webroot/index.php' ,
'QUERY_STRING' => '' ,
'SCRIPT_URI' => 'https://www.walmsley.ca/page/stress-and-anxiety.html' ,
'SCRIPT_URL' => '/page/stress-and-anxiety.html' ,
'SCRIPT_NAME' => '/webroot/index.php' ,
'SERVER_PROTOCOL' => 'HTTP/1.1' ,
'SERVER_SOFTWARE' => 'LiteSpeed' ,
'REQUEST_METHOD' => 'GET' ,
'X-LSCACHE' => 'on' ,
'PHP_SELF' => '/webroot/index.php' ,
'REQUEST_TIME_FLOAT' => (float) 1726879610.6677 ,
'REQUEST_TIME' => (int) 1726879610 ,
'ORIGINAL_REQUEST_METHOD' => 'GET' ,
'HTTP_X_REQUESTED_WITH' => null ,
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'GET' ,
] ,
'post' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'POST' ,
] ,
'put' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'PUT' ,
] ,
'patch' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'PATCH' ,
] ,
'delete' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'DELETE' ,
] ,
'head' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'HEAD' ,
] ,
'options' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'OPTIONS' ,
] ,
'ssl' => [
'env' => 'HTTPS' ,
'options' => [
'' => [maximum depth reached] ,
] ,
] ,
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH' ,
'value' => 'XMLHttpRequest' ,
] ,
'json' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'json' ,
] ,
'xml' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'xml' ,
] ,
'mobile' => object( Closure ) id: 1 {
} ,
'tablet' => object( Closure ) id: 2 {
} ,
'csv' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'csv' ,
] ,
]
protected _detectorCache => [
'ajax' => false ,
]
protected stream => object( Laminas\Diactoros\PhpInputStream ) id: 3 {
protected resource => (resource) Resource id #158
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object( Laminas\Diactoros\Uri ) id: 4 {
base => ''
webroot => '/'
protected allowedSchemes => [
'' => [maximum depth reached] ,
]
private scheme => 'https'
private userInfo => ''
private host => 'www.walmsley.ca'
private port => null
private path => '/page/stress-and-anxiety.html'
private query => ''
private fragment => ''
private uriString => null
}
protected session => object( Cake\Http\Session ) id: 5 {
protected _engine => null
protected _started => null
protected _lifetime => (int) 86400
protected _isCLI => false
}
protected flash => object( Cake\Http\FlashMessage ) id: 6 {
protected _defaultConfig => [
'' => [maximum depth reached] ,
]
protected session => object( Cake\Http\Session ) id: 5 {}
protected _config => [
'' => [maximum depth reached] ,
]
protected _configInitialized => true
}
protected attributes => [
'csrfToken' => 'L9+0CmoIWR9bVkeywiSJiOyugMCFx6rlKQ5gApClQzv+l3BKsKXPdVSPv0pBFGS/y8eS5FuEIbrzRTCXjC1fj2+E3nwJxnZ638vj97z+mtIYa1U1pJR3D8zyRi6DxvkQbb7bLnAhUIivpvTUa+JA3A==' ,
]
protected emulatedAttributes => [
(int) 0 => 'session' ,
(int) 1 => 'flash' ,
(int) 2 => 'webroot' ,
(int) 3 => 'base' ,
(int) 4 => 'params' ,
(int) 5 => 'here' ,
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
if ( $method === 'GET' && $cookieData === null ) {
$token = $this -> createToken ();
$request = $request -> withAttribute ( 'csrfToken' , $this -> saltToken ( $token ));
/** @var mixed $response */
$response = $handler -> handle ( $request );
return $this -> _addTokenCookie ( $token , $request , $response );
}
Arguments
object( Cake\Http\ServerRequest ) id: 0 {
trustProxy => false
protected params => [
'slug' => 'stress-and-anxiety' ,
'pass' => [
(int) 0 => 'stress-and-anxiety' ,
] ,
'controller' => 'Contents' ,
'action' => 'preview' ,
'plugin' => null ,
'_matchedRoute' => '/page/:slug.html' ,
'_ext' => null ,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'PATH' => '/usr/local/bin:/bin:/usr/bin' ,
'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' ,
'HTTP_ACCEPT_ENCODING' => 'br,gzip' ,
'HTTP_ACCEPT_LANGUAGE' => 'en-US,en;q=0.5' ,
'HTTP_HOST' => 'www.walmsley.ca' ,
'HTTP_USER_AGENT' => 'CCBot/2.0 (https://commoncrawl.org/faq/)' ,
'HTTP_X_HTTPS' => '1' ,
'DOCUMENT_ROOT' => '/home/walmsley/public_html' ,
'REMOTE_ADDR' => '44.201.97.138' ,
'REMOTE_PORT' => '60962' ,
'SERVER_ADDR' => '209.54.112.191' ,
'SERVER_NAME' => 'www.walmsley.ca' ,
'SERVER_ADMIN' => 'webmaster@walmsley.ca' ,
'SERVER_PORT' => '443' ,
'REQUEST_SCHEME' => 'https' ,
'REQUEST_URI' => '/page/stress-and-anxiety.html' ,
'REDIRECT_URL' => '/webroot/page/stress-and-anxiety.html' ,
'REDIRECT_REQUEST_METHOD' => 'GET' ,
'HTTPS' => 'on' ,
'REDIRECT_STATUS' => '200' ,
'X_SPDY' => 'HTTP2' ,
'SSL_PROTOCOL' => 'TLSv1.3' ,
'SSL_CIPHER' => 'TLS_AES_256_GCM_SHA384' ,
'SSL_CIPHER_USEKEYSIZE' => '256' ,
'SSL_CIPHER_ALGKEYSIZE' => '256' ,
'SCRIPT_FILENAME' => '/home/walmsley/public_html/webroot/index.php' ,
'QUERY_STRING' => '' ,
'SCRIPT_URI' => 'https://www.walmsley.ca/page/stress-and-anxiety.html' ,
'SCRIPT_URL' => '/page/stress-and-anxiety.html' ,
'SCRIPT_NAME' => '/webroot/index.php' ,
'SERVER_PROTOCOL' => 'HTTP/1.1' ,
'SERVER_SOFTWARE' => 'LiteSpeed' ,
'REQUEST_METHOD' => 'GET' ,
'X-LSCACHE' => 'on' ,
'PHP_SELF' => '/webroot/index.php' ,
'REQUEST_TIME_FLOAT' => (float) 1726879610.6677 ,
'REQUEST_TIME' => (int) 1726879610 ,
'ORIGINAL_REQUEST_METHOD' => 'GET' ,
'HTTP_X_REQUESTED_WITH' => null ,
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'GET' ,
] ,
'post' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'POST' ,
] ,
'put' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'PUT' ,
] ,
'patch' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'PATCH' ,
] ,
'delete' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'DELETE' ,
] ,
'head' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'HEAD' ,
] ,
'options' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'OPTIONS' ,
] ,
'ssl' => [
'env' => 'HTTPS' ,
'options' => [
'' => [maximum depth reached] ,
] ,
] ,
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH' ,
'value' => 'XMLHttpRequest' ,
] ,
'json' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'json' ,
] ,
'xml' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'xml' ,
] ,
'mobile' => object( Closure ) id: 1 {
} ,
'tablet' => object( Closure ) id: 2 {
} ,
'csv' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'csv' ,
] ,
]
protected _detectorCache => [
'ajax' => false ,
]
protected stream => object( Laminas\Diactoros\PhpInputStream ) id: 3 {
protected resource => (resource) Resource id #158
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object( Laminas\Diactoros\Uri ) id: 4 {
base => ''
webroot => '/'
protected allowedSchemes => [
'' => [maximum depth reached] ,
]
private scheme => 'https'
private userInfo => ''
private host => 'www.walmsley.ca'
private port => null
private path => '/page/stress-and-anxiety.html'
private query => ''
private fragment => ''
private uriString => null
}
protected session => object( Cake\Http\Session ) id: 5 {
protected _engine => null
protected _started => null
protected _lifetime => (int) 86400
protected _isCLI => false
}
protected flash => object( Cake\Http\FlashMessage ) id: 6 {
protected _defaultConfig => [
'' => [maximum depth reached] ,
]
protected session => object( Cake\Http\Session ) id: 5 {}
protected _config => [
'' => [maximum depth reached] ,
]
protected _configInitialized => true
}
protected attributes => [
'csrfToken' => 'L9+0CmoIWR9bVkeywiSJiOyugMCFx6rlKQ5gApClQzv+l3BKsKXPdVSPv0pBFGS/y8eS5FuEIbrzRTCXjC1fj2+E3nwJxnZ638vj97z+mtIYa1U1pJR3D8zyRi6DxvkQbb7bLnAhUIivpvTUa+JA3A==' ,
]
protected emulatedAttributes => [
(int) 0 => 'session' ,
(int) 1 => 'flash' ,
(int) 2 => 'webroot' ,
(int) 3 => 'base' ,
(int) 4 => 'params' ,
(int) 5 => 'here' ,
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
if ( $this -> queue -> valid ()) {
$middleware = $this -> queue -> current ();
$this -> queue -> next ();
return $middleware -> process ( $request , $this );
}
if ( $this -> fallbackHandler ) {
return $this -> fallbackHandler -> handle ( $request );
Arguments
object( Cake\Http\ServerRequest ) id: 0 {
trustProxy => false
protected params => [
'slug' => 'stress-and-anxiety' ,
'pass' => [
(int) 0 => 'stress-and-anxiety' ,
] ,
'controller' => 'Contents' ,
'action' => 'preview' ,
'plugin' => null ,
'_matchedRoute' => '/page/:slug.html' ,
'_ext' => null ,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'PATH' => '/usr/local/bin:/bin:/usr/bin' ,
'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' ,
'HTTP_ACCEPT_ENCODING' => 'br,gzip' ,
'HTTP_ACCEPT_LANGUAGE' => 'en-US,en;q=0.5' ,
'HTTP_HOST' => 'www.walmsley.ca' ,
'HTTP_USER_AGENT' => 'CCBot/2.0 (https://commoncrawl.org/faq/)' ,
'HTTP_X_HTTPS' => '1' ,
'DOCUMENT_ROOT' => '/home/walmsley/public_html' ,
'REMOTE_ADDR' => '44.201.97.138' ,
'REMOTE_PORT' => '60962' ,
'SERVER_ADDR' => '209.54.112.191' ,
'SERVER_NAME' => 'www.walmsley.ca' ,
'SERVER_ADMIN' => 'webmaster@walmsley.ca' ,
'SERVER_PORT' => '443' ,
'REQUEST_SCHEME' => 'https' ,
'REQUEST_URI' => '/page/stress-and-anxiety.html' ,
'REDIRECT_URL' => '/webroot/page/stress-and-anxiety.html' ,
'REDIRECT_REQUEST_METHOD' => 'GET' ,
'HTTPS' => 'on' ,
'REDIRECT_STATUS' => '200' ,
'X_SPDY' => 'HTTP2' ,
'SSL_PROTOCOL' => 'TLSv1.3' ,
'SSL_CIPHER' => 'TLS_AES_256_GCM_SHA384' ,
'SSL_CIPHER_USEKEYSIZE' => '256' ,
'SSL_CIPHER_ALGKEYSIZE' => '256' ,
'SCRIPT_FILENAME' => '/home/walmsley/public_html/webroot/index.php' ,
'QUERY_STRING' => '' ,
'SCRIPT_URI' => 'https://www.walmsley.ca/page/stress-and-anxiety.html' ,
'SCRIPT_URL' => '/page/stress-and-anxiety.html' ,
'SCRIPT_NAME' => '/webroot/index.php' ,
'SERVER_PROTOCOL' => 'HTTP/1.1' ,
'SERVER_SOFTWARE' => 'LiteSpeed' ,
'REQUEST_METHOD' => 'GET' ,
'X-LSCACHE' => 'on' ,
'PHP_SELF' => '/webroot/index.php' ,
'REQUEST_TIME_FLOAT' => (float) 1726879610.6677 ,
'REQUEST_TIME' => (int) 1726879610 ,
'ORIGINAL_REQUEST_METHOD' => 'GET' ,
'HTTP_X_REQUESTED_WITH' => null ,
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'GET' ,
] ,
'post' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'POST' ,
] ,
'put' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'PUT' ,
] ,
'patch' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'PATCH' ,
] ,
'delete' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'DELETE' ,
] ,
'head' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'HEAD' ,
] ,
'options' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'OPTIONS' ,
] ,
'ssl' => [
'env' => 'HTTPS' ,
'options' => [
'' => [maximum depth reached] ,
] ,
] ,
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH' ,
'value' => 'XMLHttpRequest' ,
] ,
'json' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'json' ,
] ,
'xml' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'xml' ,
] ,
'mobile' => object( Closure ) id: 1 {
} ,
'tablet' => object( Closure ) id: 2 {
} ,
'csv' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'csv' ,
] ,
]
protected _detectorCache => [
'ajax' => false ,
]
protected stream => object( Laminas\Diactoros\PhpInputStream ) id: 3 {
protected resource => (resource) Resource id #158
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object( Laminas\Diactoros\Uri ) id: 4 {
base => ''
webroot => '/'
protected allowedSchemes => [
'' => [maximum depth reached] ,
]
private scheme => 'https'
private userInfo => ''
private host => 'www.walmsley.ca'
private port => null
private path => '/page/stress-and-anxiety.html'
private query => ''
private fragment => ''
private uriString => null
}
protected session => object( Cake\Http\Session ) id: 5 {
protected _engine => null
protected _started => null
protected _lifetime => (int) 86400
protected _isCLI => false
}
protected flash => object( Cake\Http\FlashMessage ) id: 6 {
protected _defaultConfig => [
'' => [maximum depth reached] ,
]
protected session => object( Cake\Http\Session ) id: 5 {}
protected _config => [
'' => [maximum depth reached] ,
]
protected _configInitialized => true
}
protected attributes => [
'csrfToken' => 'L9+0CmoIWR9bVkeywiSJiOyugMCFx6rlKQ5gApClQzv+l3BKsKXPdVSPv0pBFGS/y8eS5FuEIbrzRTCXjC1fj2+E3nwJxnZ638vj97z+mtIYa1U1pJR3D8zyRi6DxvkQbb7bLnAhUIivpvTUa+JA3A==' ,
]
protected emulatedAttributes => [
(int) 0 => 'session' ,
(int) 1 => 'flash' ,
(int) 2 => 'webroot' ,
(int) 3 => 'base' ,
(int) 4 => 'params' ,
(int) 5 => 'here' ,
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
object( Cake\Http\Runner ) id: 0 {
protected queue => object( Cake\Http\MiddlewareQueue ) id: 1 {
protected position => (int) 5
protected queue => [
'' => [maximum depth reached] ,
]
}
protected fallbackHandler => object( App\Application ) id: 2 {
protected configDir => '/home/walmsley/public_html/config/'
protected plugins => object( Cake\Core\PluginCollection ) id: 3 {
}
protected controllerFactory => object( Cake\Controller\ControllerFactory ) id: 4 {
}
protected container => object( Cake\Core\Container ) id: 5 {
}
protected _eventManager => object( Cake\Event\EventManager ) id: 6 {
}
protected _eventClass => 'Cake\Event\Event'
}
}
*/
public function process ( ServerRequestInterface $request , RequestHandlerInterface $handler ): ResponseInterface
{
if (! in_array ( $request -> getMethod (), $this -> methods , true )) {
return $handler -> handle ( $request );
}
[ $type ] = explode ( ';' , $request -> getHeaderLine ( 'Content-Type' ));
$type = strtolower ( $type );
if (!isset( $this -> parsers [ $type ])) {
Arguments
object( Cake\Http\ServerRequest ) id: 0 {
trustProxy => false
protected params => [
'slug' => 'stress-and-anxiety' ,
'pass' => [
(int) 0 => 'stress-and-anxiety' ,
] ,
'controller' => 'Contents' ,
'action' => 'preview' ,
'plugin' => null ,
'_matchedRoute' => '/page/:slug.html' ,
'_ext' => null ,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'PATH' => '/usr/local/bin:/bin:/usr/bin' ,
'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' ,
'HTTP_ACCEPT_ENCODING' => 'br,gzip' ,
'HTTP_ACCEPT_LANGUAGE' => 'en-US,en;q=0.5' ,
'HTTP_HOST' => 'www.walmsley.ca' ,
'HTTP_USER_AGENT' => 'CCBot/2.0 (https://commoncrawl.org/faq/)' ,
'HTTP_X_HTTPS' => '1' ,
'DOCUMENT_ROOT' => '/home/walmsley/public_html' ,
'REMOTE_ADDR' => '44.201.97.138' ,
'REMOTE_PORT' => '60962' ,
'SERVER_ADDR' => '209.54.112.191' ,
'SERVER_NAME' => 'www.walmsley.ca' ,
'SERVER_ADMIN' => 'webmaster@walmsley.ca' ,
'SERVER_PORT' => '443' ,
'REQUEST_SCHEME' => 'https' ,
'REQUEST_URI' => '/page/stress-and-anxiety.html' ,
'REDIRECT_URL' => '/webroot/page/stress-and-anxiety.html' ,
'REDIRECT_REQUEST_METHOD' => 'GET' ,
'HTTPS' => 'on' ,
'REDIRECT_STATUS' => '200' ,
'X_SPDY' => 'HTTP2' ,
'SSL_PROTOCOL' => 'TLSv1.3' ,
'SSL_CIPHER' => 'TLS_AES_256_GCM_SHA384' ,
'SSL_CIPHER_USEKEYSIZE' => '256' ,
'SSL_CIPHER_ALGKEYSIZE' => '256' ,
'SCRIPT_FILENAME' => '/home/walmsley/public_html/webroot/index.php' ,
'QUERY_STRING' => '' ,
'SCRIPT_URI' => 'https://www.walmsley.ca/page/stress-and-anxiety.html' ,
'SCRIPT_URL' => '/page/stress-and-anxiety.html' ,
'SCRIPT_NAME' => '/webroot/index.php' ,
'SERVER_PROTOCOL' => 'HTTP/1.1' ,
'SERVER_SOFTWARE' => 'LiteSpeed' ,
'REQUEST_METHOD' => 'GET' ,
'X-LSCACHE' => 'on' ,
'PHP_SELF' => '/webroot/index.php' ,
'REQUEST_TIME_FLOAT' => (float) 1726879610.6677 ,
'REQUEST_TIME' => (int) 1726879610 ,
'ORIGINAL_REQUEST_METHOD' => 'GET' ,
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'GET' ,
] ,
'post' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'POST' ,
] ,
'put' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'PUT' ,
] ,
'patch' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'PATCH' ,
] ,
'delete' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'DELETE' ,
] ,
'head' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'HEAD' ,
] ,
'options' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'OPTIONS' ,
] ,
'ssl' => [
'env' => 'HTTPS' ,
'options' => [
'' => [maximum depth reached] ,
] ,
] ,
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH' ,
'value' => 'XMLHttpRequest' ,
] ,
'json' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'json' ,
] ,
'xml' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'xml' ,
] ,
'mobile' => object( Closure ) id: 1 {
} ,
'tablet' => object( Closure ) id: 2 {
} ,
'csv' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'csv' ,
] ,
]
protected _detectorCache => [
]
protected stream => object( Laminas\Diactoros\PhpInputStream ) id: 3 {
protected resource => (resource) Resource id #158
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object( Laminas\Diactoros\Uri ) id: 4 {
base => ''
webroot => '/'
protected allowedSchemes => [
'' => [maximum depth reached] ,
]
private scheme => 'https'
private userInfo => ''
private host => 'www.walmsley.ca'
private port => null
private path => '/page/stress-and-anxiety.html'
private query => ''
private fragment => ''
private uriString => null
}
protected session => object( Cake\Http\Session ) id: 5 {
protected _engine => null
protected _started => null
protected _lifetime => (int) 86400
protected _isCLI => false
}
protected flash => object( Cake\Http\FlashMessage ) id: 6 {
protected _defaultConfig => [
'' => [maximum depth reached] ,
]
protected session => object( Cake\Http\Session ) id: 5 {}
protected _config => [
'' => [maximum depth reached] ,
]
protected _configInitialized => true
}
protected attributes => [
]
protected emulatedAttributes => [
(int) 0 => 'session' ,
(int) 1 => 'flash' ,
(int) 2 => 'webroot' ,
(int) 3 => 'base' ,
(int) 4 => 'params' ,
(int) 5 => 'here' ,
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
if ( $this -> queue -> valid ()) {
$middleware = $this -> queue -> current ();
$this -> queue -> next ();
return $middleware -> process ( $request , $this );
}
if ( $this -> fallbackHandler ) {
return $this -> fallbackHandler -> handle ( $request );
Arguments
object( Cake\Http\ServerRequest ) id: 0 {
trustProxy => false
protected params => [
'slug' => 'stress-and-anxiety' ,
'pass' => [
(int) 0 => 'stress-and-anxiety' ,
] ,
'controller' => 'Contents' ,
'action' => 'preview' ,
'plugin' => null ,
'_matchedRoute' => '/page/:slug.html' ,
'_ext' => null ,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'PATH' => '/usr/local/bin:/bin:/usr/bin' ,
'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' ,
'HTTP_ACCEPT_ENCODING' => 'br,gzip' ,
'HTTP_ACCEPT_LANGUAGE' => 'en-US,en;q=0.5' ,
'HTTP_HOST' => 'www.walmsley.ca' ,
'HTTP_USER_AGENT' => 'CCBot/2.0 (https://commoncrawl.org/faq/)' ,
'HTTP_X_HTTPS' => '1' ,
'DOCUMENT_ROOT' => '/home/walmsley/public_html' ,
'REMOTE_ADDR' => '44.201.97.138' ,
'REMOTE_PORT' => '60962' ,
'SERVER_ADDR' => '209.54.112.191' ,
'SERVER_NAME' => 'www.walmsley.ca' ,
'SERVER_ADMIN' => 'webmaster@walmsley.ca' ,
'SERVER_PORT' => '443' ,
'REQUEST_SCHEME' => 'https' ,
'REQUEST_URI' => '/page/stress-and-anxiety.html' ,
'REDIRECT_URL' => '/webroot/page/stress-and-anxiety.html' ,
'REDIRECT_REQUEST_METHOD' => 'GET' ,
'HTTPS' => 'on' ,
'REDIRECT_STATUS' => '200' ,
'X_SPDY' => 'HTTP2' ,
'SSL_PROTOCOL' => 'TLSv1.3' ,
'SSL_CIPHER' => 'TLS_AES_256_GCM_SHA384' ,
'SSL_CIPHER_USEKEYSIZE' => '256' ,
'SSL_CIPHER_ALGKEYSIZE' => '256' ,
'SCRIPT_FILENAME' => '/home/walmsley/public_html/webroot/index.php' ,
'QUERY_STRING' => '' ,
'SCRIPT_URI' => 'https://www.walmsley.ca/page/stress-and-anxiety.html' ,
'SCRIPT_URL' => '/page/stress-and-anxiety.html' ,
'SCRIPT_NAME' => '/webroot/index.php' ,
'SERVER_PROTOCOL' => 'HTTP/1.1' ,
'SERVER_SOFTWARE' => 'LiteSpeed' ,
'REQUEST_METHOD' => 'GET' ,
'X-LSCACHE' => 'on' ,
'PHP_SELF' => '/webroot/index.php' ,
'REQUEST_TIME_FLOAT' => (float) 1726879610.6677 ,
'REQUEST_TIME' => (int) 1726879610 ,
'ORIGINAL_REQUEST_METHOD' => 'GET' ,
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'GET' ,
] ,
'post' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'POST' ,
] ,
'put' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'PUT' ,
] ,
'patch' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'PATCH' ,
] ,
'delete' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'DELETE' ,
] ,
'head' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'HEAD' ,
] ,
'options' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'OPTIONS' ,
] ,
'ssl' => [
'env' => 'HTTPS' ,
'options' => [
'' => [maximum depth reached] ,
] ,
] ,
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH' ,
'value' => 'XMLHttpRequest' ,
] ,
'json' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'json' ,
] ,
'xml' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'xml' ,
] ,
'mobile' => object( Closure ) id: 1 {
} ,
'tablet' => object( Closure ) id: 2 {
} ,
'csv' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'csv' ,
] ,
]
protected _detectorCache => [
]
protected stream => object( Laminas\Diactoros\PhpInputStream ) id: 3 {
protected resource => (resource) Resource id #158
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object( Laminas\Diactoros\Uri ) id: 4 {
base => ''
webroot => '/'
protected allowedSchemes => [
'' => [maximum depth reached] ,
]
private scheme => 'https'
private userInfo => ''
private host => 'www.walmsley.ca'
private port => null
private path => '/page/stress-and-anxiety.html'
private query => ''
private fragment => ''
private uriString => null
}
protected session => object( Cake\Http\Session ) id: 5 {
protected _engine => null
protected _started => null
protected _lifetime => (int) 86400
protected _isCLI => false
}
protected flash => object( Cake\Http\FlashMessage ) id: 6 {
protected _defaultConfig => [
'' => [maximum depth reached] ,
]
protected session => object( Cake\Http\Session ) id: 5 {}
protected _config => [
'' => [maximum depth reached] ,
]
protected _configInitialized => true
}
protected attributes => [
]
protected emulatedAttributes => [
(int) 0 => 'session' ,
(int) 1 => 'flash' ,
(int) 2 => 'webroot' ,
(int) 3 => 'base' ,
(int) 4 => 'params' ,
(int) 5 => 'here' ,
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
object( Cake\Http\Runner ) id: 0 {
protected queue => object( Cake\Http\MiddlewareQueue ) id: 1 {
protected position => (int) 5
protected queue => [
'' => [maximum depth reached] ,
]
}
protected fallbackHandler => object( App\Application ) id: 2 {
protected configDir => '/home/walmsley/public_html/config/'
protected plugins => object( Cake\Core\PluginCollection ) id: 3 {
}
protected controllerFactory => object( Cake\Controller\ControllerFactory ) id: 4 {
}
protected container => object( Cake\Core\Container ) id: 5 {
}
protected _eventManager => object( Cake\Event\EventManager ) id: 6 {
}
protected _eventClass => 'Cake\Event\Event'
}
}
);
}
$matching = Router :: getRouteCollection ()-> getMiddleware ( $middleware );
if (! $matching ) {
return $handler -> handle ( $request );
}
$middleware = new MiddlewareQueue ( $matching );
$runner = new Runner ();
Arguments
object( Cake\Http\ServerRequest ) id: 0 {
trustProxy => false
protected params => [
'slug' => 'stress-and-anxiety' ,
'pass' => [
(int) 0 => 'stress-and-anxiety' ,
] ,
'controller' => 'Contents' ,
'action' => 'preview' ,
'plugin' => null ,
'_matchedRoute' => '/page/:slug.html' ,
'_ext' => null ,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'PATH' => '/usr/local/bin:/bin:/usr/bin' ,
'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' ,
'HTTP_ACCEPT_ENCODING' => 'br,gzip' ,
'HTTP_ACCEPT_LANGUAGE' => 'en-US,en;q=0.5' ,
'HTTP_HOST' => 'www.walmsley.ca' ,
'HTTP_USER_AGENT' => 'CCBot/2.0 (https://commoncrawl.org/faq/)' ,
'HTTP_X_HTTPS' => '1' ,
'DOCUMENT_ROOT' => '/home/walmsley/public_html' ,
'REMOTE_ADDR' => '44.201.97.138' ,
'REMOTE_PORT' => '60962' ,
'SERVER_ADDR' => '209.54.112.191' ,
'SERVER_NAME' => 'www.walmsley.ca' ,
'SERVER_ADMIN' => 'webmaster@walmsley.ca' ,
'SERVER_PORT' => '443' ,
'REQUEST_SCHEME' => 'https' ,
'REQUEST_URI' => '/page/stress-and-anxiety.html' ,
'REDIRECT_URL' => '/webroot/page/stress-and-anxiety.html' ,
'REDIRECT_REQUEST_METHOD' => 'GET' ,
'HTTPS' => 'on' ,
'REDIRECT_STATUS' => '200' ,
'X_SPDY' => 'HTTP2' ,
'SSL_PROTOCOL' => 'TLSv1.3' ,
'SSL_CIPHER' => 'TLS_AES_256_GCM_SHA384' ,
'SSL_CIPHER_USEKEYSIZE' => '256' ,
'SSL_CIPHER_ALGKEYSIZE' => '256' ,
'SCRIPT_FILENAME' => '/home/walmsley/public_html/webroot/index.php' ,
'QUERY_STRING' => '' ,
'SCRIPT_URI' => 'https://www.walmsley.ca/page/stress-and-anxiety.html' ,
'SCRIPT_URL' => '/page/stress-and-anxiety.html' ,
'SCRIPT_NAME' => '/webroot/index.php' ,
'SERVER_PROTOCOL' => 'HTTP/1.1' ,
'SERVER_SOFTWARE' => 'LiteSpeed' ,
'REQUEST_METHOD' => 'GET' ,
'X-LSCACHE' => 'on' ,
'PHP_SELF' => '/webroot/index.php' ,
'REQUEST_TIME_FLOAT' => (float) 1726879610.6677 ,
'REQUEST_TIME' => (int) 1726879610 ,
'ORIGINAL_REQUEST_METHOD' => 'GET' ,
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'GET' ,
] ,
'post' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'POST' ,
] ,
'put' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'PUT' ,
] ,
'patch' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'PATCH' ,
] ,
'delete' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'DELETE' ,
] ,
'head' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'HEAD' ,
] ,
'options' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'OPTIONS' ,
] ,
'ssl' => [
'env' => 'HTTPS' ,
'options' => [
'' => [maximum depth reached] ,
] ,
] ,
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH' ,
'value' => 'XMLHttpRequest' ,
] ,
'json' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'json' ,
] ,
'xml' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'xml' ,
] ,
'mobile' => object( Closure ) id: 1 {
} ,
'tablet' => object( Closure ) id: 2 {
} ,
'csv' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'csv' ,
] ,
]
protected _detectorCache => [
]
protected stream => object( Laminas\Diactoros\PhpInputStream ) id: 3 {
protected resource => (resource) Resource id #158
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object( Laminas\Diactoros\Uri ) id: 4 {
base => ''
webroot => '/'
protected allowedSchemes => [
'' => [maximum depth reached] ,
]
private scheme => 'https'
private userInfo => ''
private host => 'www.walmsley.ca'
private port => null
private path => '/page/stress-and-anxiety.html'
private query => ''
private fragment => ''
private uriString => null
}
protected session => object( Cake\Http\Session ) id: 5 {
protected _engine => null
protected _started => null
protected _lifetime => (int) 86400
protected _isCLI => false
}
protected flash => object( Cake\Http\FlashMessage ) id: 6 {
protected _defaultConfig => [
'' => [maximum depth reached] ,
]
protected session => object( Cake\Http\Session ) id: 5 {}
protected _config => [
'' => [maximum depth reached] ,
]
protected _configInitialized => true
}
protected attributes => [
]
protected emulatedAttributes => [
(int) 0 => 'session' ,
(int) 1 => 'flash' ,
(int) 2 => 'webroot' ,
(int) 3 => 'base' ,
(int) 4 => 'params' ,
(int) 5 => 'here' ,
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
if ( $this -> queue -> valid ()) {
$middleware = $this -> queue -> current ();
$this -> queue -> next ();
return $middleware -> process ( $request , $this );
}
if ( $this -> fallbackHandler ) {
return $this -> fallbackHandler -> handle ( $request );
Arguments
object( Cake\Http\ServerRequest ) id: 0 {
trustProxy => false
protected params => [
'slug' => 'stress-and-anxiety' ,
'pass' => [
(int) 0 => 'stress-and-anxiety' ,
] ,
'controller' => 'Contents' ,
'action' => 'preview' ,
'plugin' => null ,
'_matchedRoute' => '/page/:slug.html' ,
'_ext' => null ,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'PATH' => '/usr/local/bin:/bin:/usr/bin' ,
'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' ,
'HTTP_ACCEPT_ENCODING' => 'br,gzip' ,
'HTTP_ACCEPT_LANGUAGE' => 'en-US,en;q=0.5' ,
'HTTP_HOST' => 'www.walmsley.ca' ,
'HTTP_USER_AGENT' => 'CCBot/2.0 (https://commoncrawl.org/faq/)' ,
'HTTP_X_HTTPS' => '1' ,
'DOCUMENT_ROOT' => '/home/walmsley/public_html' ,
'REMOTE_ADDR' => '44.201.97.138' ,
'REMOTE_PORT' => '60962' ,
'SERVER_ADDR' => '209.54.112.191' ,
'SERVER_NAME' => 'www.walmsley.ca' ,
'SERVER_ADMIN' => 'webmaster@walmsley.ca' ,
'SERVER_PORT' => '443' ,
'REQUEST_SCHEME' => 'https' ,
'REQUEST_URI' => '/page/stress-and-anxiety.html' ,
'REDIRECT_URL' => '/webroot/page/stress-and-anxiety.html' ,
'REDIRECT_REQUEST_METHOD' => 'GET' ,
'HTTPS' => 'on' ,
'REDIRECT_STATUS' => '200' ,
'X_SPDY' => 'HTTP2' ,
'SSL_PROTOCOL' => 'TLSv1.3' ,
'SSL_CIPHER' => 'TLS_AES_256_GCM_SHA384' ,
'SSL_CIPHER_USEKEYSIZE' => '256' ,
'SSL_CIPHER_ALGKEYSIZE' => '256' ,
'SCRIPT_FILENAME' => '/home/walmsley/public_html/webroot/index.php' ,
'QUERY_STRING' => '' ,
'SCRIPT_URI' => 'https://www.walmsley.ca/page/stress-and-anxiety.html' ,
'SCRIPT_URL' => '/page/stress-and-anxiety.html' ,
'SCRIPT_NAME' => '/webroot/index.php' ,
'SERVER_PROTOCOL' => 'HTTP/1.1' ,
'SERVER_SOFTWARE' => 'LiteSpeed' ,
'REQUEST_METHOD' => 'GET' ,
'X-LSCACHE' => 'on' ,
'PHP_SELF' => '/webroot/index.php' ,
'REQUEST_TIME_FLOAT' => (float) 1726879610.6677 ,
'REQUEST_TIME' => (int) 1726879610 ,
'ORIGINAL_REQUEST_METHOD' => 'GET' ,
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'GET' ,
] ,
'post' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'POST' ,
] ,
'put' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'PUT' ,
] ,
'patch' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'PATCH' ,
] ,
'delete' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'DELETE' ,
] ,
'head' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'HEAD' ,
] ,
'options' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'OPTIONS' ,
] ,
'ssl' => [
'env' => 'HTTPS' ,
'options' => [
'' => [maximum depth reached] ,
] ,
] ,
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH' ,
'value' => 'XMLHttpRequest' ,
] ,
'json' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'json' ,
] ,
'xml' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'xml' ,
] ,
'mobile' => object( Closure ) id: 1 {
} ,
'tablet' => object( Closure ) id: 2 {
} ,
'csv' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'csv' ,
] ,
]
protected _detectorCache => [
]
protected stream => object( Laminas\Diactoros\PhpInputStream ) id: 3 {
protected resource => (resource) Resource id #158
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object( Laminas\Diactoros\Uri ) id: 4 {
base => ''
webroot => '/'
protected allowedSchemes => [
'' => [maximum depth reached] ,
]
private scheme => 'https'
private userInfo => ''
private host => 'www.walmsley.ca'
private port => null
private path => '/page/stress-and-anxiety.html'
private query => ''
private fragment => ''
private uriString => null
}
protected session => object( Cake\Http\Session ) id: 5 {
protected _engine => null
protected _started => null
protected _lifetime => (int) 86400
protected _isCLI => false
}
protected flash => object( Cake\Http\FlashMessage ) id: 6 {
protected _defaultConfig => [
'' => [maximum depth reached] ,
]
protected session => object( Cake\Http\Session ) id: 5 {}
protected _config => [
'' => [maximum depth reached] ,
]
protected _configInitialized => true
}
protected attributes => [
]
protected emulatedAttributes => [
(int) 0 => 'session' ,
(int) 1 => 'flash' ,
(int) 2 => 'webroot' ,
(int) 3 => 'base' ,
(int) 4 => 'params' ,
(int) 5 => 'here' ,
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
object( Cake\Http\Runner ) id: 0 {
protected queue => object( Cake\Http\MiddlewareQueue ) id: 1 {
protected position => (int) 5
protected queue => [
'' => [maximum depth reached] ,
]
}
protected fallbackHandler => object( App\Application ) id: 2 {
protected configDir => '/home/walmsley/public_html/config/'
protected plugins => object( Cake\Core\PluginCollection ) id: 3 {
}
protected controllerFactory => object( Cake\Controller\ControllerFactory ) id: 4 {
}
protected container => object( Cake\Core\Container ) id: 5 {
}
protected _eventManager => object( Cake\Event\EventManager ) id: 6 {
}
protected _eventClass => 'Cake\Event\Event'
}
}
}
$assetFile = $this -> _getAssetFile ( $url );
if ( $assetFile === null || ! is_file ( $assetFile )) {
return $handler -> handle ( $request );
}
$file = new SplFileInfo ( $assetFile );
$modifiedTime = $file -> getMTime ();
Arguments
object( Cake\Http\ServerRequest ) id: 0 {
trustProxy => false
protected params => [
'plugin' => null ,
'controller' => null ,
'action' => null ,
'_ext' => null ,
'pass' => [
] ,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'PATH' => '/usr/local/bin:/bin:/usr/bin' ,
'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' ,
'HTTP_ACCEPT_ENCODING' => 'br,gzip' ,
'HTTP_ACCEPT_LANGUAGE' => 'en-US,en;q=0.5' ,
'HTTP_HOST' => 'www.walmsley.ca' ,
'HTTP_USER_AGENT' => 'CCBot/2.0 (https://commoncrawl.org/faq/)' ,
'HTTP_X_HTTPS' => '1' ,
'DOCUMENT_ROOT' => '/home/walmsley/public_html' ,
'REMOTE_ADDR' => '44.201.97.138' ,
'REMOTE_PORT' => '60962' ,
'SERVER_ADDR' => '209.54.112.191' ,
'SERVER_NAME' => 'www.walmsley.ca' ,
'SERVER_ADMIN' => 'webmaster@walmsley.ca' ,
'SERVER_PORT' => '443' ,
'REQUEST_SCHEME' => 'https' ,
'REQUEST_URI' => '/page/stress-and-anxiety.html' ,
'REDIRECT_URL' => '/webroot/page/stress-and-anxiety.html' ,
'REDIRECT_REQUEST_METHOD' => 'GET' ,
'HTTPS' => 'on' ,
'REDIRECT_STATUS' => '200' ,
'X_SPDY' => 'HTTP2' ,
'SSL_PROTOCOL' => 'TLSv1.3' ,
'SSL_CIPHER' => 'TLS_AES_256_GCM_SHA384' ,
'SSL_CIPHER_USEKEYSIZE' => '256' ,
'SSL_CIPHER_ALGKEYSIZE' => '256' ,
'SCRIPT_FILENAME' => '/home/walmsley/public_html/webroot/index.php' ,
'QUERY_STRING' => '' ,
'SCRIPT_URI' => 'https://www.walmsley.ca/page/stress-and-anxiety.html' ,
'SCRIPT_URL' => '/page/stress-and-anxiety.html' ,
'SCRIPT_NAME' => '/webroot/index.php' ,
'SERVER_PROTOCOL' => 'HTTP/1.1' ,
'SERVER_SOFTWARE' => 'LiteSpeed' ,
'REQUEST_METHOD' => 'GET' ,
'X-LSCACHE' => 'on' ,
'PHP_SELF' => '/webroot/index.php' ,
'REQUEST_TIME_FLOAT' => (float) 1726879610.6677 ,
'REQUEST_TIME' => (int) 1726879610 ,
'ORIGINAL_REQUEST_METHOD' => 'GET' ,
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'GET' ,
] ,
'post' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'POST' ,
] ,
'put' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'PUT' ,
] ,
'patch' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'PATCH' ,
] ,
'delete' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'DELETE' ,
] ,
'head' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'HEAD' ,
] ,
'options' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'OPTIONS' ,
] ,
'ssl' => [
'env' => 'HTTPS' ,
'options' => [
'' => [maximum depth reached] ,
] ,
] ,
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH' ,
'value' => 'XMLHttpRequest' ,
] ,
'json' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'json' ,
] ,
'xml' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'xml' ,
] ,
'mobile' => object( Closure ) id: 1 {
} ,
'tablet' => object( Closure ) id: 2 {
} ,
'csv' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'csv' ,
] ,
]
protected _detectorCache => [
]
protected stream => object( Laminas\Diactoros\PhpInputStream ) id: 3 {
protected resource => (resource) Resource id #158
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object( Laminas\Diactoros\Uri ) id: 4 {
base => ''
webroot => '/'
protected allowedSchemes => [
'' => [maximum depth reached] ,
]
private scheme => 'https'
private userInfo => ''
private host => 'www.walmsley.ca'
private port => null
private path => '/page/stress-and-anxiety.html'
private query => ''
private fragment => ''
private uriString => null
}
protected session => object( Cake\Http\Session ) id: 5 {
protected _engine => null
protected _started => null
protected _lifetime => (int) 86400
protected _isCLI => false
}
protected flash => object( Cake\Http\FlashMessage ) id: 6 {
protected _defaultConfig => [
'' => [maximum depth reached] ,
]
protected session => object( Cake\Http\Session ) id: 5 {}
protected _config => [
'' => [maximum depth reached] ,
]
protected _configInitialized => true
}
protected attributes => [
]
protected emulatedAttributes => [
(int) 0 => 'session' ,
(int) 1 => 'flash' ,
(int) 2 => 'webroot' ,
(int) 3 => 'base' ,
(int) 4 => 'params' ,
(int) 5 => 'here' ,
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
if ( $this -> queue -> valid ()) {
$middleware = $this -> queue -> current ();
$this -> queue -> next ();
return $middleware -> process ( $request , $this );
}
if ( $this -> fallbackHandler ) {
return $this -> fallbackHandler -> handle ( $request );
Arguments
object( Cake\Http\ServerRequest ) id: 0 {
trustProxy => false
protected params => [
'plugin' => null ,
'controller' => null ,
'action' => null ,
'_ext' => null ,
'pass' => [
] ,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'PATH' => '/usr/local/bin:/bin:/usr/bin' ,
'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' ,
'HTTP_ACCEPT_ENCODING' => 'br,gzip' ,
'HTTP_ACCEPT_LANGUAGE' => 'en-US,en;q=0.5' ,
'HTTP_HOST' => 'www.walmsley.ca' ,
'HTTP_USER_AGENT' => 'CCBot/2.0 (https://commoncrawl.org/faq/)' ,
'HTTP_X_HTTPS' => '1' ,
'DOCUMENT_ROOT' => '/home/walmsley/public_html' ,
'REMOTE_ADDR' => '44.201.97.138' ,
'REMOTE_PORT' => '60962' ,
'SERVER_ADDR' => '209.54.112.191' ,
'SERVER_NAME' => 'www.walmsley.ca' ,
'SERVER_ADMIN' => 'webmaster@walmsley.ca' ,
'SERVER_PORT' => '443' ,
'REQUEST_SCHEME' => 'https' ,
'REQUEST_URI' => '/page/stress-and-anxiety.html' ,
'REDIRECT_URL' => '/webroot/page/stress-and-anxiety.html' ,
'REDIRECT_REQUEST_METHOD' => 'GET' ,
'HTTPS' => 'on' ,
'REDIRECT_STATUS' => '200' ,
'X_SPDY' => 'HTTP2' ,
'SSL_PROTOCOL' => 'TLSv1.3' ,
'SSL_CIPHER' => 'TLS_AES_256_GCM_SHA384' ,
'SSL_CIPHER_USEKEYSIZE' => '256' ,
'SSL_CIPHER_ALGKEYSIZE' => '256' ,
'SCRIPT_FILENAME' => '/home/walmsley/public_html/webroot/index.php' ,
'QUERY_STRING' => '' ,
'SCRIPT_URI' => 'https://www.walmsley.ca/page/stress-and-anxiety.html' ,
'SCRIPT_URL' => '/page/stress-and-anxiety.html' ,
'SCRIPT_NAME' => '/webroot/index.php' ,
'SERVER_PROTOCOL' => 'HTTP/1.1' ,
'SERVER_SOFTWARE' => 'LiteSpeed' ,
'REQUEST_METHOD' => 'GET' ,
'X-LSCACHE' => 'on' ,
'PHP_SELF' => '/webroot/index.php' ,
'REQUEST_TIME_FLOAT' => (float) 1726879610.6677 ,
'REQUEST_TIME' => (int) 1726879610 ,
'ORIGINAL_REQUEST_METHOD' => 'GET' ,
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'GET' ,
] ,
'post' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'POST' ,
] ,
'put' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'PUT' ,
] ,
'patch' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'PATCH' ,
] ,
'delete' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'DELETE' ,
] ,
'head' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'HEAD' ,
] ,
'options' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'OPTIONS' ,
] ,
'ssl' => [
'env' => 'HTTPS' ,
'options' => [
'' => [maximum depth reached] ,
] ,
] ,
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH' ,
'value' => 'XMLHttpRequest' ,
] ,
'json' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'json' ,
] ,
'xml' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'xml' ,
] ,
'mobile' => object( Closure ) id: 1 {
} ,
'tablet' => object( Closure ) id: 2 {
} ,
'csv' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'csv' ,
] ,
]
protected _detectorCache => [
]
protected stream => object( Laminas\Diactoros\PhpInputStream ) id: 3 {
protected resource => (resource) Resource id #158
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object( Laminas\Diactoros\Uri ) id: 4 {
base => ''
webroot => '/'
protected allowedSchemes => [
'' => [maximum depth reached] ,
]
private scheme => 'https'
private userInfo => ''
private host => 'www.walmsley.ca'
private port => null
private path => '/page/stress-and-anxiety.html'
private query => ''
private fragment => ''
private uriString => null
}
protected session => object( Cake\Http\Session ) id: 5 {
protected _engine => null
protected _started => null
protected _lifetime => (int) 86400
protected _isCLI => false
}
protected flash => object( Cake\Http\FlashMessage ) id: 6 {
protected _defaultConfig => [
'' => [maximum depth reached] ,
]
protected session => object( Cake\Http\Session ) id: 5 {}
protected _config => [
'' => [maximum depth reached] ,
]
protected _configInitialized => true
}
protected attributes => [
]
protected emulatedAttributes => [
(int) 0 => 'session' ,
(int) 1 => 'flash' ,
(int) 2 => 'webroot' ,
(int) 3 => 'base' ,
(int) 4 => 'params' ,
(int) 5 => 'here' ,
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
object( Cake\Http\Runner ) id: 0 {
protected queue => object( Cake\Http\MiddlewareQueue ) id: 1 {
protected position => (int) 5
protected queue => [
'' => [maximum depth reached] ,
]
}
protected fallbackHandler => object( App\Application ) id: 2 {
protected configDir => '/home/walmsley/public_html/config/'
protected plugins => object( Cake\Core\PluginCollection ) id: 3 {
}
protected controllerFactory => object( Cake\Controller\ControllerFactory ) id: 4 {
}
protected container => object( Cake\Core\Container ) id: 5 {
}
protected _eventManager => object( Cake\Event\EventManager ) id: 6 {
}
protected _eventClass => 'Cake\Event\Event'
}
}
*/
public function process ( ServerRequestInterface $request , RequestHandlerInterface $handler ): ResponseInterface
{
try {
return $handler -> handle ( $request );
} catch ( RedirectException $exception ) {
return $this -> handleRedirect ( $exception );
} catch ( Throwable $exception ) {
return $this -> handleException ( $exception , $request );
Arguments
object( Cake\Http\ServerRequest ) id: 0 {
trustProxy => false
protected params => [
'plugin' => null ,
'controller' => null ,
'action' => null ,
'_ext' => null ,
'pass' => [
] ,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'PATH' => '/usr/local/bin:/bin:/usr/bin' ,
'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' ,
'HTTP_ACCEPT_ENCODING' => 'br,gzip' ,
'HTTP_ACCEPT_LANGUAGE' => 'en-US,en;q=0.5' ,
'HTTP_HOST' => 'www.walmsley.ca' ,
'HTTP_USER_AGENT' => 'CCBot/2.0 (https://commoncrawl.org/faq/)' ,
'HTTP_X_HTTPS' => '1' ,
'DOCUMENT_ROOT' => '/home/walmsley/public_html' ,
'REMOTE_ADDR' => '44.201.97.138' ,
'REMOTE_PORT' => '60962' ,
'SERVER_ADDR' => '209.54.112.191' ,
'SERVER_NAME' => 'www.walmsley.ca' ,
'SERVER_ADMIN' => 'webmaster@walmsley.ca' ,
'SERVER_PORT' => '443' ,
'REQUEST_SCHEME' => 'https' ,
'REQUEST_URI' => '/page/stress-and-anxiety.html' ,
'REDIRECT_URL' => '/webroot/page/stress-and-anxiety.html' ,
'REDIRECT_REQUEST_METHOD' => 'GET' ,
'HTTPS' => 'on' ,
'REDIRECT_STATUS' => '200' ,
'X_SPDY' => 'HTTP2' ,
'SSL_PROTOCOL' => 'TLSv1.3' ,
'SSL_CIPHER' => 'TLS_AES_256_GCM_SHA384' ,
'SSL_CIPHER_USEKEYSIZE' => '256' ,
'SSL_CIPHER_ALGKEYSIZE' => '256' ,
'SCRIPT_FILENAME' => '/home/walmsley/public_html/webroot/index.php' ,
'QUERY_STRING' => '' ,
'SCRIPT_URI' => 'https://www.walmsley.ca/page/stress-and-anxiety.html' ,
'SCRIPT_URL' => '/page/stress-and-anxiety.html' ,
'SCRIPT_NAME' => '/webroot/index.php' ,
'SERVER_PROTOCOL' => 'HTTP/1.1' ,
'SERVER_SOFTWARE' => 'LiteSpeed' ,
'REQUEST_METHOD' => 'GET' ,
'X-LSCACHE' => 'on' ,
'PHP_SELF' => '/webroot/index.php' ,
'REQUEST_TIME_FLOAT' => (float) 1726879610.6677 ,
'REQUEST_TIME' => (int) 1726879610 ,
'ORIGINAL_REQUEST_METHOD' => 'GET' ,
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'GET' ,
] ,
'post' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'POST' ,
] ,
'put' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'PUT' ,
] ,
'patch' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'PATCH' ,
] ,
'delete' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'DELETE' ,
] ,
'head' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'HEAD' ,
] ,
'options' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'OPTIONS' ,
] ,
'ssl' => [
'env' => 'HTTPS' ,
'options' => [
'' => [maximum depth reached] ,
] ,
] ,
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH' ,
'value' => 'XMLHttpRequest' ,
] ,
'json' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'json' ,
] ,
'xml' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'xml' ,
] ,
'mobile' => object( Closure ) id: 1 {
} ,
'tablet' => object( Closure ) id: 2 {
} ,
'csv' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'csv' ,
] ,
]
protected _detectorCache => [
]
protected stream => object( Laminas\Diactoros\PhpInputStream ) id: 3 {
protected resource => (resource) Resource id #158
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object( Laminas\Diactoros\Uri ) id: 4 {
base => ''
webroot => '/'
protected allowedSchemes => [
'' => [maximum depth reached] ,
]
private scheme => 'https'
private userInfo => ''
private host => 'www.walmsley.ca'
private port => null
private path => '/page/stress-and-anxiety.html'
private query => ''
private fragment => ''
private uriString => null
}
protected session => object( Cake\Http\Session ) id: 5 {
protected _engine => null
protected _started => null
protected _lifetime => (int) 86400
protected _isCLI => false
}
protected flash => object( Cake\Http\FlashMessage ) id: 6 {
protected _defaultConfig => [
'' => [maximum depth reached] ,
]
protected session => object( Cake\Http\Session ) id: 5 {}
protected _config => [
'' => [maximum depth reached] ,
]
protected _configInitialized => true
}
protected attributes => [
]
protected emulatedAttributes => [
(int) 0 => 'session' ,
(int) 1 => 'flash' ,
(int) 2 => 'webroot' ,
(int) 3 => 'base' ,
(int) 4 => 'params' ,
(int) 5 => 'here' ,
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
if ( $this -> queue -> valid ()) {
$middleware = $this -> queue -> current ();
$this -> queue -> next ();
return $middleware -> process ( $request , $this );
}
if ( $this -> fallbackHandler ) {
return $this -> fallbackHandler -> handle ( $request );
Arguments
object( Cake\Http\ServerRequest ) id: 0 {
trustProxy => false
protected params => [
'plugin' => null ,
'controller' => null ,
'action' => null ,
'_ext' => null ,
'pass' => [
] ,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'PATH' => '/usr/local/bin:/bin:/usr/bin' ,
'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' ,
'HTTP_ACCEPT_ENCODING' => 'br,gzip' ,
'HTTP_ACCEPT_LANGUAGE' => 'en-US,en;q=0.5' ,
'HTTP_HOST' => 'www.walmsley.ca' ,
'HTTP_USER_AGENT' => 'CCBot/2.0 (https://commoncrawl.org/faq/)' ,
'HTTP_X_HTTPS' => '1' ,
'DOCUMENT_ROOT' => '/home/walmsley/public_html' ,
'REMOTE_ADDR' => '44.201.97.138' ,
'REMOTE_PORT' => '60962' ,
'SERVER_ADDR' => '209.54.112.191' ,
'SERVER_NAME' => 'www.walmsley.ca' ,
'SERVER_ADMIN' => 'webmaster@walmsley.ca' ,
'SERVER_PORT' => '443' ,
'REQUEST_SCHEME' => 'https' ,
'REQUEST_URI' => '/page/stress-and-anxiety.html' ,
'REDIRECT_URL' => '/webroot/page/stress-and-anxiety.html' ,
'REDIRECT_REQUEST_METHOD' => 'GET' ,
'HTTPS' => 'on' ,
'REDIRECT_STATUS' => '200' ,
'X_SPDY' => 'HTTP2' ,
'SSL_PROTOCOL' => 'TLSv1.3' ,
'SSL_CIPHER' => 'TLS_AES_256_GCM_SHA384' ,
'SSL_CIPHER_USEKEYSIZE' => '256' ,
'SSL_CIPHER_ALGKEYSIZE' => '256' ,
'SCRIPT_FILENAME' => '/home/walmsley/public_html/webroot/index.php' ,
'QUERY_STRING' => '' ,
'SCRIPT_URI' => 'https://www.walmsley.ca/page/stress-and-anxiety.html' ,
'SCRIPT_URL' => '/page/stress-and-anxiety.html' ,
'SCRIPT_NAME' => '/webroot/index.php' ,
'SERVER_PROTOCOL' => 'HTTP/1.1' ,
'SERVER_SOFTWARE' => 'LiteSpeed' ,
'REQUEST_METHOD' => 'GET' ,
'X-LSCACHE' => 'on' ,
'PHP_SELF' => '/webroot/index.php' ,
'REQUEST_TIME_FLOAT' => (float) 1726879610.6677 ,
'REQUEST_TIME' => (int) 1726879610 ,
'ORIGINAL_REQUEST_METHOD' => 'GET' ,
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'GET' ,
] ,
'post' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'POST' ,
] ,
'put' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'PUT' ,
] ,
'patch' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'PATCH' ,
] ,
'delete' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'DELETE' ,
] ,
'head' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'HEAD' ,
] ,
'options' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'OPTIONS' ,
] ,
'ssl' => [
'env' => 'HTTPS' ,
'options' => [
'' => [maximum depth reached] ,
] ,
] ,
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH' ,
'value' => 'XMLHttpRequest' ,
] ,
'json' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'json' ,
] ,
'xml' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'xml' ,
] ,
'mobile' => object( Closure ) id: 1 {
} ,
'tablet' => object( Closure ) id: 2 {
} ,
'csv' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'csv' ,
] ,
]
protected _detectorCache => [
]
protected stream => object( Laminas\Diactoros\PhpInputStream ) id: 3 {
protected resource => (resource) Resource id #158
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object( Laminas\Diactoros\Uri ) id: 4 {
base => ''
webroot => '/'
protected allowedSchemes => [
'' => [maximum depth reached] ,
]
private scheme => 'https'
private userInfo => ''
private host => 'www.walmsley.ca'
private port => null
private path => '/page/stress-and-anxiety.html'
private query => ''
private fragment => ''
private uriString => null
}
protected session => object( Cake\Http\Session ) id: 5 {
protected _engine => null
protected _started => null
protected _lifetime => (int) 86400
protected _isCLI => false
}
protected flash => object( Cake\Http\FlashMessage ) id: 6 {
protected _defaultConfig => [
'' => [maximum depth reached] ,
]
protected session => object( Cake\Http\Session ) id: 5 {}
protected _config => [
'' => [maximum depth reached] ,
]
protected _configInitialized => true
}
protected attributes => [
]
protected emulatedAttributes => [
(int) 0 => 'session' ,
(int) 1 => 'flash' ,
(int) 2 => 'webroot' ,
(int) 3 => 'base' ,
(int) 4 => 'params' ,
(int) 5 => 'here' ,
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
object( Cake\Http\Runner ) id: 0 {
protected queue => object( Cake\Http\MiddlewareQueue ) id: 1 {
protected position => (int) 5
protected queue => [
'' => [maximum depth reached] ,
]
}
protected fallbackHandler => object( App\Application ) id: 2 {
protected configDir => '/home/walmsley/public_html/config/'
protected plugins => object( Cake\Core\PluginCollection ) id: 3 {
}
protected controllerFactory => object( Cake\Controller\ControllerFactory ) id: 4 {
}
protected container => object( Cake\Core\Container ) id: 5 {
}
protected _eventManager => object( Cake\Event\EventManager ) id: 6 {
}
protected _eventClass => 'Cake\Event\Event'
}
}
$this -> queue = $queue ;
$this -> queue -> rewind ();
$this -> fallbackHandler = $fallbackHandler ;
return $this -> handle ( $request );
}
/**
* Handle incoming server request and return a response .
Arguments
object( Cake\Http\ServerRequest ) id: 0 {
trustProxy => false
protected params => [
'plugin' => null ,
'controller' => null ,
'action' => null ,
'_ext' => null ,
'pass' => [
] ,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'PATH' => '/usr/local/bin:/bin:/usr/bin' ,
'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' ,
'HTTP_ACCEPT_ENCODING' => 'br,gzip' ,
'HTTP_ACCEPT_LANGUAGE' => 'en-US,en;q=0.5' ,
'HTTP_HOST' => 'www.walmsley.ca' ,
'HTTP_USER_AGENT' => 'CCBot/2.0 (https://commoncrawl.org/faq/)' ,
'HTTP_X_HTTPS' => '1' ,
'DOCUMENT_ROOT' => '/home/walmsley/public_html' ,
'REMOTE_ADDR' => '44.201.97.138' ,
'REMOTE_PORT' => '60962' ,
'SERVER_ADDR' => '209.54.112.191' ,
'SERVER_NAME' => 'www.walmsley.ca' ,
'SERVER_ADMIN' => 'webmaster@walmsley.ca' ,
'SERVER_PORT' => '443' ,
'REQUEST_SCHEME' => 'https' ,
'REQUEST_URI' => '/page/stress-and-anxiety.html' ,
'REDIRECT_URL' => '/webroot/page/stress-and-anxiety.html' ,
'REDIRECT_REQUEST_METHOD' => 'GET' ,
'HTTPS' => 'on' ,
'REDIRECT_STATUS' => '200' ,
'X_SPDY' => 'HTTP2' ,
'SSL_PROTOCOL' => 'TLSv1.3' ,
'SSL_CIPHER' => 'TLS_AES_256_GCM_SHA384' ,
'SSL_CIPHER_USEKEYSIZE' => '256' ,
'SSL_CIPHER_ALGKEYSIZE' => '256' ,
'SCRIPT_FILENAME' => '/home/walmsley/public_html/webroot/index.php' ,
'QUERY_STRING' => '' ,
'SCRIPT_URI' => 'https://www.walmsley.ca/page/stress-and-anxiety.html' ,
'SCRIPT_URL' => '/page/stress-and-anxiety.html' ,
'SCRIPT_NAME' => '/webroot/index.php' ,
'SERVER_PROTOCOL' => 'HTTP/1.1' ,
'SERVER_SOFTWARE' => 'LiteSpeed' ,
'REQUEST_METHOD' => 'GET' ,
'X-LSCACHE' => 'on' ,
'PHP_SELF' => '/webroot/index.php' ,
'REQUEST_TIME_FLOAT' => (float) 1726879610.6677 ,
'REQUEST_TIME' => (int) 1726879610 ,
'ORIGINAL_REQUEST_METHOD' => 'GET' ,
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'GET' ,
] ,
'post' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'POST' ,
] ,
'put' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'PUT' ,
] ,
'patch' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'PATCH' ,
] ,
'delete' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'DELETE' ,
] ,
'head' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'HEAD' ,
] ,
'options' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'OPTIONS' ,
] ,
'ssl' => [
'env' => 'HTTPS' ,
'options' => [
'' => [maximum depth reached] ,
] ,
] ,
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH' ,
'value' => 'XMLHttpRequest' ,
] ,
'json' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'json' ,
] ,
'xml' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'xml' ,
] ,
'mobile' => object( Closure ) id: 1 {
} ,
'tablet' => object( Closure ) id: 2 {
} ,
'csv' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'csv' ,
] ,
]
protected _detectorCache => [
]
protected stream => object( Laminas\Diactoros\PhpInputStream ) id: 3 {
protected resource => (resource) Resource id #158
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object( Laminas\Diactoros\Uri ) id: 4 {
base => ''
webroot => '/'
protected allowedSchemes => [
'' => [maximum depth reached] ,
]
private scheme => 'https'
private userInfo => ''
private host => 'www.walmsley.ca'
private port => null
private path => '/page/stress-and-anxiety.html'
private query => ''
private fragment => ''
private uriString => null
}
protected session => object( Cake\Http\Session ) id: 5 {
protected _engine => null
protected _started => null
protected _lifetime => (int) 86400
protected _isCLI => false
}
protected flash => object( Cake\Http\FlashMessage ) id: 6 {
protected _defaultConfig => [
'' => [maximum depth reached] ,
]
protected session => object( Cake\Http\Session ) id: 5 {}
protected _config => [
'' => [maximum depth reached] ,
]
protected _configInitialized => true
}
protected attributes => [
]
protected emulatedAttributes => [
(int) 0 => 'session' ,
(int) 1 => 'flash' ,
(int) 2 => 'webroot' ,
(int) 3 => 'base' ,
(int) 4 => 'params' ,
(int) 5 => 'here' ,
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
}
$this -> dispatchEvent ( 'Server.buildMiddleware' , [ 'middleware' => $middleware ]);
$response = $this -> runner -> run ( $middleware , $request , $this -> app );
if ( $request instanceof ServerRequest ) {
$request -> getSession ()-> close ();
}
Arguments
object( Cake\Http\MiddlewareQueue ) id: 0 {
protected position => (int) 5
protected queue => [
(int) 0 => object( Cake\Error\Middleware\ErrorHandlerMiddleware ) id: 1 {
} ,
(int) 1 => object( Cake\Routing\Middleware\AssetMiddleware ) id: 2 {
} ,
(int) 2 => object( Cake\Routing\Middleware\RoutingMiddleware ) id: 3 {
} ,
(int) 3 => object( Cake\Http\Middleware\BodyParserMiddleware ) id: 4 {
} ,
(int) 4 => object( Cake\Http\Middleware\CsrfProtectionMiddleware ) id: 5 {
} ,
]
}
object( Cake\Http\ServerRequest ) id: 0 {
trustProxy => false
protected params => [
'plugin' => null ,
'controller' => null ,
'action' => null ,
'_ext' => null ,
'pass' => [
] ,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'PATH' => '/usr/local/bin:/bin:/usr/bin' ,
'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' ,
'HTTP_ACCEPT_ENCODING' => 'br,gzip' ,
'HTTP_ACCEPT_LANGUAGE' => 'en-US,en;q=0.5' ,
'HTTP_HOST' => 'www.walmsley.ca' ,
'HTTP_USER_AGENT' => 'CCBot/2.0 (https://commoncrawl.org/faq/)' ,
'HTTP_X_HTTPS' => '1' ,
'DOCUMENT_ROOT' => '/home/walmsley/public_html' ,
'REMOTE_ADDR' => '44.201.97.138' ,
'REMOTE_PORT' => '60962' ,
'SERVER_ADDR' => '209.54.112.191' ,
'SERVER_NAME' => 'www.walmsley.ca' ,
'SERVER_ADMIN' => 'webmaster@walmsley.ca' ,
'SERVER_PORT' => '443' ,
'REQUEST_SCHEME' => 'https' ,
'REQUEST_URI' => '/page/stress-and-anxiety.html' ,
'REDIRECT_URL' => '/webroot/page/stress-and-anxiety.html' ,
'REDIRECT_REQUEST_METHOD' => 'GET' ,
'HTTPS' => 'on' ,
'REDIRECT_STATUS' => '200' ,
'X_SPDY' => 'HTTP2' ,
'SSL_PROTOCOL' => 'TLSv1.3' ,
'SSL_CIPHER' => 'TLS_AES_256_GCM_SHA384' ,
'SSL_CIPHER_USEKEYSIZE' => '256' ,
'SSL_CIPHER_ALGKEYSIZE' => '256' ,
'SCRIPT_FILENAME' => '/home/walmsley/public_html/webroot/index.php' ,
'QUERY_STRING' => '' ,
'SCRIPT_URI' => 'https://www.walmsley.ca/page/stress-and-anxiety.html' ,
'SCRIPT_URL' => '/page/stress-and-anxiety.html' ,
'SCRIPT_NAME' => '/webroot/index.php' ,
'SERVER_PROTOCOL' => 'HTTP/1.1' ,
'SERVER_SOFTWARE' => 'LiteSpeed' ,
'REQUEST_METHOD' => 'GET' ,
'X-LSCACHE' => 'on' ,
'PHP_SELF' => '/webroot/index.php' ,
'REQUEST_TIME_FLOAT' => (float) 1726879610.6677 ,
'REQUEST_TIME' => (int) 1726879610 ,
'ORIGINAL_REQUEST_METHOD' => 'GET' ,
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
protected _detectors => [
'get' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'GET' ,
] ,
'post' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'POST' ,
] ,
'put' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'PUT' ,
] ,
'patch' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'PATCH' ,
] ,
'delete' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'DELETE' ,
] ,
'head' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'HEAD' ,
] ,
'options' => [
'env' => 'REQUEST_METHOD' ,
'value' => 'OPTIONS' ,
] ,
'ssl' => [
'env' => 'HTTPS' ,
'options' => [
'' => [maximum depth reached] ,
] ,
] ,
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH' ,
'value' => 'XMLHttpRequest' ,
] ,
'json' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'json' ,
] ,
'xml' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'xml' ,
] ,
'mobile' => object( Closure ) id: 1 {
} ,
'tablet' => object( Closure ) id: 2 {
} ,
'csv' => [
'accept' => [
'' => [maximum depth reached] ,
] ,
'param' => '_ext' ,
'value' => 'csv' ,
] ,
]
protected _detectorCache => [
]
protected stream => object( Laminas\Diactoros\PhpInputStream ) id: 3 {
protected resource => (resource) Resource id #158
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object( Laminas\Diactoros\Uri ) id: 4 {
base => ''
webroot => '/'
protected allowedSchemes => [
'' => [maximum depth reached] ,
]
private scheme => 'https'
private userInfo => ''
private host => 'www.walmsley.ca'
private port => null
private path => '/page/stress-and-anxiety.html'
private query => ''
private fragment => ''
private uriString => null
}
protected session => object( Cake\Http\Session ) id: 5 {
protected _engine => null
protected _started => null
protected _lifetime => (int) 86400
protected _isCLI => false
}
protected flash => object( Cake\Http\FlashMessage ) id: 6 {
protected _defaultConfig => [
'' => [maximum depth reached] ,
]
protected session => object( Cake\Http\Session ) id: 5 {}
protected _config => [
'' => [maximum depth reached] ,
]
protected _configInitialized => true
}
protected attributes => [
]
protected emulatedAttributes => [
(int) 0 => 'session' ,
(int) 1 => 'flash' ,
(int) 2 => 'webroot' ,
(int) 3 => 'base' ,
(int) 4 => 'params' ,
(int) 5 => 'here' ,
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
object( App\Application ) id: 0 {
protected configDir => '/home/walmsley/public_html/config/'
protected plugins => object( Cake\Core\PluginCollection ) id: 1 {
protected plugins => [
'' => [maximum depth reached] ,
]
protected names => [
'' => [maximum depth reached] ,
]
protected positions => [
'' => [maximum depth reached] ,
]
protected loopDepth => (int) -1
}
protected controllerFactory => object( Cake\Controller\ControllerFactory ) id: 2 {
protected container => object( Cake\Core\Container ) id: 3 {
}
protected controller => object( App\Controller\ContentsController ) id: 4 {
}
}
protected container => object( Cake\Core\Container ) id: 3 {}
protected _eventManager => object( Cake\Event\EventManager ) id: 5 {
'_listeners' => [
'Controller.initialize' => '2 listener(s)' ,
'AuditStash.beforeLog' => '1 listener(s)' ,
]
'_isGlobal' => true
'_trackEvents' => false
'_generalManager' => '(object) EventManager'
'_dispatchedEvents' => null
}
protected _eventClass => 'Cake\Event\Event'
}
// Bind your application to the server.
$server = new Server (new Application ( dirname ( __DIR__ ) . '/config' ));
// Run the request/response through the application and emit the response.
$server -> emit ( $server -> run ());
Error in:
ROOT/src/Controller/AppController.php, line 78
If you want to customize this error message, create
templates/Error/error500.php