Error: SQLSTATE[HY000]: General error: 1364 Field 'message' doesn't have a default value
$connection = $this->_driver->connection(); |
|
|
|
try { |
|
$connection->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, $this->_bufferResults); |
|
$result = $this->_statement->execute($params); |
|
} finally { |
|
$connection->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, true); |
|
} |
|
|
null
public function run(Query $query) |
|
{ |
|
$statement = $this->prepare($query); |
|
$query->valueBinder()->attachTo($statement); |
|
$statement->execute(); |
|
|
|
return $statement; |
|
} |
|
|
No arguments
* @return \Cake\Database\StatementInterface |
|
*/ |
|
public function execute() |
|
{ |
|
$statement = $this->_connection->run($this); |
|
$driver = $this->_connection->driver(); |
|
$typeMap = $this->getSelectTypeMap(); |
|
|
|
if ($typeMap->toArray() && $this->_typeCastAttached === false) { |
object(Cake\ORM\Query) { '(help)' => 'This is a Query object, to get the results execute or iterate it.', 'sql' => 'INSERT INTO comments (parent_id, created) VALUES (:c0, :c1)', 'params' => [ ':c0' => [ 'value' => (int) 2, 'type' => 'integer', 'placeholder' => 'c0' ], ':c1' => [ 'value' => object(Cake\I18n\Time) {}, 'type' => 'datetime', 'placeholder' => 'c1' ] ], 'defaultTypes' => [ 'Comments__id' => 'integer', 'Comments.id' => 'integer', 'id' => 'integer', 'Comments__name' => 'string', 'Comments.name' => 'string', 'name' => 'string', 'Comments__post_id' => 'integer', 'Comments.post_id' => 'integer', 'post_id' => 'integer', 'Comments__parent_id' => 'integer', 'Comments.parent_id' => 'integer', 'parent_id' => 'integer', 'Comments__email' => 'string', 'Comments.email' => 'string', 'email' => 'string', 'Comments__message' => 'text', 'Comments.message' => 'text', 'message' => 'text', 'Comments__created' => 'datetime', 'Comments.created' => 'datetime', 'created' => 'datetime', 'Comments__status' => 'boolean', 'Comments.status' => 'boolean', 'status' => 'boolean' ], 'decorators' => (int) 0, 'executed' => false, 'hydrate' => true, 'buffered' => true, 'formatters' => (int) 0, 'mapReducers' => (int) 0, 'contain' => [], 'matching' => [], 'extraOptions' => [], 'repository' => object(App\Model\Table\CommentsTable) { 'registryAlias' => 'Comments', 'table' => 'comments', 'alias' => 'Comments', 'entityClass' => '\Cake\ORM\Entity', 'associations' => [[maximum depth reached]], 'behaviors' => [ [maximum depth reached] ], 'defaultConnection' => 'default', 'connectionName' => 'default' } }
} |
|
|
|
$statement = $this->query()->insert(array_keys($data)) |
|
->values($data) |
|
->execute(); |
|
|
|
if ($statement->rowCount() !== 0) { |
|
$success = $entity; |
|
$entity->set($filteredKeys, ['guard' => false]); |
No arguments
$data = $entity->extract($this->getSchema()->columns(), true); |
|
$isNew = $entity->isNew(); |
|
|
|
if ($isNew) { |
|
$success = $this->_insert($entity, $data); |
|
} else { |
|
$success = $this->_update($entity, $data); |
|
} |
|
|
object(Cake\ORM\Entity) { 'userip' => '3.89.200.155', 'parent_id' => (int) 2, 'created' => object(Cake\I18n\Time) { 'time' => '2024-03-29T04:41:27+00:00', 'timezone' => 'UTC', 'fixedNowTime' => false }, 'modified' => object(Cake\I18n\Time) { 'time' => '2024-03-29T04:41:27+00:00', 'timezone' => 'UTC', 'fixedNowTime' => false }, '[new]' => true, '[accessible]' => [ '*' => true ], '[dirty]' => [ 'userip' => true, 'parent_id' => true, 'created' => true, 'modified' => true ], '[original]' => [], '[virtual]' => [], '[errors]' => [], '[invalid]' => [], '[repository]' => 'Comments' } [ 'parent_id' => (int) 2, 'created' => object(Cake\I18n\Time) { 'time' => '2024-03-29T04:41:27+00:00', 'timezone' => 'UTC', 'fixedNowTime' => false } ]
return $entity; |
|
} |
|
|
|
$success = $this->_executeTransaction(function () use ($entity, $options) { |
|
return $this->_processSave($entity, $options); |
|
}, $options['atomic']); |
|
|
|
if ($success) { |
|
if ($this->_transactionCommitted($options['atomic'], $options['_primary'])) { |
object(Cake\ORM\Entity) { 'userip' => '3.89.200.155', 'parent_id' => (int) 2, 'created' => object(Cake\I18n\Time) { 'time' => '2024-03-29T04:41:27+00:00', 'timezone' => 'UTC', 'fixedNowTime' => false }, 'modified' => object(Cake\I18n\Time) { 'time' => '2024-03-29T04:41:27+00:00', 'timezone' => 'UTC', 'fixedNowTime' => false }, '[new]' => true, '[accessible]' => [ '*' => true ], '[dirty]' => [ 'userip' => true, 'parent_id' => true, 'created' => true, 'modified' => true ], '[original]' => [], '[virtual]' => [], '[errors]' => [], '[invalid]' => [], '[repository]' => 'Comments' } object(ArrayObject) { atomic => true associated => [] checkRules => true checkExisting => true _primary => true }
protected function _executeTransaction(callable $worker, $atomic = true) |
|
{ |
|
if ($atomic) { |
|
return $this->getConnection()->transactional(function () use ($worker) { |
|
return $worker(); |
|
}); |
|
} |
|
|
|
return $worker(); |
No arguments
{ |
|
$this->begin(); |
|
|
|
try { |
|
$result = $callback($this); |
|
} catch (\Exception $e) { |
|
$this->rollback(); |
|
throw $e; |
|
} |
object(Cake\Database\Connection) { 'config' => [ 'password' => '*****', 'username' => '*****', 'host' => '*****', 'database' => '*****', 'driver' => 'Cake\Database\Driver\Mysql', 'persistent' => false, 'encoding' => 'utf8', 'timezone' => 'UTC', 'flags' => [], 'cacheMetadata' => true, 'log' => false, 'quoteIdentifiers' => false, 'url' => null, 'name' => 'default' ], 'driver' => object(Cake\Database\Driver\Mysql) { 'connected' => true }, 'transactionLevel' => (int) 0, 'transactionStarted' => false, 'useSavePoints' => false, 'logQueries' => false, 'logger' => null }
{ |
|
if ($atomic) { |
|
return $this->getConnection()->transactional(function () use ($worker) { |
|
return $worker(); |
|
}); |
|
} |
|
|
|
return $worker(); |
|
} |
object(Closure) { }
} |
|
|
|
$success = $this->_executeTransaction(function () use ($entity, $options) { |
|
return $this->_processSave($entity, $options); |
|
}, $options['atomic']); |
|
|
|
if ($success) { |
|
if ($this->_transactionCommitted($options['atomic'], $options['_primary'])) { |
|
$this->dispatchEvent('Model.afterSaveCommit', compact('entity', 'options')); |
object(Closure) { } true
$Comment = $this->Comments->newEntity(); |
|
if(!empty($this->request->data)){ |
|
$this->request->data['parent_id'] = $id; |
|
$Comment = $this->Comments->patchEntity($Comment, $this->request->getData()); |
|
$this->Comments->save($Comment); |
|
$this->Flash->success('Comment has been added successfully Thanks!', array('params' => array('class' => 'flash_notification'))); |
|
} |
|
$comments = $this->Comments->find('all')->where(['Comments.status'=>1,'Comments.parent_id'=>$id])->toArray(); |
|
$comments2 = $this->Comments->find('all')->where(['Comments.status'=>1,'Comments.parent_id'=>$id])->count(); |
object(Cake\ORM\Entity) { 'userip' => '3.89.200.155', 'parent_id' => (int) 2, 'created' => object(Cake\I18n\Time) { 'time' => '2024-03-29T04:41:27+00:00', 'timezone' => 'UTC', 'fixedNowTime' => false }, 'modified' => object(Cake\I18n\Time) { 'time' => '2024-03-29T04:41:27+00:00', 'timezone' => 'UTC', 'fixedNowTime' => false }, '[new]' => true, '[accessible]' => [ '*' => true ], '[dirty]' => [ 'userip' => true, 'parent_id' => true, 'created' => true, 'modified' => true ], '[original]' => [], '[virtual]' => [], '[errors]' => [], '[invalid]' => [], '[repository]' => 'Comments' }
} |
|
/* @var callable $callable */ |
|
$callable = [$this, $request->getParam('action')]; |
|
|
|
return $callable(...$request->getParam('pass')); |
|
} |
|
|
|
/** |
|
* Merge components, helpers vars from |
'9-of-the-Top-Home-Automation'
if ($result instanceof Response) { |
|
return $result; |
|
} |
|
|
|
$response = $controller->invokeAction(); |
|
if ($response !== null && !($response instanceof Response)) { |
|
throw new LogicException('Controller actions can only return Cake\Network\Response or null.'); |
|
} |
|
|
No arguments
} else { |
|
$controller = $this->factory->create($request, $response); |
|
} |
|
|
|
$response = $this->_invoke($controller); |
|
if (isset($request->params['return'])) { |
|
return $response; |
|
} |
|
|
object(App\Controller\BlogsController) { name => 'Blogs' components => [ 'Image' => null, 'Upload' => null ] helpers => [ 'Breadcrumbs' => null, 'Flash' => null, 'Form' => null, 'Html' => null, 'Number' => null, 'Paginator' => null, 'Rss' => null, 'Text' => null, 'Url' => null, 'Time' => null ] paginate => [] request => object(Cake\Http\ServerRequest) { params => [ [maximum depth reached] ] data => [ [maximum depth reached] ] query => [[maximum depth reached]] cookies => [[maximum depth reached]] url => 'blogs/9-of-the-Top-Home-Automation' base => '' webroot => '/' here => '/blogs/9-of-the-Top-Home-Automation' trustProxy => false [protected] _environment => [ [maximum depth reached] ] [protected] _input => null [protected] _detectors => [ [maximum depth reached] ] [protected] _detectorCache => [ [maximum depth reached] ] [protected] stream => object(Zend\Diactoros\PhpInputStream) {} [protected] uri => object(Zend\Diactoros\Uri) {} [protected] session => object(Cake\Network\Session) {} [protected] attributes => [[maximum depth reached]] [protected] emulatedAttributes => [ [maximum depth reached] ] [protected] uploadedFiles => [[maximum depth reached]] [protected] protocol => null [protected] requestTarget => null } response => object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ [maximum depth reached] ], 'file' => null, 'fileRange' => [[maximum depth reached]], 'cookies' => [[maximum depth reached]], 'cacheDirectives' => [[maximum depth reached]], 'body' => '' } autoRender => true View => null plugin => null passedArgs => [ (int) 0 => '9-of-the-Top-Home-Automation' ] modelClass => 'Blogs' viewClass => null viewVars => [ 'previous_posts' => [ (int) 0 => object(Cake\ORM\Entity) {}, (int) 1 => object(Cake\ORM\Entity) {}, (int) 2 => object(Cake\ORM\Entity) {}, (int) 3 => object(Cake\ORM\Entity) {}, (int) 4 => object(Cake\ORM\Entity) {}, (int) 5 => object(Cake\ORM\Entity) {}, (int) 6 => object(Cake\ORM\Entity) {}, (int) 7 => object(Cake\ORM\Entity) {}, (int) 8 => object(Cake\ORM\Entity) {}, (int) 9 => object(Cake\ORM\Entity) {}, (int) 10 => object(Cake\ORM\Entity) {}, (int) 11 => object(Cake\ORM\Entity) {}, (int) 12 => object(Cake\ORM\Entity) {}, (int) 13 => object(Cake\ORM\Entity) {}, (int) 14 => object(Cake\ORM\Entity) {} ], 'data' => [ 'id' => (int) 2, 'category_title' => '9 of the Top Home Automation', 'image' => '1519387700b2.jpg', 'description' => ' Your phone is smart. Your kids are smart. Your home should be smart, too. Now it can be. Here are nine ways that a smart home can protect your family and property, save you money, and make you feel like a superhero by giving you powers you've only dreamed of. ', 'created' => object(Cake\I18n\FrozenTime) {}, 'modified' => null, 'status' => true, 'meta_title' => '', 'meta_description' => '', 'meta_tags' => null, 'meta_keywords' => '', 'txt_slug' => '9-of-the-Top-Home-Automation' ], 'meta_description' => '', 'meta_keywords' => '', 'meta_title' => '' ] RequestHandler => object(Cake\Controller\Component\RequestHandlerComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [ [maximum depth reached] ], '_config' => [ [maximum depth reached] ] } Flash => object(Cake\Controller\Component\FlashComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [[maximum depth reached]], '_config' => [ [maximum depth reached] ] } Auth => object(Cake\Controller\Component\AuthComponent) { 'components' => [ [maximum depth reached] ], 'implementedEvents' => [ [maximum depth reached] ], '_config' => [ [maximum depth reached] ] } PageViews => object(Cake\ORM\Table) { 'registryAlias' => 'PageViews', 'table' => 'page_views', 'alias' => 'PageViews', 'entityClass' => '\Cake\ORM\Entity', 'associations' => [[maximum depth reached]], 'behaviors' => [[maximum depth reached]], 'defaultConnection' => 'default', 'connectionName' => 'default' } Image => object(App\Controller\Component\ImageComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [[maximum depth reached]], '_config' => [[maximum depth reached]] } Upload => object(App\Controller\Component\UploadComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [[maximum depth reached]], '_config' => [[maximum depth reached]] } Comments => object(App\Model\Table\CommentsTable) { 'registryAlias' => 'Comments', 'table' => 'comments', 'alias' => 'Comments', 'entityClass' => '\Cake\ORM\Entity', 'associations' => [[maximum depth reached]], 'behaviors' => [ [maximum depth reached] ], 'defaultConnection' => 'default', 'connectionName' => 'default' } Blogs => object(App\Model\Table\BlogsTable) { 'registryAlias' => 'Blogs', 'table' => 'blogs', 'alias' => 'Blogs', 'entityClass' => '\Cake\ORM\Entity', 'associations' => [[maximum depth reached]], 'behaviors' => [ [maximum depth reached] ], 'defaultConnection' => 'default', 'connectionName' => 'default' } [protected] _responseClass => 'Cake\Network\Response' [protected] _components => object(Cake\Controller\ComponentRegistry) { '_Controller' => object(App\Controller\BlogsController) {}, '_loaded' => [ [maximum depth reached] ], '_eventManager' => object(Cake\Event\EventManager) {}, '_eventClass' => '\Cake\Event\Event' } [protected] _validViewOptions => [ (int) 0 => 'passedArgs' ] [protected] _eventManager => object(Cake\Event\EventManager) { '_listeners' => [ [maximum depth reached] ], '_isGlobal' => false, '_eventList' => null, '_trackEvents' => false, '_generalManager' => '(object) EventManager' } [protected] _eventClass => '\Cake\Event\Event' [protected] _tableLocator => object(Cake\ORM\Locator\TableLocator) { [protected] _config => [[maximum depth reached]] [protected] _instances => [ [maximum depth reached] ] [protected] _fallbacked => [ [maximum depth reached] ] [protected] _options => [ [maximum depth reached] ] } [protected] _modelFactories => [ 'Table' => [ (int) 0 => object(Cake\ORM\Locator\TableLocator) {}, (int) 1 => 'get' ] ] [protected] _modelType => 'Table' [protected] _viewBuilder => null }
* @return \Psr\Http\Message\ResponseInterface |
|
*/ |
|
public function __invoke(ServerRequestInterface $request, ResponseInterface $response, $next) |
|
{ |
|
return $this->getDispatcher()->dispatch($request, $response); |
|
} |
|
|
|
/** |
|
* Get the ActionDispatcher. |
object(Cake\Http\ServerRequest) { params => [ 'slug' => '9-of-the-Top-Home-Automation', 'pass' => [ (int) 0 => '9-of-the-Top-Home-Automation' ], 'controller' => 'Blogs', 'action' => 'details', 'plugin' => null, '_matchedRoute' => '/blogs/:slug', 'isAjax' => false ] data => [ 'userip' => '3.89.200.155', 'parent_id' => (int) 2 ] query => [] cookies => [] url => 'blogs/9-of-the-Top-Home-Automation' base => '' webroot => '/' here => '/blogs/9-of-the-Top-Home-Automation' trustProxy => false [protected] _environment => [ 'CONTEXT_DOCUMENT_ROOT' => '/home/pradeep8617/public_html', 'CONTEXT_PREFIX' => '', 'DOCUMENT_ROOT' => '/home/pradeep8617/public_html', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'HTTP_ACCEPT' => '*/*', 'HTTP_HOST' => 'www.amiteksmarthomes.com', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_X_HTTPS' => '1', 'PATH' => '/bin:/usr/bin', 'PHP_INI_SCAN_DIR' => '/opt/cpanel/ea-php56/root/etc:/opt/cpanel/ea-php56/root/etc/php.d:.', 'QUERY_STRING' => '', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_SCRIPT_URI' => 'https://www.amiteksmarthomes.com/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_REDIRECT_SCRIPT_URL' => '/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'www.amiteksmarthomes.com', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgZGd4B8cHR-mPnLArS_hgAAAUQ', 'REDIRECT_SCRIPT_URI' => 'https://www.amiteksmarthomes.com/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_SCRIPT_URL' => '/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_SSL_TLS_SNI' => 'www.amiteksmarthomes.com', 'REDIRECT_STATUS' => '200', 'REDIRECT_UNIQUE_ID' => 'ZgZGd4B8cHR-mPnLArS_hgAAAUQ', 'REDIRECT_URL' => '/webroot/blogs/9-of-the-Top-Home-Automation', 'REMOTE_ADDR' => '3.89.200.155', 'REMOTE_PORT' => '47086', 'REQUEST_METHOD' => 'GET', 'REQUEST_SCHEME' => 'https', 'REQUEST_URI' => '/blogs/9-of-the-Top-Home-Automation', 'SCRIPT_FILENAME' => '/home/pradeep8617/public_html/webroot/index.php', 'SCRIPT_NAME' => '/webroot/index.php', 'SCRIPT_URI' => 'https://www.amiteksmarthomes.com/blogs/9-of-the-Top-Home-Automation', 'SCRIPT_URL' => '/blogs/9-of-the-Top-Home-Automation', 'SERVER_ADDR' => '208.109.8.116', 'SERVER_ADMIN' => 'webmaster@amiteksmarthomes.com', 'SERVER_NAME' => 'www.amiteksmarthomes.com', 'SERVER_PORT' => '443', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SSL_TLS_SNI' => 'www.amiteksmarthomes.com', 'TZ' => 'America/Phoenix', 'UNIQUE_ID' => 'ZgZGd4B8cHR-mPnLArS_hgAAAUQ', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711687287.6419, 'REQUEST_TIME' => (int) 1711687287, 'argv' => [], 'argc' => (int) 0, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_REFERER' => null, 'HTTP_X_REQUESTED_WITH' => null, 'HTTP_IF_NONE_MATCH' => null, 'HTTP_IF_MODIFIED_SINCE' => null ] [protected] _input => null [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' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.amiteksmarthomes.com' [private] port => null [private] path => '/blogs/9-of-the-Top-Home-Automation' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '86400' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => [], 'cacheDirectives' => [], 'body' => '' }
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Cake\Http\ServerRequest) { params => [ 'slug' => '9-of-the-Top-Home-Automation', 'pass' => [ (int) 0 => '9-of-the-Top-Home-Automation' ], 'controller' => 'Blogs', 'action' => 'details', 'plugin' => null, '_matchedRoute' => '/blogs/:slug', 'isAjax' => false ] data => [ 'userip' => '3.89.200.155', 'parent_id' => (int) 2 ] query => [] cookies => [] url => 'blogs/9-of-the-Top-Home-Automation' base => '' webroot => '/' here => '/blogs/9-of-the-Top-Home-Automation' trustProxy => false [protected] _environment => [ 'CONTEXT_DOCUMENT_ROOT' => '/home/pradeep8617/public_html', 'CONTEXT_PREFIX' => '', 'DOCUMENT_ROOT' => '/home/pradeep8617/public_html', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'HTTP_ACCEPT' => '*/*', 'HTTP_HOST' => 'www.amiteksmarthomes.com', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_X_HTTPS' => '1', 'PATH' => '/bin:/usr/bin', 'PHP_INI_SCAN_DIR' => '/opt/cpanel/ea-php56/root/etc:/opt/cpanel/ea-php56/root/etc/php.d:.', 'QUERY_STRING' => '', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_SCRIPT_URI' => 'https://www.amiteksmarthomes.com/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_REDIRECT_SCRIPT_URL' => '/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'www.amiteksmarthomes.com', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgZGd4B8cHR-mPnLArS_hgAAAUQ', 'REDIRECT_SCRIPT_URI' => 'https://www.amiteksmarthomes.com/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_SCRIPT_URL' => '/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_SSL_TLS_SNI' => 'www.amiteksmarthomes.com', 'REDIRECT_STATUS' => '200', 'REDIRECT_UNIQUE_ID' => 'ZgZGd4B8cHR-mPnLArS_hgAAAUQ', 'REDIRECT_URL' => '/webroot/blogs/9-of-the-Top-Home-Automation', 'REMOTE_ADDR' => '3.89.200.155', 'REMOTE_PORT' => '47086', 'REQUEST_METHOD' => 'GET', 'REQUEST_SCHEME' => 'https', 'REQUEST_URI' => '/blogs/9-of-the-Top-Home-Automation', 'SCRIPT_FILENAME' => '/home/pradeep8617/public_html/webroot/index.php', 'SCRIPT_NAME' => '/webroot/index.php', 'SCRIPT_URI' => 'https://www.amiteksmarthomes.com/blogs/9-of-the-Top-Home-Automation', 'SCRIPT_URL' => '/blogs/9-of-the-Top-Home-Automation', 'SERVER_ADDR' => '208.109.8.116', 'SERVER_ADMIN' => 'webmaster@amiteksmarthomes.com', 'SERVER_NAME' => 'www.amiteksmarthomes.com', 'SERVER_PORT' => '443', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SSL_TLS_SNI' => 'www.amiteksmarthomes.com', 'TZ' => 'America/Phoenix', 'UNIQUE_ID' => 'ZgZGd4B8cHR-mPnLArS_hgAAAUQ', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711687287.6419, 'REQUEST_TIME' => (int) 1711687287, 'argv' => [], 'argc' => (int) 0, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_REFERER' => null, 'HTTP_X_REQUESTED_WITH' => null, 'HTTP_IF_NONE_MATCH' => null, 'HTTP_IF_MODIFIED_SINCE' => null ] [protected] _input => null [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' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.amiteksmarthomes.com' [private] port => null [private] path => '/blogs/9-of-the-Top-Home-Automation' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '86400' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => [], 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 4 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
$response->getHeaders() |
|
); |
|
} |
|
|
|
return $next($request, $response); |
|
} |
|
} |
|
|
object(Cake\Http\ServerRequest) { params => [ 'slug' => '9-of-the-Top-Home-Automation', 'pass' => [ (int) 0 => '9-of-the-Top-Home-Automation' ], 'controller' => 'Blogs', 'action' => 'details', 'plugin' => null, '_matchedRoute' => '/blogs/:slug', 'isAjax' => false ] data => [ 'userip' => '3.89.200.155', 'parent_id' => (int) 2 ] query => [] cookies => [] url => 'blogs/9-of-the-Top-Home-Automation' base => '' webroot => '/' here => '/blogs/9-of-the-Top-Home-Automation' trustProxy => false [protected] _environment => [ 'CONTEXT_DOCUMENT_ROOT' => '/home/pradeep8617/public_html', 'CONTEXT_PREFIX' => '', 'DOCUMENT_ROOT' => '/home/pradeep8617/public_html', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'HTTP_ACCEPT' => '*/*', 'HTTP_HOST' => 'www.amiteksmarthomes.com', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_X_HTTPS' => '1', 'PATH' => '/bin:/usr/bin', 'PHP_INI_SCAN_DIR' => '/opt/cpanel/ea-php56/root/etc:/opt/cpanel/ea-php56/root/etc/php.d:.', 'QUERY_STRING' => '', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_SCRIPT_URI' => 'https://www.amiteksmarthomes.com/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_REDIRECT_SCRIPT_URL' => '/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'www.amiteksmarthomes.com', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgZGd4B8cHR-mPnLArS_hgAAAUQ', 'REDIRECT_SCRIPT_URI' => 'https://www.amiteksmarthomes.com/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_SCRIPT_URL' => '/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_SSL_TLS_SNI' => 'www.amiteksmarthomes.com', 'REDIRECT_STATUS' => '200', 'REDIRECT_UNIQUE_ID' => 'ZgZGd4B8cHR-mPnLArS_hgAAAUQ', 'REDIRECT_URL' => '/webroot/blogs/9-of-the-Top-Home-Automation', 'REMOTE_ADDR' => '3.89.200.155', 'REMOTE_PORT' => '47086', 'REQUEST_METHOD' => 'GET', 'REQUEST_SCHEME' => 'https', 'REQUEST_URI' => '/blogs/9-of-the-Top-Home-Automation', 'SCRIPT_FILENAME' => '/home/pradeep8617/public_html/webroot/index.php', 'SCRIPT_NAME' => '/webroot/index.php', 'SCRIPT_URI' => 'https://www.amiteksmarthomes.com/blogs/9-of-the-Top-Home-Automation', 'SCRIPT_URL' => '/blogs/9-of-the-Top-Home-Automation', 'SERVER_ADDR' => '208.109.8.116', 'SERVER_ADMIN' => 'webmaster@amiteksmarthomes.com', 'SERVER_NAME' => 'www.amiteksmarthomes.com', 'SERVER_PORT' => '443', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SSL_TLS_SNI' => 'www.amiteksmarthomes.com', 'TZ' => 'America/Phoenix', 'UNIQUE_ID' => 'ZgZGd4B8cHR-mPnLArS_hgAAAUQ', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711687287.6419, 'REQUEST_TIME' => (int) 1711687287, 'argv' => [], 'argc' => (int) 0, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_REFERER' => null, 'HTTP_X_REQUESTED_WITH' => null, 'HTTP_IF_NONE_MATCH' => null, 'HTTP_IF_MODIFIED_SINCE' => null ] [protected] _input => null [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' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.amiteksmarthomes.com' [private] port => null [private] path => '/blogs/9-of-the-Top-Home-Automation' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '86400' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => [], 'cacheDirectives' => [], 'body' => '' }
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Cake\Http\ServerRequest) { params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] data => [] query => [] cookies => [] url => 'blogs/9-of-the-Top-Home-Automation' base => '' webroot => '/' here => '/blogs/9-of-the-Top-Home-Automation' trustProxy => false [protected] _environment => [ 'CONTEXT_DOCUMENT_ROOT' => '/home/pradeep8617/public_html', 'CONTEXT_PREFIX' => '', 'DOCUMENT_ROOT' => '/home/pradeep8617/public_html', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'HTTP_ACCEPT' => '*/*', 'HTTP_HOST' => 'www.amiteksmarthomes.com', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_X_HTTPS' => '1', 'PATH' => '/bin:/usr/bin', 'PHP_INI_SCAN_DIR' => '/opt/cpanel/ea-php56/root/etc:/opt/cpanel/ea-php56/root/etc/php.d:.', 'QUERY_STRING' => '', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_SCRIPT_URI' => 'https://www.amiteksmarthomes.com/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_REDIRECT_SCRIPT_URL' => '/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'www.amiteksmarthomes.com', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgZGd4B8cHR-mPnLArS_hgAAAUQ', 'REDIRECT_SCRIPT_URI' => 'https://www.amiteksmarthomes.com/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_SCRIPT_URL' => '/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_SSL_TLS_SNI' => 'www.amiteksmarthomes.com', 'REDIRECT_STATUS' => '200', 'REDIRECT_UNIQUE_ID' => 'ZgZGd4B8cHR-mPnLArS_hgAAAUQ', 'REDIRECT_URL' => '/webroot/blogs/9-of-the-Top-Home-Automation', 'REMOTE_ADDR' => '3.89.200.155', 'REMOTE_PORT' => '47086', 'REQUEST_METHOD' => 'GET', 'REQUEST_SCHEME' => 'https', 'REQUEST_URI' => '/blogs/9-of-the-Top-Home-Automation', 'SCRIPT_FILENAME' => '/home/pradeep8617/public_html/webroot/index.php', 'SCRIPT_NAME' => '/webroot/index.php', 'SCRIPT_URI' => 'https://www.amiteksmarthomes.com/blogs/9-of-the-Top-Home-Automation', 'SCRIPT_URL' => '/blogs/9-of-the-Top-Home-Automation', 'SERVER_ADDR' => '208.109.8.116', 'SERVER_ADMIN' => 'webmaster@amiteksmarthomes.com', 'SERVER_NAME' => 'www.amiteksmarthomes.com', 'SERVER_PORT' => '443', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SSL_TLS_SNI' => 'www.amiteksmarthomes.com', 'TZ' => 'America/Phoenix', 'UNIQUE_ID' => 'ZgZGd4B8cHR-mPnLArS_hgAAAUQ', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711687287.6419, 'REQUEST_TIME' => (int) 1711687287, 'argv' => [], 'argc' => (int) 0, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] _input => null [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' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.amiteksmarthomes.com' [private] port => null [private] path => '/blogs/9-of-the-Top-Home-Automation' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '86400' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => [], 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 4 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
public function __invoke($request, $response, $next) |
|
{ |
|
$url = $request->getUri()->getPath(); |
|
if (strpos($url, '..') !== false || strpos($url, '.') === false) { |
|
return $next($request, $response); |
|
} |
|
|
|
$assetFile = $this->_getAssetFile($url); |
|
if ($assetFile === null || !file_exists($assetFile)) { |
object(Cake\Http\ServerRequest) { params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] data => [] query => [] cookies => [] url => 'blogs/9-of-the-Top-Home-Automation' base => '' webroot => '/' here => '/blogs/9-of-the-Top-Home-Automation' trustProxy => false [protected] _environment => [ 'CONTEXT_DOCUMENT_ROOT' => '/home/pradeep8617/public_html', 'CONTEXT_PREFIX' => '', 'DOCUMENT_ROOT' => '/home/pradeep8617/public_html', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'HTTP_ACCEPT' => '*/*', 'HTTP_HOST' => 'www.amiteksmarthomes.com', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_X_HTTPS' => '1', 'PATH' => '/bin:/usr/bin', 'PHP_INI_SCAN_DIR' => '/opt/cpanel/ea-php56/root/etc:/opt/cpanel/ea-php56/root/etc/php.d:.', 'QUERY_STRING' => '', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_SCRIPT_URI' => 'https://www.amiteksmarthomes.com/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_REDIRECT_SCRIPT_URL' => '/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'www.amiteksmarthomes.com', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgZGd4B8cHR-mPnLArS_hgAAAUQ', 'REDIRECT_SCRIPT_URI' => 'https://www.amiteksmarthomes.com/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_SCRIPT_URL' => '/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_SSL_TLS_SNI' => 'www.amiteksmarthomes.com', 'REDIRECT_STATUS' => '200', 'REDIRECT_UNIQUE_ID' => 'ZgZGd4B8cHR-mPnLArS_hgAAAUQ', 'REDIRECT_URL' => '/webroot/blogs/9-of-the-Top-Home-Automation', 'REMOTE_ADDR' => '3.89.200.155', 'REMOTE_PORT' => '47086', 'REQUEST_METHOD' => 'GET', 'REQUEST_SCHEME' => 'https', 'REQUEST_URI' => '/blogs/9-of-the-Top-Home-Automation', 'SCRIPT_FILENAME' => '/home/pradeep8617/public_html/webroot/index.php', 'SCRIPT_NAME' => '/webroot/index.php', 'SCRIPT_URI' => 'https://www.amiteksmarthomes.com/blogs/9-of-the-Top-Home-Automation', 'SCRIPT_URL' => '/blogs/9-of-the-Top-Home-Automation', 'SERVER_ADDR' => '208.109.8.116', 'SERVER_ADMIN' => 'webmaster@amiteksmarthomes.com', 'SERVER_NAME' => 'www.amiteksmarthomes.com', 'SERVER_PORT' => '443', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SSL_TLS_SNI' => 'www.amiteksmarthomes.com', 'TZ' => 'America/Phoenix', 'UNIQUE_ID' => 'ZgZGd4B8cHR-mPnLArS_hgAAAUQ', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711687287.6419, 'REQUEST_TIME' => (int) 1711687287, 'argv' => [], 'argc' => (int) 0, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] _input => null [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' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.amiteksmarthomes.com' [private] port => null [private] path => '/blogs/9-of-the-Top-Home-Automation' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '86400' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => [], 'cacheDirectives' => [], 'body' => '' }
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Cake\Http\ServerRequest) { params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] data => [] query => [] cookies => [] url => 'blogs/9-of-the-Top-Home-Automation' base => '' webroot => '/' here => '/blogs/9-of-the-Top-Home-Automation' trustProxy => false [protected] _environment => [ 'CONTEXT_DOCUMENT_ROOT' => '/home/pradeep8617/public_html', 'CONTEXT_PREFIX' => '', 'DOCUMENT_ROOT' => '/home/pradeep8617/public_html', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'HTTP_ACCEPT' => '*/*', 'HTTP_HOST' => 'www.amiteksmarthomes.com', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_X_HTTPS' => '1', 'PATH' => '/bin:/usr/bin', 'PHP_INI_SCAN_DIR' => '/opt/cpanel/ea-php56/root/etc:/opt/cpanel/ea-php56/root/etc/php.d:.', 'QUERY_STRING' => '', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_SCRIPT_URI' => 'https://www.amiteksmarthomes.com/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_REDIRECT_SCRIPT_URL' => '/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'www.amiteksmarthomes.com', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgZGd4B8cHR-mPnLArS_hgAAAUQ', 'REDIRECT_SCRIPT_URI' => 'https://www.amiteksmarthomes.com/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_SCRIPT_URL' => '/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_SSL_TLS_SNI' => 'www.amiteksmarthomes.com', 'REDIRECT_STATUS' => '200', 'REDIRECT_UNIQUE_ID' => 'ZgZGd4B8cHR-mPnLArS_hgAAAUQ', 'REDIRECT_URL' => '/webroot/blogs/9-of-the-Top-Home-Automation', 'REMOTE_ADDR' => '3.89.200.155', 'REMOTE_PORT' => '47086', 'REQUEST_METHOD' => 'GET', 'REQUEST_SCHEME' => 'https', 'REQUEST_URI' => '/blogs/9-of-the-Top-Home-Automation', 'SCRIPT_FILENAME' => '/home/pradeep8617/public_html/webroot/index.php', 'SCRIPT_NAME' => '/webroot/index.php', 'SCRIPT_URI' => 'https://www.amiteksmarthomes.com/blogs/9-of-the-Top-Home-Automation', 'SCRIPT_URL' => '/blogs/9-of-the-Top-Home-Automation', 'SERVER_ADDR' => '208.109.8.116', 'SERVER_ADMIN' => 'webmaster@amiteksmarthomes.com', 'SERVER_NAME' => 'www.amiteksmarthomes.com', 'SERVER_PORT' => '443', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SSL_TLS_SNI' => 'www.amiteksmarthomes.com', 'TZ' => 'America/Phoenix', 'UNIQUE_ID' => 'ZgZGd4B8cHR-mPnLArS_hgAAAUQ', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711687287.6419, 'REQUEST_TIME' => (int) 1711687287, 'argv' => [], 'argc' => (int) 0, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] _input => null [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' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.amiteksmarthomes.com' [private] port => null [private] path => '/blogs/9-of-the-Top-Home-Automation' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '86400' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => [], 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 4 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
*/ |
|
public function __invoke($request, $response, $next) |
|
{ |
|
try { |
|
return $next($request, $response); |
|
} catch (\Exception $e) { |
|
return $this->handleException($e, $request, $response); |
|
} |
|
} |
object(Cake\Http\ServerRequest) { params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] data => [] query => [] cookies => [] url => 'blogs/9-of-the-Top-Home-Automation' base => '' webroot => '/' here => '/blogs/9-of-the-Top-Home-Automation' trustProxy => false [protected] _environment => [ 'CONTEXT_DOCUMENT_ROOT' => '/home/pradeep8617/public_html', 'CONTEXT_PREFIX' => '', 'DOCUMENT_ROOT' => '/home/pradeep8617/public_html', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'HTTP_ACCEPT' => '*/*', 'HTTP_HOST' => 'www.amiteksmarthomes.com', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_X_HTTPS' => '1', 'PATH' => '/bin:/usr/bin', 'PHP_INI_SCAN_DIR' => '/opt/cpanel/ea-php56/root/etc:/opt/cpanel/ea-php56/root/etc/php.d:.', 'QUERY_STRING' => '', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_SCRIPT_URI' => 'https://www.amiteksmarthomes.com/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_REDIRECT_SCRIPT_URL' => '/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'www.amiteksmarthomes.com', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgZGd4B8cHR-mPnLArS_hgAAAUQ', 'REDIRECT_SCRIPT_URI' => 'https://www.amiteksmarthomes.com/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_SCRIPT_URL' => '/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_SSL_TLS_SNI' => 'www.amiteksmarthomes.com', 'REDIRECT_STATUS' => '200', 'REDIRECT_UNIQUE_ID' => 'ZgZGd4B8cHR-mPnLArS_hgAAAUQ', 'REDIRECT_URL' => '/webroot/blogs/9-of-the-Top-Home-Automation', 'REMOTE_ADDR' => '3.89.200.155', 'REMOTE_PORT' => '47086', 'REQUEST_METHOD' => 'GET', 'REQUEST_SCHEME' => 'https', 'REQUEST_URI' => '/blogs/9-of-the-Top-Home-Automation', 'SCRIPT_FILENAME' => '/home/pradeep8617/public_html/webroot/index.php', 'SCRIPT_NAME' => '/webroot/index.php', 'SCRIPT_URI' => 'https://www.amiteksmarthomes.com/blogs/9-of-the-Top-Home-Automation', 'SCRIPT_URL' => '/blogs/9-of-the-Top-Home-Automation', 'SERVER_ADDR' => '208.109.8.116', 'SERVER_ADMIN' => 'webmaster@amiteksmarthomes.com', 'SERVER_NAME' => 'www.amiteksmarthomes.com', 'SERVER_PORT' => '443', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SSL_TLS_SNI' => 'www.amiteksmarthomes.com', 'TZ' => 'America/Phoenix', 'UNIQUE_ID' => 'ZgZGd4B8cHR-mPnLArS_hgAAAUQ', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711687287.6419, 'REQUEST_TIME' => (int) 1711687287, 'argv' => [], 'argc' => (int) 0, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] _input => null [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' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.amiteksmarthomes.com' [private] port => null [private] path => '/blogs/9-of-the-Top-Home-Automation' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '86400' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => [], 'cacheDirectives' => [], 'body' => '' }
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Cake\Http\ServerRequest) { params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] data => [] query => [] cookies => [] url => 'blogs/9-of-the-Top-Home-Automation' base => '' webroot => '/' here => '/blogs/9-of-the-Top-Home-Automation' trustProxy => false [protected] _environment => [ 'CONTEXT_DOCUMENT_ROOT' => '/home/pradeep8617/public_html', 'CONTEXT_PREFIX' => '', 'DOCUMENT_ROOT' => '/home/pradeep8617/public_html', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'HTTP_ACCEPT' => '*/*', 'HTTP_HOST' => 'www.amiteksmarthomes.com', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_X_HTTPS' => '1', 'PATH' => '/bin:/usr/bin', 'PHP_INI_SCAN_DIR' => '/opt/cpanel/ea-php56/root/etc:/opt/cpanel/ea-php56/root/etc/php.d:.', 'QUERY_STRING' => '', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_SCRIPT_URI' => 'https://www.amiteksmarthomes.com/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_REDIRECT_SCRIPT_URL' => '/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'www.amiteksmarthomes.com', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgZGd4B8cHR-mPnLArS_hgAAAUQ', 'REDIRECT_SCRIPT_URI' => 'https://www.amiteksmarthomes.com/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_SCRIPT_URL' => '/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_SSL_TLS_SNI' => 'www.amiteksmarthomes.com', 'REDIRECT_STATUS' => '200', 'REDIRECT_UNIQUE_ID' => 'ZgZGd4B8cHR-mPnLArS_hgAAAUQ', 'REDIRECT_URL' => '/webroot/blogs/9-of-the-Top-Home-Automation', 'REMOTE_ADDR' => '3.89.200.155', 'REMOTE_PORT' => '47086', 'REQUEST_METHOD' => 'GET', 'REQUEST_SCHEME' => 'https', 'REQUEST_URI' => '/blogs/9-of-the-Top-Home-Automation', 'SCRIPT_FILENAME' => '/home/pradeep8617/public_html/webroot/index.php', 'SCRIPT_NAME' => '/webroot/index.php', 'SCRIPT_URI' => 'https://www.amiteksmarthomes.com/blogs/9-of-the-Top-Home-Automation', 'SCRIPT_URL' => '/blogs/9-of-the-Top-Home-Automation', 'SERVER_ADDR' => '208.109.8.116', 'SERVER_ADMIN' => 'webmaster@amiteksmarthomes.com', 'SERVER_NAME' => 'www.amiteksmarthomes.com', 'SERVER_PORT' => '443', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SSL_TLS_SNI' => 'www.amiteksmarthomes.com', 'TZ' => 'America/Phoenix', 'UNIQUE_ID' => 'ZgZGd4B8cHR-mPnLArS_hgAAAUQ', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711687287.6419, 'REQUEST_TIME' => (int) 1711687287, 'argv' => [], 'argc' => (int) 0, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] _input => null [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' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.amiteksmarthomes.com' [private] port => null [private] path => '/blogs/9-of-the-Top-Home-Automation' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '86400' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => [], 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 4 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
{ |
|
$this->middleware = $middleware; |
|
$this->index = 0; |
|
|
|
return $this->__invoke($request, $response); |
|
} |
|
|
|
/** |
|
* @param \Psr\Http\Message\ServerRequestInterface $request The server request |
object(Cake\Http\ServerRequest) { params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] data => [] query => [] cookies => [] url => 'blogs/9-of-the-Top-Home-Automation' base => '' webroot => '/' here => '/blogs/9-of-the-Top-Home-Automation' trustProxy => false [protected] _environment => [ 'CONTEXT_DOCUMENT_ROOT' => '/home/pradeep8617/public_html', 'CONTEXT_PREFIX' => '', 'DOCUMENT_ROOT' => '/home/pradeep8617/public_html', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'HTTP_ACCEPT' => '*/*', 'HTTP_HOST' => 'www.amiteksmarthomes.com', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_X_HTTPS' => '1', 'PATH' => '/bin:/usr/bin', 'PHP_INI_SCAN_DIR' => '/opt/cpanel/ea-php56/root/etc:/opt/cpanel/ea-php56/root/etc/php.d:.', 'QUERY_STRING' => '', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_SCRIPT_URI' => 'https://www.amiteksmarthomes.com/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_REDIRECT_SCRIPT_URL' => '/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'www.amiteksmarthomes.com', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgZGd4B8cHR-mPnLArS_hgAAAUQ', 'REDIRECT_SCRIPT_URI' => 'https://www.amiteksmarthomes.com/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_SCRIPT_URL' => '/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_SSL_TLS_SNI' => 'www.amiteksmarthomes.com', 'REDIRECT_STATUS' => '200', 'REDIRECT_UNIQUE_ID' => 'ZgZGd4B8cHR-mPnLArS_hgAAAUQ', 'REDIRECT_URL' => '/webroot/blogs/9-of-the-Top-Home-Automation', 'REMOTE_ADDR' => '3.89.200.155', 'REMOTE_PORT' => '47086', 'REQUEST_METHOD' => 'GET', 'REQUEST_SCHEME' => 'https', 'REQUEST_URI' => '/blogs/9-of-the-Top-Home-Automation', 'SCRIPT_FILENAME' => '/home/pradeep8617/public_html/webroot/index.php', 'SCRIPT_NAME' => '/webroot/index.php', 'SCRIPT_URI' => 'https://www.amiteksmarthomes.com/blogs/9-of-the-Top-Home-Automation', 'SCRIPT_URL' => '/blogs/9-of-the-Top-Home-Automation', 'SERVER_ADDR' => '208.109.8.116', 'SERVER_ADMIN' => 'webmaster@amiteksmarthomes.com', 'SERVER_NAME' => 'www.amiteksmarthomes.com', 'SERVER_PORT' => '443', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SSL_TLS_SNI' => 'www.amiteksmarthomes.com', 'TZ' => 'America/Phoenix', 'UNIQUE_ID' => 'ZgZGd4B8cHR-mPnLArS_hgAAAUQ', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711687287.6419, 'REQUEST_TIME' => (int) 1711687287, 'argv' => [], 'argc' => (int) 0, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] _input => null [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' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.amiteksmarthomes.com' [private] port => null [private] path => '/blogs/9-of-the-Top-Home-Automation' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '86400' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => [], 'cacheDirectives' => [], 'body' => '' }
throw new RuntimeException('The application `middleware` method did not return a middleware queue.'); |
|
} |
|
$this->dispatchEvent('Server.buildMiddleware', ['middleware' => $middleware]); |
|
$middleware->add($this->app); |
|
$response = $this->runner->run($middleware, $request, $response); |
|
|
|
if (!($response instanceof ResponseInterface)) { |
|
throw new RuntimeException(sprintf( |
|
'Application did not create a response. Got "%s" instead.', |
object(Cake\Http\MiddlewareQueue) { [protected] queue => [ (int) 0 => 'Cake\Error\Middleware\ErrorHandlerMiddleware', (int) 1 => 'Cake\Routing\Middleware\AssetMiddleware', (int) 2 => 'Cake\Routing\Middleware\RoutingMiddleware', (int) 3 => object(App\Application) {} ] [protected] callables => [ (int) 0 => object(Cake\Error\Middleware\ErrorHandlerMiddleware) {}, (int) 1 => object(Cake\Routing\Middleware\AssetMiddleware) {}, (int) 2 => object(Cake\Routing\Middleware\RoutingMiddleware) {}, (int) 3 => object(App\Application) {} ] } object(Cake\Http\ServerRequest) { params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] data => [] query => [] cookies => [] url => 'blogs/9-of-the-Top-Home-Automation' base => '' webroot => '/' here => '/blogs/9-of-the-Top-Home-Automation' trustProxy => false [protected] _environment => [ 'CONTEXT_DOCUMENT_ROOT' => '/home/pradeep8617/public_html', 'CONTEXT_PREFIX' => '', 'DOCUMENT_ROOT' => '/home/pradeep8617/public_html', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'HTTP_ACCEPT' => '*/*', 'HTTP_HOST' => 'www.amiteksmarthomes.com', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_X_HTTPS' => '1', 'PATH' => '/bin:/usr/bin', 'PHP_INI_SCAN_DIR' => '/opt/cpanel/ea-php56/root/etc:/opt/cpanel/ea-php56/root/etc/php.d:.', 'QUERY_STRING' => '', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_SCRIPT_URI' => 'https://www.amiteksmarthomes.com/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_REDIRECT_SCRIPT_URL' => '/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'www.amiteksmarthomes.com', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgZGd4B8cHR-mPnLArS_hgAAAUQ', 'REDIRECT_SCRIPT_URI' => 'https://www.amiteksmarthomes.com/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_SCRIPT_URL' => '/blogs/9-of-the-Top-Home-Automation', 'REDIRECT_SSL_TLS_SNI' => 'www.amiteksmarthomes.com', 'REDIRECT_STATUS' => '200', 'REDIRECT_UNIQUE_ID' => 'ZgZGd4B8cHR-mPnLArS_hgAAAUQ', 'REDIRECT_URL' => '/webroot/blogs/9-of-the-Top-Home-Automation', 'REMOTE_ADDR' => '3.89.200.155', 'REMOTE_PORT' => '47086', 'REQUEST_METHOD' => 'GET', 'REQUEST_SCHEME' => 'https', 'REQUEST_URI' => '/blogs/9-of-the-Top-Home-Automation', 'SCRIPT_FILENAME' => '/home/pradeep8617/public_html/webroot/index.php', 'SCRIPT_NAME' => '/webroot/index.php', 'SCRIPT_URI' => 'https://www.amiteksmarthomes.com/blogs/9-of-the-Top-Home-Automation', 'SCRIPT_URL' => '/blogs/9-of-the-Top-Home-Automation', 'SERVER_ADDR' => '208.109.8.116', 'SERVER_ADMIN' => 'webmaster@amiteksmarthomes.com', 'SERVER_NAME' => 'www.amiteksmarthomes.com', 'SERVER_PORT' => '443', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SSL_TLS_SNI' => 'www.amiteksmarthomes.com', 'TZ' => 'America/Phoenix', 'UNIQUE_ID' => 'ZgZGd4B8cHR-mPnLArS_hgAAAUQ', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711687287.6419, 'REQUEST_TIME' => (int) 1711687287, 'argv' => [], 'argc' => (int) 0, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] _input => null [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' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.amiteksmarthomes.com' [private] port => null [private] path => '/blogs/9-of-the-Top-Home-Automation' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '86400' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => [], 'cacheDirectives' => [], 'body' => '' }
$server = new Server(new Application(dirname(__DIR__) . '/config')); |
|
|
|
// Run the request/response through the application |
|
// and emit the response. |
|
$server->emit($server->run()); |
|
|
|
|
No arguments
If you are using SQL keywords as table column names, you can enable identifier quoting for your database connection in config/app.php.
Some of the Table objects in your application were created by instantiating "Cake\ORM\Table" instead of any other specific subclass.
This could be the cause for this exception. Auto-Tables are created for you under the following circumstances:
Please try correcting the issue for the following table aliases:
If you want to customize this error message, create src/Template/Error/pdo_error.ctp