Warning (2): Error while sending QUERY packet. PID=17092 [CORE/Cake/Model/Datasource/DboSource.php, line 461]Code Context$query = $this->_connection->prepare($sql, $prepareOptions);
$query->setFetchMode(PDO::FETCH_LAZY);
if (!$query->execute($params)) {
$sql = 'SELECT `Setting`.`id`, `Setting`.`skype`, `Setting`.`name`, `Setting`.`title`, `Setting`.`title_en`, `Setting`.`address`, `Setting`.`contactinfo`, `Setting`.`contactinfo_en`, `Setting`.`gmaps`, `Setting`.`maps`, `Setting`.`analytics`, `Setting`.`telephone`, `Setting`.`hotline`, `Setting`.`email`, `Setting`.`url`, `Setting`.`meta_key`, `Setting`.`meta_des`, `Setting`.`created`, `Setting`.`modified`, `Setting`.`youtube`, `Setting`.`twitter`, `Setting`.`yahoo`, `Setting`.`facebook`, `Setting`.`gplus`, `Setting`.`images`, `Setting`.`thongtin`, `Setting`.`thongtin_en`, `Setting`.`slogan`, `Setting`.`slogan_en`, `Setting`.`video`, `Setting`.`hotline1`, `Setting`.`hotline2`, `Setting`.`hotline3`, `Setting`.`hotline4` FROM `cuongtran_md`.`settings` AS `Setting` WHERE 1 = 1 LIMIT 1' $params = array() $prepareOptions = array() $this = object(Mysql) { description => 'MySQL DBO Driver' startQuote => '`' endQuote => '`' fieldParameters => array( 'charset' => array( [maximum depth reached] ), 'collate' => array( [maximum depth reached] ), 'comment' => array( [maximum depth reached] ) ) tableParameters => array( 'charset' => array( [maximum depth reached] ), 'collate' => array( [maximum depth reached] ), 'engine' => array( [maximum depth reached] ) ) columns => array( 'primary_key' => array( [maximum depth reached] ), 'string' => array( [maximum depth reached] ), 'text' => array( [maximum depth reached] ), 'integer' => array( [maximum depth reached] ), 'float' => array( [maximum depth reached] ), 'datetime' => array( [maximum depth reached] ), 'timestamp' => array( [maximum depth reached] ), 'time' => array( [maximum depth reached] ), 'date' => array( [maximum depth reached] ), 'binary' => array( [maximum depth reached] ), 'boolean' => array( [maximum depth reached] ) ) index => array( 'PRI' => 'primary', 'MUL' => 'index', 'UNI' => 'unique' ) alias => 'AS ' cacheMethods => true useNestedTransactions => false fullDebug => true affected => (int) 0 numRows => (int) 0 took => (float) 0 configKeyName => 'default' virtualFieldSeparator => '__' connected => true config => array( 'password' => '*****', 'login' => '*****', 'host' => '*****', 'database' => '*****', 'port' => '*****', 'prefix' => '*****', 'persistent' => false, 'datasource' => 'Database/Mysql', 'encoding' => 'utf8' ) cacheSources => true map => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => array( [maximum depth reached] ), (int) 4 => array( [maximum depth reached] ), (int) 5 => array( [maximum depth reached] ), (int) 6 => array( [maximum depth reached] ), (int) 7 => array( [maximum depth reached] ), (int) 8 => array( [maximum depth reached] ) ) } $query = object(PDOStatement) { queryString => 'SELECT `Setting`.`id`, `Setting`.`skype`, `Setting`.`name`, `Setting`.`title`, `Setting`.`title_en`, `Setting`.`address`, `Setting`.`contactinfo`, `Setting`.`contactinfo_en`, `Setting`.`gmaps`, `Setting`.`maps`, `Setting`.`analytics`, `Setting`.`telephone`, `Setting`.`hotline`, `Setting`.`email`, `Setting`.`url`, `Setting`.`meta_key`, `Setting`.`meta_des`, `Setting`.`created`, `Setting`.`modified`, `Setting`.`youtube`, `Setting`.`twitter`, `Setting`.`yahoo`, `Setting`.`facebook`, `Setting`.`gplus`, `Setting`.`images`, `Setting`.`thongtin`, `Setting`.`thongtin_en`, `Setting`.`slogan`, `Setting`.`slogan_en`, `Setting`.`video`, `Setting`.`hotline1`, `Setting`.`hotline2`, `Setting`.`hotline3`, `Setting`.`hotline4` FROM `cuongtran_md`.`settings` AS `Setting` WHERE 1 = 1 LIMIT 1' }PDOStatement::execute() - [internal], line ?? DboSource::_execute() - CORE/Cake/Model/Datasource/DboSource.php, line 461 DboSource::execute() - CORE/Cake/Model/Datasource/DboSource.php, line 427 DboSource::fetchAll() - CORE/Cake/Model/Datasource/DboSource.php, line 671 DboSource::read() - CORE/Cake/Model/Datasource/DboSource.php, line 1082 Model::find() - CORE/Cake/Model/Model.php, line 2630 AppController::beforeFilter() - APP/Controller/AppController.php, line 49 call_user_func - [internal], line ?? CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 246 Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 670 CakeErrorController::__construct() - CORE/Cake/Controller/CakeErrorController.php, line 63 ExceptionRenderer::_getController() - CORE/Cake/Error/ExceptionRenderer.php, line 152 ExceptionRenderer::__construct() - CORE/Cake/Error/ExceptionRenderer.php, line 93 ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 126 [main] - [internal], line ??
Notice (8): Undefined variable: setting [APP/View/Layouts/default.ctp, line 116]Code Context<meta property="fb:app_id" content="342590926091747" />
<script async defer src="https://connect.facebook.net/vi_VN/sdk.js#xfbml=1&version=v3.2&appId=342590926091747&autoLogAppEvents=1"></script>
<?php echo $setting['Setting']['analytics'] ?>
$viewFile = '/home/cuongtran/domains/maynhuamanhdung.com/public_html/app/View/Layouts/default.ctp' $dataForView = array( 'code' => (int) 500, 'url' => '/sitemap.xml', 'name' => 'SQLSTATE[08S01]: Communication link failure: 1053 Server shutdown in progress', 'error' => object(PDOException) { errorInfo => array( [maximum depth reached] ) queryString => 'SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME = ?' }, '_serialize' => array( (int) 0 => 'code', (int) 1 => 'url', (int) 2 => 'name', (int) 3 => 'error' ), 'content_for_layout' => '<h2>Database Error</h2> <p class="error"> <strong>Error: </strong> SQLSTATE[08S01]: Communication link failure: 1053 Server shutdown in progress</p> <p class="notice"> <strong>SQL Query: </strong> SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME = ? </p> <p class="notice"> <strong>Notice: </strong> If you want to customize this error message, create app/View/Errors/pdo_error.ctp</p> <h3>Stack Trace</h3> <ul class="cake-stack-trace"> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-0')">CORE/Cake/Model/Datasource/DboSource.php line 461</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">PDOStatement->execute(array)</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> try {</span></code> <code><span style="color: #000000"> $query = $this->_connection->prepare($sql, $prepareOptions);</span></code> <code><span style="color: #000000"> $query->setFetchMode(PDO::FETCH_LAZY);</span></code> <span class="code-highlight"><code><span style="color: #000000"> if (!$query->execute($params)) {</span></code></span> <code><span style="color: #000000"> $this->_results = $query;</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre>array( (int) 0 => 'utf8_general_ci' )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/Datasource/Database/Mysql.php line 262</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->_execute(string, array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code> <code><span style="color: #000000"> public function getCharsetName($name) {</span></code> <code><span style="color: #000000"> if ((bool)version_compare($this->getVersion(), "5", ">=")) {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $r = $this->_execute('SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME = ?', array($name));</span></code></span> <code><span style="color: #000000"> $cols = $r->fetch(PDO::FETCH_ASSOC);</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>'SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME = ?' array( (int) 0 => 'utf8_general_ci' )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Datasource/Database/Mysql.php line 309</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">Mysql->getCharsetName(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> }</span></code> <code><span style="color: #000000"> }</span></code> <code><span style="color: #000000"> if (isset($fields[$column->Field]['collate'])) {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $charset = $this->getCharsetName($fields[$column->Field]['collate']);</span></code></span> <code><span style="color: #000000"> if ($charset) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'utf8_general_ci'</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1304</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Mysql->describe(AppModel)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $db = $this->getDataSource();</span></code> <code><span style="color: #000000"> $db->cacheSources = ($this->cacheSources && $db->cacheSources);</span></code> <code><span style="color: #000000"> if (method_exists($db, 'describe') && $this->useTable !== false) {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $this->_schema = $db->describe($this);</span></code></span> <code><span style="color: #000000"> } elseif ($this->useTable === false) {</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>object(AppModel) { useDbConfig => 'default' useTable => 'hangs' id => false data => array([maximum depth reached]) schemaName => 'cuongtran_md' table => 'hangs' primaryKey => 'id' validate => array([maximum depth reached]) validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => '' name => 'Hang' alias => 'Hang' tableToModel => array( [maximum depth reached] ) cacheQueries => false belongsTo => array([maximum depth reached]) hasOne => array([maximum depth reached]) hasMany => array([maximum depth reached]) hasAndBelongsToMany => array([maximum depth reached]) actsAs => null Behaviors => object(BehaviorCollection) {} whitelist => array([maximum depth reached]) cacheSources => true findQueryType => 'all' recursive => (int) 1 order => null virtualFields => array([maximum depth reached]) __backAssociation => array([maximum depth reached]) __backInnerAssociation => array([maximum depth reached]) __backOriginalAssociation => array([maximum depth reached]) __backContainableAssociation => array([maximum depth reached]) findMethods => array( [maximum depth reached] ) }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Datasource/DboSource.php line 2296</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->schema()</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> }</span></code> <code><span style="color: #000000"> $allFields = empty($fields);</span></code> <code><span style="color: #000000"> if ($allFields) {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $fields = array_keys($model->schema());</span></code></span> <code><span style="color: #000000"> } elseif (!is_array($fields)) {</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre></pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Datasource/DboSource.php line 1052</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">DboSource->fields(AppModel)</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $bypass = true;</span></code> <code><span style="color: #000000"> $queryData['fields'] = $this->fields($model, null, $queryData['fields']);</span></code> <code><span style="color: #000000"> } else {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $queryData['fields'] = $this->fields($model);</span></code></span> <code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre>object(AppModel) { useDbConfig => 'default' useTable => 'hangs' id => false data => array([maximum depth reached]) schemaName => 'cuongtran_md' table => 'hangs' primaryKey => 'id' validate => array([maximum depth reached]) validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => '' name => 'Hang' alias => 'Hang' tableToModel => array( [maximum depth reached] ) cacheQueries => false belongsTo => array([maximum depth reached]) hasOne => array([maximum depth reached]) hasMany => array([maximum depth reached]) hasAndBelongsToMany => array([maximum depth reached]) actsAs => null Behaviors => object(BehaviorCollection) {} whitelist => array([maximum depth reached]) cacheSources => true findQueryType => 'all' recursive => (int) 1 order => null virtualFields => array([maximum depth reached]) __backAssociation => array([maximum depth reached]) __backInnerAssociation => array([maximum depth reached]) __backOriginalAssociation => array([maximum depth reached]) __backContainableAssociation => array([maximum depth reached]) findMethods => array( [maximum depth reached] ) }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">CORE/Cake/Model/Model.php line 2630</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">DboSource->read(AppModel, array)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> return null;</span></code> <code><span style="color: #000000"> }</span></code> <code><span style="color: #000000"></span></code> <span class="code-highlight"><code><span style="color: #000000"> $results = $this->getDataSource()->read($this, $query);</span></code></span> <code><span style="color: #000000"> $this->resetAssociations();</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>object(AppModel) { useDbConfig => 'default' useTable => 'hangs' id => false data => array([maximum depth reached]) schemaName => 'cuongtran_md' table => 'hangs' primaryKey => 'id' validate => array([maximum depth reached]) validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => '' name => 'Hang' alias => 'Hang' tableToModel => array( [maximum depth reached] ) cacheQueries => false belongsTo => array([maximum depth reached]) hasOne => array([maximum depth reached]) hasMany => array([maximum depth reached]) hasAndBelongsToMany => array([maximum depth reached]) actsAs => null Behaviors => object(BehaviorCollection) {} whitelist => array([maximum depth reached]) cacheSources => true findQueryType => 'all' recursive => (int) 1 order => null virtualFields => array([maximum depth reached]) __backAssociation => array([maximum depth reached]) __backInnerAssociation => array([maximum depth reached]) __backOriginalAssociation => array([maximum depth reached]) __backContainableAssociation => array([maximum depth reached]) findMethods => array( [maximum depth reached] ) } array( 'conditions' => array( 'Hang.status' => (int) 1 ), 'fields' => null, 'joins' => array(), 'limit' => null, 'offset' => null, 'order' => array( (int) 0 => 'Hang.pos ASC' ), 'page' => (int) 1, 'group' => null, 'callbacks' => true )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 111</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">Model->find(string, array)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> 'Hang.status' => 1,</span></code> <code><span style="color: #000000"> ),</span></code> <code><span style="color: #000000"> 'order' => 'Hang.pos ASC',</span></code> <span class="code-highlight"><code><span style="color: #000000"> ));</span></code></span> <code><span style="color: #000000"> $this->set('hang', $hang);</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>'all' array( 'conditions' => array( 'Hang.status' => (int) 1 ), 'order' => 'Hang.pos ASC' )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/ProductController.php line 16</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public $components = array('Email');</span></code> <code><span style="color: #000000"> </span></code> <code><span style="color: #000000"> public function beforeFilter() {</span></code> <span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span> <code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li> <li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">ProductController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data => null result => null }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code> <code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code> <code><span style="color: #000000"> } else {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span> <code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array( (int) 0 => object(ProductController) {}, (int) 1 => 'beforeFilter' ) object(CakeEvent) { data => null result => null }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code> <code><span style="color: #000000"> */</span></code> <code><span style="color: #000000"> public function startupProcess() {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span> <code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data => null result => null }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code> <code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code> <code><span style="color: #000000"> $controller->constructClasses();</span></code> <span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span> <code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(ProductController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code> <code><span style="color: #000000"> }</span></code> <code><span style="color: #000000"></span></code> <span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span> <code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(ProductController) { name => 'Product' uses => array( [maximum depth reached] ) components => array( [maximum depth reached] ) helpers => array( [maximum depth reached] ) request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'Product' layoutPath => null viewVars => array( [maximum depth reached] ) view => 'index' layout => 'default' autoRender => true autoLayout => true Components => object(ComponentCollection) {} viewClass => 'View' View => null ext => '.ctp' plugin => null cacheAction => false passedArgs => array( [maximum depth reached] ) scaffold => false methods => array( [maximum depth reached] ) modelClass => 'Catproduct' modelKey => 'product' validationErrors => null Session => object(SessionComponent) {} Email => object(EmailComponent) {} Setting => object(AppModel) {} Banner => object(AppModel) {} Logo => object(AppModel) {} Product => object(AppModel) {} News => object(AppModel) {} Advertisement => object(AppModel) {} Hang => object(AppModel) {} } object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'sitemap.xml' base => '' webroot => '/' here => '/sitemap.xml' } object(CakeResponse) { }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 92</a> → <a href="#" onclick="traceToggle(event, 'trace-args-14')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-14" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000">App::uses('Dispatcher', 'Routing');</span></code> <code><span style="color: #000000"></span></code> <code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code> <span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span> <code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-14" class="cake-code-dump" style="display: none;"><pre>object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'sitemap.xml' base => '' webroot => '/' here => '/sitemap.xml' } object(CakeResponse) { }</pre></div></li> </ul> <script type="text/javascript"> function traceToggle(event, id) { var el = document.getElementById(id); el.style.display = (el.style.display == 'block') ? 'none' : 'block'; event.preventDefault(); return false; } </script> ', 'scripts_for_layout' => '', 'title_for_layout' => 'Errors' ) $code = (int) 500 $url = '/sitemap.xml' $name = 'SQLSTATE[08S01]: Communication link failure: 1053 Server shutdown in progress' $error = object(PDOException) { errorInfo => array( (int) 0 => '08S01', (int) 1 => (int) 1053, (int) 2 => 'Server shutdown in progress' ) queryString => 'SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME = ?' } $_serialize = array( (int) 0 => 'code', (int) 1 => 'url', (int) 2 => 'name', (int) 3 => 'error' ) $content_for_layout = '<h2>Database Error</h2> <p class="error"> <strong>Error: </strong> SQLSTATE[08S01]: Communication link failure: 1053 Server shutdown in progress</p> <p class="notice"> <strong>SQL Query: </strong> SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME = ? </p> <p class="notice"> <strong>Notice: </strong> If you want to customize this error message, create app/View/Errors/pdo_error.ctp</p> <h3>Stack Trace</h3> <ul class="cake-stack-trace"> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-0')">CORE/Cake/Model/Datasource/DboSource.php line 461</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">PDOStatement->execute(array)</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> try {</span></code> <code><span style="color: #000000"> $query = $this->_connection->prepare($sql, $prepareOptions);</span></code> <code><span style="color: #000000"> $query->setFetchMode(PDO::FETCH_LAZY);</span></code> <span class="code-highlight"><code><span style="color: #000000"> if (!$query->execute($params)) {</span></code></span> <code><span style="color: #000000"> $this->_results = $query;</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre>array( (int) 0 => 'utf8_general_ci' )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/Datasource/Database/Mysql.php line 262</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->_execute(string, array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code> <code><span style="color: #000000"> public function getCharsetName($name) {</span></code> <code><span style="color: #000000"> if ((bool)version_compare($this->getVersion(), "5", ">=")) {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $r = $this->_execute('SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME = ?', array($name));</span></code></span> <code><span style="color: #000000"> $cols = $r->fetch(PDO::FETCH_ASSOC);</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>'SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME = ?' array( (int) 0 => 'utf8_general_ci' )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Datasource/Database/Mysql.php line 309</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">Mysql->getCharsetName(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> }</span></code> <code><span style="color: #000000"> }</span></code> <code><span style="color: #000000"> if (isset($fields[$column->Field]['collate'])) {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $charset = $this->getCharsetName($fields[$column->Field]['collate']);</span></code></span> <code><span style="color: #000000"> if ($charset) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'utf8_general_ci'</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1304</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Mysql->describe(AppModel)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $db = $this->getDataSource();</span></code> <code><span style="color: #000000"> $db->cacheSources = ($this->cacheSources && $db->cacheSources);</span></code> <code><span style="color: #000000"> if (method_exists($db, 'describe') && $this->useTable !== false) {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $this->_schema = $db->describe($this);</span></code></span> <code><span style="color: #000000"> } elseif ($this->useTable === false) {</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>object(AppModel) { useDbConfig => 'default' useTable => 'hangs' id => false data => array([maximum depth reached]) schemaName => 'cuongtran_md' table => 'hangs' primaryKey => 'id' validate => array([maximum depth reached]) validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => '' name => 'Hang' alias => 'Hang' tableToModel => array( [maximum depth reached] ) cacheQueries => false belongsTo => array([maximum depth reached]) hasOne => array([maximum depth reached]) hasMany => array([maximum depth reached]) hasAndBelongsToMany => array([maximum depth reached]) actsAs => null Behaviors => object(BehaviorCollection) {} whitelist => array([maximum depth reached]) cacheSources => true findQueryType => 'all' recursive => (int) 1 order => null virtualFields => array([maximum depth reached]) __backAssociation => array([maximum depth reached]) __backInnerAssociation => array([maximum depth reached]) __backOriginalAssociation => array([maximum depth reached]) __backContainableAssociation => array([maximum depth reached]) findMethods => array( [maximum depth reached] ) }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Datasource/DboSource.php line 2296</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->schema()</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> }</span></code> <code><span style="color: #000000"> $allFields = empty($fields);</span></code> <code><span style="color: #000000"> if ($allFields) {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $fields = array_keys($model->schema());</span></code></span> <code><span style="color: #000000"> } elseif (!is_array($fields)) {</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre></pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Datasource/DboSource.php line 1052</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">DboSource->fields(AppModel)</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $bypass = true;</span></code> <code><span style="color: #000000"> $queryData['fields'] = $this->fields($model, null, $queryData['fields']);</span></code> <code><span style="color: #000000"> } else {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $queryData['fields'] = $this->fields($model);</span></code></span> <code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre>object(AppModel) { useDbConfig => 'default' useTable => 'hangs' id => false data => array([maximum depth reached]) schemaName => 'cuongtran_md' table => 'hangs' primaryKey => 'id' validate => array([maximum depth reached]) validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => '' name => 'Hang' alias => 'Hang' tableToModel => array( [maximum depth reached] ) cacheQueries => false belongsTo => array([maximum depth reached]) hasOne => array([maximum depth reached]) hasMany => array([maximum depth reached]) hasAndBelongsToMany => array([maximum depth reached]) actsAs => null Behaviors => object(BehaviorCollection) {} whitelist => array([maximum depth reached]) cacheSources => true findQueryType => 'all' recursive => (int) 1 order => null virtualFields => array([maximum depth reached]) __backAssociation => array([maximum depth reached]) __backInnerAssociation => array([maximum depth reached]) __backOriginalAssociation => array([maximum depth reached]) __backContainableAssociation => array([maximum depth reached]) findMethods => array( [maximum depth reached] ) }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">CORE/Cake/Model/Model.php line 2630</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">DboSource->read(AppModel, array)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> return null;</span></code> <code><span style="color: #000000"> }</span></code> <code><span style="color: #000000"></span></code> <span class="code-highlight"><code><span style="color: #000000"> $results = $this->getDataSource()->read($this, $query);</span></code></span> <code><span style="color: #000000"> $this->resetAssociations();</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>object(AppModel) { useDbConfig => 'default' useTable => 'hangs' id => false data => array([maximum depth reached]) schemaName => 'cuongtran_md' table => 'hangs' primaryKey => 'id' validate => array([maximum depth reached]) validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => '' name => 'Hang' alias => 'Hang' tableToModel => array( [maximum depth reached] ) cacheQueries => false belongsTo => array([maximum depth reached]) hasOne => array([maximum depth reached]) hasMany => array([maximum depth reached]) hasAndBelongsToMany => array([maximum depth reached]) actsAs => null Behaviors => object(BehaviorCollection) {} whitelist => array([maximum depth reached]) cacheSources => true findQueryType => 'all' recursive => (int) 1 order => null virtualFields => array([maximum depth reached]) __backAssociation => array([maximum depth reached]) __backInnerAssociation => array([maximum depth reached]) __backOriginalAssociation => array([maximum depth reached]) __backContainableAssociation => array([maximum depth reached]) findMethods => array( [maximum depth reached] ) } array( 'conditions' => array( 'Hang.status' => (int) 1 ), 'fields' => null, 'joins' => array(), 'limit' => null, 'offset' => null, 'order' => array( (int) 0 => 'Hang.pos ASC' ), 'page' => (int) 1, 'group' => null, 'callbacks' => true )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 111</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">Model->find(string, array)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> 'Hang.status' => 1,</span></code> <code><span style="color: #000000"> ),</span></code> <code><span style="color: #000000"> 'order' => 'Hang.pos ASC',</span></code> <span class="code-highlight"><code><span style="color: #000000"> ));</span></code></span> <code><span style="color: #000000"> $this->set('hang', $hang);</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>'all' array( 'conditions' => array( 'Hang.status' => (int) 1 ), 'order' => 'Hang.pos ASC' )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/ProductController.php line 16</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public $components = array('Email');</span></code> <code><span style="color: #000000"> </span></code> <code><span style="color: #000000"> public function beforeFilter() {</span></code> <span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span> <code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li> <li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">ProductController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data => null result => null }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code> <code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code> <code><span style="color: #000000"> } else {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span> <code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array( (int) 0 => object(ProductController) {}, (int) 1 => 'beforeFilter' ) object(CakeEvent) { data => null result => null }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code> <code><span style="color: #000000"> */</span></code> <code><span style="color: #000000"> public function startupProcess() {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span> <code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data => null result => null }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code> <code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code> <code><span style="color: #000000"> $controller->constructClasses();</span></code> <span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span> <code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(ProductController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code> <code><span style="color: #000000"> }</span></code> <code><span style="color: #000000"></span></code> <span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span> <code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(ProductController) { name => 'Product' uses => array( [maximum depth reached] ) components => array( [maximum depth reached] ) helpers => array( [maximum depth reached] ) request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'Product' layoutPath => null viewVars => array( [maximum depth reached] ) view => 'index' layout => 'default' autoRender => true autoLayout => true Components => object(ComponentCollection) {} viewClass => 'View' View => null ext => '.ctp' plugin => null cacheAction => false passedArgs => array( [maximum depth reached] ) scaffold => false methods => array( [maximum depth reached] ) modelClass => 'Catproduct' modelKey => 'product' validationErrors => null Session => object(SessionComponent) {} Email => object(EmailComponent) {} Setting => object(AppModel) {} Banner => object(AppModel) {} Logo => object(AppModel) {} Product => object(AppModel) {} News => object(AppModel) {} Advertisement => object(AppModel) {} Hang => object(AppModel) {} } object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'sitemap.xml' base => '' webroot => '/' here => '/sitemap.xml' } object(CakeResponse) { }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 92</a> → <a href="#" onclick="traceToggle(event, 'trace-args-14')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-14" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000">App::uses('Dispatcher', 'Routing');</span></code> <code><span style="color: #000000"></span></code> <code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code> <span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span> <code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-14" class="cake-code-dump" style="display: none;"><pre>object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'sitemap.xml' base => '' webroot => '/' here => '/sitemap.xml' } object(CakeResponse) { }</pre></div></li> </ul> <script type="text/javascript"> function traceToggle(event, id) { var el = document.getElementById(id); el.style.display = (el.style.display == 'block') ? 'none' : 'block'; event.preventDefault(); return false; } </script> ' $scripts_for_layout = '' $title_for_layout = 'Errors'include - APP/View/Layouts/default.ctp, line 116 View::_evaluate() - CORE/Cake/View/View.php, line 920 View::_render() - CORE/Cake/View/View.php, line 883 View::renderLayout() - CORE/Cake/View/View.php, line 539 View::render() - CORE/Cake/View/View.php, line 483 Controller::render() - CORE/Cake/Controller/Controller.php, line 957 ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 268 ExceptionRenderer::pdoError() - CORE/Cake/Error/ExceptionRenderer.php, line 257 ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 170 ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 127 [main] - [internal], line ??
<div id="sp-logo" class="span2" style="display: none;">
<div class="logo-wrapper">
<a href="<?php echo DOMAIN ?>"><img alt="" class="image-logo" src="<?php echo DOMAIN ?><?php echo $logo['Logo']['images'] ?>" style="height: 110px;" /></a>
$viewFile = '/home/cuongtran/domains/maynhuamanhdung.com/public_html/app/View/Elements/header.ctp' $dataForView = array( 'code' => (int) 500, 'url' => '/sitemap.xml', 'name' => 'SQLSTATE[08S01]: Communication link failure: 1053 Server shutdown in progress', 'error' => object(PDOException) { errorInfo => array( [maximum depth reached] ) queryString => 'SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME = ?' }, '_serialize' => array( (int) 0 => 'code', (int) 1 => 'url', (int) 2 => 'name', (int) 3 => 'error' ), 'content_for_layout' => '<h2>Database Error</h2> <p class="error"> <strong>Error: </strong> SQLSTATE[08S01]: Communication link failure: 1053 Server shutdown in progress</p> <p class="notice"> <strong>SQL Query: </strong> SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME = ? </p> <p class="notice"> <strong>Notice: </strong> If you want to customize this error message, create app/View/Errors/pdo_error.ctp</p> <h3>Stack Trace</h3> <ul class="cake-stack-trace"> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-0')">CORE/Cake/Model/Datasource/DboSource.php line 461</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">PDOStatement->execute(array)</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> try {</span></code> <code><span style="color: #000000"> $query = $this->_connection->prepare($sql, $prepareOptions);</span></code> <code><span style="color: #000000"> $query->setFetchMode(PDO::FETCH_LAZY);</span></code> <span class="code-highlight"><code><span style="color: #000000"> if (!$query->execute($params)) {</span></code></span> <code><span style="color: #000000"> $this->_results = $query;</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre>array( (int) 0 => 'utf8_general_ci' )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/Datasource/Database/Mysql.php line 262</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->_execute(string, array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code> <code><span style="color: #000000"> public function getCharsetName($name) {</span></code> <code><span style="color: #000000"> if ((bool)version_compare($this->getVersion(), "5", ">=")) {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $r = $this->_execute('SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME = ?', array($name));</span></code></span> <code><span style="color: #000000"> $cols = $r->fetch(PDO::FETCH_ASSOC);</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>'SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME = ?' array( (int) 0 => 'utf8_general_ci' )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Datasource/Database/Mysql.php line 309</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">Mysql->getCharsetName(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> }</span></code> <code><span style="color: #000000"> }</span></code> <code><span style="color: #000000"> if (isset($fields[$column->Field]['collate'])) {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $charset = $this->getCharsetName($fields[$column->Field]['collate']);</span></code></span> <code><span style="color: #000000"> if ($charset) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'utf8_general_ci'</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1304</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Mysql->describe(AppModel)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $db = $this->getDataSource();</span></code> <code><span style="color: #000000"> $db->cacheSources = ($this->cacheSources && $db->cacheSources);</span></code> <code><span style="color: #000000"> if (method_exists($db, 'describe') && $this->useTable !== false) {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $this->_schema = $db->describe($this);</span></code></span> <code><span style="color: #000000"> } elseif ($this->useTable === false) {</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>object(AppModel) { useDbConfig => 'default' useTable => 'hangs' id => false data => array([maximum depth reached]) schemaName => 'cuongtran_md' table => 'hangs' primaryKey => 'id' validate => array([maximum depth reached]) validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => '' name => 'Hang' alias => 'Hang' tableToModel => array( [maximum depth reached] ) cacheQueries => false belongsTo => array([maximum depth reached]) hasOne => array([maximum depth reached]) hasMany => array([maximum depth reached]) hasAndBelongsToMany => array([maximum depth reached]) actsAs => null Behaviors => object(BehaviorCollection) {} whitelist => array([maximum depth reached]) cacheSources => true findQueryType => 'all' recursive => (int) 1 order => null virtualFields => array([maximum depth reached]) __backAssociation => array([maximum depth reached]) __backInnerAssociation => array([maximum depth reached]) __backOriginalAssociation => array([maximum depth reached]) __backContainableAssociation => array([maximum depth reached]) findMethods => array( [maximum depth reached] ) }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Datasource/DboSource.php line 2296</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->schema()</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> }</span></code> <code><span style="color: #000000"> $allFields = empty($fields);</span></code> <code><span style="color: #000000"> if ($allFields) {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $fields = array_keys($model->schema());</span></code></span> <code><span style="color: #000000"> } elseif (!is_array($fields)) {</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre></pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Datasource/DboSource.php line 1052</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">DboSource->fields(AppModel)</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $bypass = true;</span></code> <code><span style="color: #000000"> $queryData['fields'] = $this->fields($model, null, $queryData['fields']);</span></code> <code><span style="color: #000000"> } else {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $queryData['fields'] = $this->fields($model);</span></code></span> <code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre>object(AppModel) { useDbConfig => 'default' useTable => 'hangs' id => false data => array([maximum depth reached]) schemaName => 'cuongtran_md' table => 'hangs' primaryKey => 'id' validate => array([maximum depth reached]) validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => '' name => 'Hang' alias => 'Hang' tableToModel => array( [maximum depth reached] ) cacheQueries => false belongsTo => array([maximum depth reached]) hasOne => array([maximum depth reached]) hasMany => array([maximum depth reached]) hasAndBelongsToMany => array([maximum depth reached]) actsAs => null Behaviors => object(BehaviorCollection) {} whitelist => array([maximum depth reached]) cacheSources => true findQueryType => 'all' recursive => (int) 1 order => null virtualFields => array([maximum depth reached]) __backAssociation => array([maximum depth reached]) __backInnerAssociation => array([maximum depth reached]) __backOriginalAssociation => array([maximum depth reached]) __backContainableAssociation => array([maximum depth reached]) findMethods => array( [maximum depth reached] ) }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">CORE/Cake/Model/Model.php line 2630</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">DboSource->read(AppModel, array)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> return null;</span></code> <code><span style="color: #000000"> }</span></code> <code><span style="color: #000000"></span></code> <span class="code-highlight"><code><span style="color: #000000"> $results = $this->getDataSource()->read($this, $query);</span></code></span> <code><span style="color: #000000"> $this->resetAssociations();</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>object(AppModel) { useDbConfig => 'default' useTable => 'hangs' id => false data => array([maximum depth reached]) schemaName => 'cuongtran_md' table => 'hangs' primaryKey => 'id' validate => array([maximum depth reached]) validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => '' name => 'Hang' alias => 'Hang' tableToModel => array( [maximum depth reached] ) cacheQueries => false belongsTo => array([maximum depth reached]) hasOne => array([maximum depth reached]) hasMany => array([maximum depth reached]) hasAndBelongsToMany => array([maximum depth reached]) actsAs => null Behaviors => object(BehaviorCollection) {} whitelist => array([maximum depth reached]) cacheSources => true findQueryType => 'all' recursive => (int) 1 order => null virtualFields => array([maximum depth reached]) __backAssociation => array([maximum depth reached]) __backInnerAssociation => array([maximum depth reached]) __backOriginalAssociation => array([maximum depth reached]) __backContainableAssociation => array([maximum depth reached]) findMethods => array( [maximum depth reached] ) } array( 'conditions' => array( 'Hang.status' => (int) 1 ), 'fields' => null, 'joins' => array(), 'limit' => null, 'offset' => null, 'order' => array( (int) 0 => 'Hang.pos ASC' ), 'page' => (int) 1, 'group' => null, 'callbacks' => true )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 111</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">Model->find(string, array)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> 'Hang.status' => 1,</span></code> <code><span style="color: #000000"> ),</span></code> <code><span style="color: #000000"> 'order' => 'Hang.pos ASC',</span></code> <span class="code-highlight"><code><span style="color: #000000"> ));</span></code></span> <code><span style="color: #000000"> $this->set('hang', $hang);</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>'all' array( 'conditions' => array( 'Hang.status' => (int) 1 ), 'order' => 'Hang.pos ASC' )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/ProductController.php line 16</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public $components = array('Email');</span></code> <code><span style="color: #000000"> </span></code> <code><span style="color: #000000"> public function beforeFilter() {</span></code> <span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span> <code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li> <li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">ProductController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data => null result => null }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code> <code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code> <code><span style="color: #000000"> } else {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span> <code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array( (int) 0 => object(ProductController) {}, (int) 1 => 'beforeFilter' ) object(CakeEvent) { data => null result => null }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code> <code><span style="color: #000000"> */</span></code> <code><span style="color: #000000"> public function startupProcess() {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span> <code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data => null result => null }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code> <code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code> <code><span style="color: #000000"> $controller->constructClasses();</span></code> <span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span> <code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(ProductController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code> <code><span style="color: #000000"> }</span></code> <code><span style="color: #000000"></span></code> <span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span> <code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(ProductController) { name => 'Product' uses => array( [maximum depth reached] ) components => array( [maximum depth reached] ) helpers => array( [maximum depth reached] ) request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'Product' layoutPath => null viewVars => array( [maximum depth reached] ) view => 'index' layout => 'default' autoRender => true autoLayout => true Components => object(ComponentCollection) {} viewClass => 'View' View => null ext => '.ctp' plugin => null cacheAction => false passedArgs => array( [maximum depth reached] ) scaffold => false methods => array( [maximum depth reached] ) modelClass => 'Catproduct' modelKey => 'product' validationErrors => null Session => object(SessionComponent) {} Email => object(EmailComponent) {} Setting => object(AppModel) {} Banner => object(AppModel) {} Logo => object(AppModel) {} Product => object(AppModel) {} News => object(AppModel) {} Advertisement => object(AppModel) {} Hang => object(AppModel) {} } object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'sitemap.xml' base => '' webroot => '/' here => '/sitemap.xml' } object(CakeResponse) { }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 92</a> → <a href="#" onclick="traceToggle(event, 'trace-args-14')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-14" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000">App::uses('Dispatcher', 'Routing');</span></code> <code><span style="color: #000000"></span></code> <code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code> <span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span> <code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-14" class="cake-code-dump" style="display: none;"><pre>object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'sitemap.xml' base => '' webroot => '/' here => '/sitemap.xml' } object(CakeResponse) { }</pre></div></li> </ul> <script type="text/javascript"> function traceToggle(event, id) { var el = document.getElementById(id); el.style.display = (el.style.display == 'block') ? 'none' : 'block'; event.preventDefault(); return false; } </script> ', 'scripts_for_layout' => '', 'title_for_layout' => 'Errors' ) $code = (int) 500 $url = '/sitemap.xml' $name = 'SQLSTATE[08S01]: Communication link failure: 1053 Server shutdown in progress' $error = object(PDOException) { errorInfo => array( (int) 0 => '08S01', (int) 1 => (int) 1053, (int) 2 => 'Server shutdown in progress' ) queryString => 'SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME = ?' } $_serialize = array( (int) 0 => 'code', (int) 1 => 'url', (int) 2 => 'name', (int) 3 => 'error' ) $content_for_layout = '<h2>Database Error</h2> <p class="error"> <strong>Error: </strong> SQLSTATE[08S01]: Communication link failure: 1053 Server shutdown in progress</p> <p class="notice"> <strong>SQL Query: </strong> SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME = ? </p> <p class="notice"> <strong>Notice: </strong> If you want to customize this error message, create app/View/Errors/pdo_error.ctp</p> <h3>Stack Trace</h3> <ul class="cake-stack-trace"> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-0')">CORE/Cake/Model/Datasource/DboSource.php line 461</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">PDOStatement->execute(array)</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> try {</span></code> <code><span style="color: #000000"> $query = $this->_connection->prepare($sql, $prepareOptions);</span></code> <code><span style="color: #000000"> $query->setFetchMode(PDO::FETCH_LAZY);</span></code> <span class="code-highlight"><code><span style="color: #000000"> if (!$query->execute($params)) {</span></code></span> <code><span style="color: #000000"> $this->_results = $query;</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre>array( (int) 0 => 'utf8_general_ci' )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/Datasource/Database/Mysql.php line 262</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->_execute(string, array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code> <code><span style="color: #000000"> public function getCharsetName($name) {</span></code> <code><span style="color: #000000"> if ((bool)version_compare($this->getVersion(), "5", ">=")) {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $r = $this->_execute('SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME = ?', array($name));</span></code></span> <code><span style="color: #000000"> $cols = $r->fetch(PDO::FETCH_ASSOC);</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>'SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME = ?' array( (int) 0 => 'utf8_general_ci' )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Datasource/Database/Mysql.php line 309</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">Mysql->getCharsetName(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> }</span></code> <code><span style="color: #000000"> }</span></code> <code><span style="color: #000000"> if (isset($fields[$column->Field]['collate'])) {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $charset = $this->getCharsetName($fields[$column->Field]['collate']);</span></code></span> <code><span style="color: #000000"> if ($charset) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'utf8_general_ci'</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1304</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Mysql->describe(AppModel)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $db = $this->getDataSource();</span></code> <code><span style="color: #000000"> $db->cacheSources = ($this->cacheSources && $db->cacheSources);</span></code> <code><span style="color: #000000"> if (method_exists($db, 'describe') && $this->useTable !== false) {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $this->_schema = $db->describe($this);</span></code></span> <code><span style="color: #000000"> } elseif ($this->useTable === false) {</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>object(AppModel) { useDbConfig => 'default' useTable => 'hangs' id => false data => array([maximum depth reached]) schemaName => 'cuongtran_md' table => 'hangs' primaryKey => 'id' validate => array([maximum depth reached]) validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => '' name => 'Hang' alias => 'Hang' tableToModel => array( [maximum depth reached] ) cacheQueries => false belongsTo => array([maximum depth reached]) hasOne => array([maximum depth reached]) hasMany => array([maximum depth reached]) hasAndBelongsToMany => array([maximum depth reached]) actsAs => null Behaviors => object(BehaviorCollection) {} whitelist => array([maximum depth reached]) cacheSources => true findQueryType => 'all' recursive => (int) 1 order => null virtualFields => array([maximum depth reached]) __backAssociation => array([maximum depth reached]) __backInnerAssociation => array([maximum depth reached]) __backOriginalAssociation => array([maximum depth reached]) __backContainableAssociation => array([maximum depth reached]) findMethods => array( [maximum depth reached] ) }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Datasource/DboSource.php line 2296</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->schema()</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> }</span></code> <code><span style="color: #000000"> $allFields = empty($fields);</span></code> <code><span style="color: #000000"> if ($allFields) {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $fields = array_keys($model->schema());</span></code></span> <code><span style="color: #000000"> } elseif (!is_array($fields)) {</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre></pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Datasource/DboSource.php line 1052</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">DboSource->fields(AppModel)</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $bypass = true;</span></code> <code><span style="color: #000000"> $queryData['fields'] = $this->fields($model, null, $queryData['fields']);</span></code> <code><span style="color: #000000"> } else {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $queryData['fields'] = $this->fields($model);</span></code></span> <code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre>object(AppModel) { useDbConfig => 'default' useTable => 'hangs' id => false data => array([maximum depth reached]) schemaName => 'cuongtran_md' table => 'hangs' primaryKey => 'id' validate => array([maximum depth reached]) validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => '' name => 'Hang' alias => 'Hang' tableToModel => array( [maximum depth reached] ) cacheQueries => false belongsTo => array([maximum depth reached]) hasOne => array([maximum depth reached]) hasMany => array([maximum depth reached]) hasAndBelongsToMany => array([maximum depth reached]) actsAs => null Behaviors => object(BehaviorCollection) {} whitelist => array([maximum depth reached]) cacheSources => true findQueryType => 'all' recursive => (int) 1 order => null virtualFields => array([maximum depth reached]) __backAssociation => array([maximum depth reached]) __backInnerAssociation => array([maximum depth reached]) __backOriginalAssociation => array([maximum depth reached]) __backContainableAssociation => array([maximum depth reached]) findMethods => array( [maximum depth reached] ) }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">CORE/Cake/Model/Model.php line 2630</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">DboSource->read(AppModel, array)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> return null;</span></code> <code><span style="color: #000000"> }</span></code> <code><span style="color: #000000"></span></code> <span class="code-highlight"><code><span style="color: #000000"> $results = $this->getDataSource()->read($this, $query);</span></code></span> <code><span style="color: #000000"> $this->resetAssociations();</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>object(AppModel) { useDbConfig => 'default' useTable => 'hangs' id => false data => array([maximum depth reached]) schemaName => 'cuongtran_md' table => 'hangs' primaryKey => 'id' validate => array([maximum depth reached]) validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => '' name => 'Hang' alias => 'Hang' tableToModel => array( [maximum depth reached] ) cacheQueries => false belongsTo => array([maximum depth reached]) hasOne => array([maximum depth reached]) hasMany => array([maximum depth reached]) hasAndBelongsToMany => array([maximum depth reached]) actsAs => null Behaviors => object(BehaviorCollection) {} whitelist => array([maximum depth reached]) cacheSources => true findQueryType => 'all' recursive => (int) 1 order => null virtualFields => array([maximum depth reached]) __backAssociation => array([maximum depth reached]) __backInnerAssociation => array([maximum depth reached]) __backOriginalAssociation => array([maximum depth reached]) __backContainableAssociation => array([maximum depth reached]) findMethods => array( [maximum depth reached] ) } array( 'conditions' => array( 'Hang.status' => (int) 1 ), 'fields' => null, 'joins' => array(), 'limit' => null, 'offset' => null, 'order' => array( (int) 0 => 'Hang.pos ASC' ), 'page' => (int) 1, 'group' => null, 'callbacks' => true )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 111</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">Model->find(string, array)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> 'Hang.status' => 1,</span></code> <code><span style="color: #000000"> ),</span></code> <code><span style="color: #000000"> 'order' => 'Hang.pos ASC',</span></code> <span class="code-highlight"><code><span style="color: #000000"> ));</span></code></span> <code><span style="color: #000000"> $this->set('hang', $hang);</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>'all' array( 'conditions' => array( 'Hang.status' => (int) 1 ), 'order' => 'Hang.pos ASC' )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/ProductController.php line 16</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public $components = array('Email');</span></code> <code><span style="color: #000000"> </span></code> <code><span style="color: #000000"> public function beforeFilter() {</span></code> <span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span> <code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li> <li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">ProductController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data => null result => null }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code> <code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code> <code><span style="color: #000000"> } else {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span> <code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array( (int) 0 => object(ProductController) {}, (int) 1 => 'beforeFilter' ) object(CakeEvent) { data => null result => null }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code> <code><span style="color: #000000"> */</span></code> <code><span style="color: #000000"> public function startupProcess() {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span> <code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data => null result => null }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code> <code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code> <code><span style="color: #000000"> $controller->constructClasses();</span></code> <span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span> <code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(ProductController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code> <code><span style="color: #000000"> }</span></code> <code><span style="color: #000000"></span></code> <span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span> <code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(ProductController) { name => 'Product' uses => array( [maximum depth reached] ) components => array( [maximum depth reached] ) helpers => array( [maximum depth reached] ) request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'Product' layoutPath => null viewVars => array( [maximum depth reached] ) view => 'index' layout => 'default' autoRender => true autoLayout => true Components => object(ComponentCollection) {} viewClass => 'View' View => null ext => '.ctp' plugin => null cacheAction => false passedArgs => array( [maximum depth reached] ) scaffold => false methods => array( [maximum depth reached] ) modelClass => 'Catproduct' modelKey => 'product' validationErrors => null Session => object(SessionComponent) {} Email => object(EmailComponent) {} Setting => object(AppModel) {} Banner => object(AppModel) {} Logo => object(AppModel) {} Product => object(AppModel) {} News => object(AppModel) {} Advertisement => object(AppModel) {} Hang => object(AppModel) {} } object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'sitemap.xml' base => '' webroot => '/' here => '/sitemap.xml' } object(CakeResponse) { }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 92</a> → <a href="#" onclick="traceToggle(event, 'trace-args-14')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-14" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000">App::uses('Dispatcher', 'Routing');</span></code> <code><span style="color: #000000"></span></code> <code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code> <span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span> <code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-14" class="cake-code-dump" style="display: none;"><pre>object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'sitemap.xml' base => '' webroot => '/' here => '/sitemap.xml' } object(CakeResponse) { }</pre></div></li> </ul> <script type="text/javascript"> function traceToggle(event, id) { var el = document.getElementById(id); el.style.display = (el.style.display == 'block') ? 'none' : 'block'; event.preventDefault(); return false; } </script> ' $scripts_for_layout = '' $title_for_layout = 'Errors'
include - APP/View/Elements/header.ctp, line 30 View::_evaluate() - CORE/Cake/View/View.php, line 920 View::_render() - CORE/Cake/View/View.php, line 883 View::element() - CORE/Cake/View/View.php, line 424 include - APP/View/Layouts/default.ctp, line 126 View::_evaluate() - CORE/Cake/View/View.php, line 920 View::_render() - CORE/Cake/View/View.php, line 883 View::renderLayout() - CORE/Cake/View/View.php, line 539 View::render() - CORE/Cake/View/View.php, line 483 Controller::render() - CORE/Cake/Controller/Controller.php, line 957 ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 268 ExceptionRenderer::pdoError() - CORE/Cake/Error/ExceptionRenderer.php, line 257 ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 170 ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 127 [main] - [internal], line ??
<div id="sp-advanced-search" class="span12">
<a href="<?php echo DOMAIN ?>"><img src="<?php echo DOMAIN . $banner['Banner']['images'] ?>" class="img-responsive" style="width: 100%;" alt="Máy Nhựa Mạnh Dũng"></a>
$viewFile = '/home/cuongtran/domains/maynhuamanhdung.com/public_html/app/View/Elements/header.ctp' $dataForView = array( 'code' => (int) 500, 'url' => '/sitemap.xml', 'name' => 'SQLSTATE[08S01]: Communication link failure: 1053 Server shutdown in progress', 'error' => object(PDOException) { errorInfo => array( [maximum depth reached] ) queryString => 'SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME = ?' }, '_serialize' => array( (int) 0 => 'code', (int) 1 => 'url', (int) 2 => 'name', (int) 3 => 'error' ), 'content_for_layout' => '<h2>Database Error</h2> <p class="error"> <strong>Error: </strong> SQLSTATE[08S01]: Communication link failure: 1053 Server shutdown in progress</p> <p class="notice"> <strong>SQL Query: </strong> SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME = ? </p> <p class="notice"> <strong>Notice: </strong> If you want to customize this error message, create app/View/Errors/pdo_error.ctp</p> <h3>Stack Trace</h3> <ul class="cake-stack-trace"> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-0')">CORE/Cake/Model/Datasource/DboSource.php line 461</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">PDOStatement->execute(array)</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> try {</span></code> <code><span style="color: #000000"> $query = $this->_connection->prepare($sql, $prepareOptions);</span></code> <code><span style="color: #000000"> $query->setFetchMode(PDO::FETCH_LAZY);</span></code> <span class="code-highlight"><code><span style="color: #000000"> if (!$query->execute($params)) {</span></code></span> <code><span style="color: #000000"> $this->_results = $query;</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre>array( (int) 0 => 'utf8_general_ci' )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/Datasource/Database/Mysql.php line 262</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->_execute(string, array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code> <code><span style="color: #000000"> public function getCharsetName($name) {</span></code> <code><span style="color: #000000"> if ((bool)version_compare($this->getVersion(), "5", ">=")) {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $r = $this->_execute('SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME = ?', array($name));</span></code></span> <code><span style="color: #000000"> $cols = $r->fetch(PDO::FETCH_ASSOC);</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>'SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME = ?' array( (int) 0 => 'utf8_general_ci' )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Datasource/Database/Mysql.php line 309</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">Mysql->getCharsetName(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> }</span></code> <code><span style="color: #000000"> }</span></code> <code><span style="color: #000000"> if (isset($fields[$column->Field]['collate'])) {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $charset = $this->getCharsetName($fields[$column->Field]['collate']);</span></code></span> <code><span style="color: #000000"> if ($charset) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'utf8_general_ci'</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1304</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Mysql->describe(AppModel)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $db = $this->getDataSource();</span></code> <code><span style="color: #000000"> $db->cacheSources = ($this->cacheSources && $db->cacheSources);</span></code> <code><span style="color: #000000"> if (method_exists($db, 'describe') && $this->useTable !== false) {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $this->_schema = $db->describe($this);</span></code></span> <code><span style="color: #000000"> } elseif ($this->useTable === false) {</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>object(AppModel) { useDbConfig => 'default' useTable => 'hangs' id => false data => array([maximum depth reached]) schemaName => 'cuongtran_md' table => 'hangs' primaryKey => 'id' validate => array([maximum depth reached]) validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => '' name => 'Hang' alias => 'Hang' tableToModel => array( [maximum depth reached] ) cacheQueries => false belongsTo => array([maximum depth reached]) hasOne => array([maximum depth reached]) hasMany => array([maximum depth reached]) hasAndBelongsToMany => array([maximum depth reached]) actsAs => null Behaviors => object(BehaviorCollection) {} whitelist => array([maximum depth reached]) cacheSources => true findQueryType => 'all' recursive => (int) 1 order => null virtualFields => array([maximum depth reached]) __backAssociation => array([maximum depth reached]) __backInnerAssociation => array([maximum depth reached]) __backOriginalAssociation => array([maximum depth reached]) __backContainableAssociation => array([maximum depth reached]) findMethods => array( [maximum depth reached] ) }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Datasource/DboSource.php line 2296</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->schema()</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> }</span></code> <code><span style="color: #000000"> $allFields = empty($fields);</span></code> <code><span style="color: #000000"> if ($allFields) {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $fields = array_keys($model->schema());</span></code></span> <code><span style="color: #000000"> } elseif (!is_array($fields)) {</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre></pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Datasource/DboSource.php line 1052</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">DboSource->fields(AppModel)</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $bypass = true;</span></code> <code><span style="color: #000000"> $queryData['fields'] = $this->fields($model, null, $queryData['fields']);</span></code> <code><span style="color: #000000"> } else {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $queryData['fields'] = $this->fields($model);</span></code></span> <code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre>object(AppModel) { useDbConfig => 'default' useTable => 'hangs' id => false data => array([maximum depth reached]) schemaName => 'cuongtran_md' table => 'hangs' primaryKey => 'id' validate => array([maximum depth reached]) validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => '' name => 'Hang' alias => 'Hang' tableToModel => array( [maximum depth reached] ) cacheQueries => false belongsTo => array([maximum depth reached]) hasOne => array([maximum depth reached]) hasMany => array([maximum depth reached]) hasAndBelongsToMany => array([maximum depth reached]) actsAs => null Behaviors => object(BehaviorCollection) {} whitelist => array([maximum depth reached]) cacheSources => true findQueryType => 'all' recursive => (int) 1 order => null virtualFields => array([maximum depth reached]) __backAssociation => array([maximum depth reached]) __backInnerAssociation => array([maximum depth reached]) __backOriginalAssociation => array([maximum depth reached]) __backContainableAssociation => array([maximum depth reached]) findMethods => array( [maximum depth reached] ) }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">CORE/Cake/Model/Model.php line 2630</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">DboSource->read(AppModel, array)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> return null;</span></code> <code><span style="color: #000000"> }</span></code> <code><span style="color: #000000"></span></code> <span class="code-highlight"><code><span style="color: #000000"> $results = $this->getDataSource()->read($this, $query);</span></code></span> <code><span style="color: #000000"> $this->resetAssociations();</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>object(AppModel) { useDbConfig => 'default' useTable => 'hangs' id => false data => array([maximum depth reached]) schemaName => 'cuongtran_md' table => 'hangs' primaryKey => 'id' validate => array([maximum depth reached]) validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => '' name => 'Hang' alias => 'Hang' tableToModel => array( [maximum depth reached] ) cacheQueries => false belongsTo => array([maximum depth reached]) hasOne => array([maximum depth reached]) hasMany => array([maximum depth reached]) hasAndBelongsToMany => array([maximum depth reached]) actsAs => null Behaviors => object(BehaviorCollection) {} whitelist => array([maximum depth reached]) cacheSources => true findQueryType => 'all' recursive => (int) 1 order => null virtualFields => array([maximum depth reached]) __backAssociation => array([maximum depth reached]) __backInnerAssociation => array([maximum depth reached]) __backOriginalAssociation => array([maximum depth reached]) __backContainableAssociation => array([maximum depth reached]) findMethods => array( [maximum depth reached] ) } array( 'conditions' => array( 'Hang.status' => (int) 1 ), 'fields' => null, 'joins' => array(), 'limit' => null, 'offset' => null, 'order' => array( (int) 0 => 'Hang.pos ASC' ), 'page' => (int) 1, 'group' => null, 'callbacks' => true )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 111</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">Model->find(string, array)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> 'Hang.status' => 1,</span></code> <code><span style="color: #000000"> ),</span></code> <code><span style="color: #000000"> 'order' => 'Hang.pos ASC',</span></code> <span class="code-highlight"><code><span style="color: #000000"> ));</span></code></span> <code><span style="color: #000000"> $this->set('hang', $hang);</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>'all' array( 'conditions' => array( 'Hang.status' => (int) 1 ), 'order' => 'Hang.pos ASC' )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/ProductController.php line 16</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public $components = array('Email');</span></code> <code><span style="color: #000000"> </span></code> <code><span style="color: #000000"> public function beforeFilter() {</span></code> <span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span> <code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li> <li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">ProductController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data => null result => null }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code> <code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code> <code><span style="color: #000000"> } else {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span> <code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array( (int) 0 => object(ProductController) {}, (int) 1 => 'beforeFilter' ) object(CakeEvent) { data => null result => null }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code> <code><span style="color: #000000"> */</span></code> <code><span style="color: #000000"> public function startupProcess() {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span> <code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data => null result => null }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code> <code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code> <code><span style="color: #000000"> $controller->constructClasses();</span></code> <span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span> <code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(ProductController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code> <code><span style="color: #000000"> }</span></code> <code><span style="color: #000000"></span></code> <span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span> <code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(ProductController) { name => 'Product' uses => array( [maximum depth reached] ) components => array( [maximum depth reached] ) helpers => array( [maximum depth reached] ) request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'Product' layoutPath => null viewVars => array( [maximum depth reached] ) view => 'index' layout => 'default' autoRender => true autoLayout => true Components => object(ComponentCollection) {} viewClass => 'View' View => null ext => '.ctp' plugin => null cacheAction => false passedArgs => array( [maximum depth reached] ) scaffold => false methods => array( [maximum depth reached] ) modelClass => 'Catproduct' modelKey => 'product' validationErrors => null Session => object(SessionComponent) {} Email => object(EmailComponent) {} Setting => object(AppModel) {} Banner => object(AppModel) {} Logo => object(AppModel) {} Product => object(AppModel) {} News => object(AppModel) {} Advertisement => object(AppModel) {} Hang => object(AppModel) {} } object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'sitemap.xml' base => '' webroot => '/' here => '/sitemap.xml' } object(CakeResponse) { }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 92</a> → <a href="#" onclick="traceToggle(event, 'trace-args-14')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-14" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000">App::uses('Dispatcher', 'Routing');</span></code> <code><span style="color: #000000"></span></code> <code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code> <span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span> <code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-14" class="cake-code-dump" style="display: none;"><pre>object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'sitemap.xml' base => '' webroot => '/' here => '/sitemap.xml' } object(CakeResponse) { }</pre></div></li> </ul> <script type="text/javascript"> function traceToggle(event, id) { var el = document.getElementById(id); el.style.display = (el.style.display == 'block') ? 'none' : 'block'; event.preventDefault(); return false; } </script> ', 'scripts_for_layout' => '', 'title_for_layout' => 'Errors' ) $code = (int) 500 $url = '/sitemap.xml' $name = 'SQLSTATE[08S01]: Communication link failure: 1053 Server shutdown in progress' $error = object(PDOException) { errorInfo => array( (int) 0 => '08S01', (int) 1 => (int) 1053, (int) 2 => 'Server shutdown in progress' ) queryString => 'SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME = ?' } $_serialize = array( (int) 0 => 'code', (int) 1 => 'url', (int) 2 => 'name', (int) 3 => 'error' ) $content_for_layout = '<h2>Database Error</h2> <p class="error"> <strong>Error: </strong> SQLSTATE[08S01]: Communication link failure: 1053 Server shutdown in progress</p> <p class="notice"> <strong>SQL Query: </strong> SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME = ? </p> <p class="notice"> <strong>Notice: </strong> If you want to customize this error message, create app/View/Errors/pdo_error.ctp</p> <h3>Stack Trace</h3> <ul class="cake-stack-trace"> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-0')">CORE/Cake/Model/Datasource/DboSource.php line 461</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">PDOStatement->execute(array)</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> try {</span></code> <code><span style="color: #000000"> $query = $this->_connection->prepare($sql, $prepareOptions);</span></code> <code><span style="color: #000000"> $query->setFetchMode(PDO::FETCH_LAZY);</span></code> <span class="code-highlight"><code><span style="color: #000000"> if (!$query->execute($params)) {</span></code></span> <code><span style="color: #000000"> $this->_results = $query;</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre>array( (int) 0 => 'utf8_general_ci' )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/Datasource/Database/Mysql.php line 262</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->_execute(string, array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code> <code><span style="color: #000000"> public function getCharsetName($name) {</span></code> <code><span style="color: #000000"> if ((bool)version_compare($this->getVersion(), "5", ">=")) {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $r = $this->_execute('SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME = ?', array($name));</span></code></span> <code><span style="color: #000000"> $cols = $r->fetch(PDO::FETCH_ASSOC);</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>'SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE COLLATION_NAME = ?' array( (int) 0 => 'utf8_general_ci' )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Datasource/Database/Mysql.php line 309</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">Mysql->getCharsetName(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> }</span></code> <code><span style="color: #000000"> }</span></code> <code><span style="color: #000000"> if (isset($fields[$column->Field]['collate'])) {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $charset = $this->getCharsetName($fields[$column->Field]['collate']);</span></code></span> <code><span style="color: #000000"> if ($charset) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'utf8_general_ci'</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1304</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Mysql->describe(AppModel)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $db = $this->getDataSource();</span></code> <code><span style="color: #000000"> $db->cacheSources = ($this->cacheSources && $db->cacheSources);</span></code> <code><span style="color: #000000"> if (method_exists($db, 'describe') && $this->useTable !== false) {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $this->_schema = $db->describe($this);</span></code></span> <code><span style="color: #000000"> } elseif ($this->useTable === false) {</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>object(AppModel) { useDbConfig => 'default' useTable => 'hangs' id => false data => array([maximum depth reached]) schemaName => 'cuongtran_md' table => 'hangs' primaryKey => 'id' validate => array([maximum depth reached]) validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => '' name => 'Hang' alias => 'Hang' tableToModel => array( [maximum depth reached] ) cacheQueries => false belongsTo => array([maximum depth reached]) hasOne => array([maximum depth reached]) hasMany => array([maximum depth reached]) hasAndBelongsToMany => array([maximum depth reached]) actsAs => null Behaviors => object(BehaviorCollection) {} whitelist => array([maximum depth reached]) cacheSources => true findQueryType => 'all' recursive => (int) 1 order => null virtualFields => array([maximum depth reached]) __backAssociation => array([maximum depth reached]) __backInnerAssociation => array([maximum depth reached]) __backOriginalAssociation => array([maximum depth reached]) __backContainableAssociation => array([maximum depth reached]) findMethods => array( [maximum depth reached] ) }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Datasource/DboSource.php line 2296</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->schema()</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> }</span></code> <code><span style="color: #000000"> $allFields = empty($fields);</span></code> <code><span style="color: #000000"> if ($allFields) {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $fields = array_keys($model->schema());</span></code></span> <code><span style="color: #000000"> } elseif (!is_array($fields)) {</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre></pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Datasource/DboSource.php line 1052</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">DboSource->fields(AppModel)</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $bypass = true;</span></code> <code><span style="color: #000000"> $queryData['fields'] = $this->fields($model, null, $queryData['fields']);</span></code> <code><span style="color: #000000"> } else {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $queryData['fields'] = $this->fields($model);</span></code></span> <code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre>object(AppModel) { useDbConfig => 'default' useTable => 'hangs' id => false data => array([maximum depth reached]) schemaName => 'cuongtran_md' table => 'hangs' primaryKey => 'id' validate => array([maximum depth reached]) validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => '' name => 'Hang' alias => 'Hang' tableToModel => array( [maximum depth reached] ) cacheQueries => false belongsTo => array([maximum depth reached]) hasOne => array([maximum depth reached]) hasMany => array([maximum depth reached]) hasAndBelongsToMany => array([maximum depth reached]) actsAs => null Behaviors => object(BehaviorCollection) {} whitelist => array([maximum depth reached]) cacheSources => true findQueryType => 'all' recursive => (int) 1 order => null virtualFields => array([maximum depth reached]) __backAssociation => array([maximum depth reached]) __backInnerAssociation => array([maximum depth reached]) __backOriginalAssociation => array([maximum depth reached]) __backContainableAssociation => array([maximum depth reached]) findMethods => array( [maximum depth reached] ) }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">CORE/Cake/Model/Model.php line 2630</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">DboSource->read(AppModel, array)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> return null;</span></code> <code><span style="color: #000000"> }</span></code> <code><span style="color: #000000"></span></code> <span class="code-highlight"><code><span style="color: #000000"> $results = $this->getDataSource()->read($this, $query);</span></code></span> <code><span style="color: #000000"> $this->resetAssociations();</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>object(AppModel) { useDbConfig => 'default' useTable => 'hangs' id => false data => array([maximum depth reached]) schemaName => 'cuongtran_md' table => 'hangs' primaryKey => 'id' validate => array([maximum depth reached]) validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => '' name => 'Hang' alias => 'Hang' tableToModel => array( [maximum depth reached] ) cacheQueries => false belongsTo => array([maximum depth reached]) hasOne => array([maximum depth reached]) hasMany => array([maximum depth reached]) hasAndBelongsToMany => array([maximum depth reached]) actsAs => null Behaviors => object(BehaviorCollection) {} whitelist => array([maximum depth reached]) cacheSources => true findQueryType => 'all' recursive => (int) 1 order => null virtualFields => array([maximum depth reached]) __backAssociation => array([maximum depth reached]) __backInnerAssociation => array([maximum depth reached]) __backOriginalAssociation => array([maximum depth reached]) __backContainableAssociation => array([maximum depth reached]) findMethods => array( [maximum depth reached] ) } array( 'conditions' => array( 'Hang.status' => (int) 1 ), 'fields' => null, 'joins' => array(), 'limit' => null, 'offset' => null, 'order' => array( (int) 0 => 'Hang.pos ASC' ), 'page' => (int) 1, 'group' => null, 'callbacks' => true )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 111</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">Model->find(string, array)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> 'Hang.status' => 1,</span></code> <code><span style="color: #000000"> ),</span></code> <code><span style="color: #000000"> 'order' => 'Hang.pos ASC',</span></code> <span class="code-highlight"><code><span style="color: #000000"> ));</span></code></span> <code><span style="color: #000000"> $this->set('hang', $hang);</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>'all' array( 'conditions' => array( 'Hang.status' => (int) 1 ), 'order' => 'Hang.pos ASC' )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/ProductController.php line 16</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public $components = array('Email');</span></code> <code><span style="color: #000000"> </span></code> <code><span style="color: #000000"> public function beforeFilter() {</span></code> <span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span> <code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li> <li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">ProductController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data => null result => null }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code> <code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code> <code><span style="color: #000000"> } else {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span> <code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array( (int) 0 => object(ProductController) {}, (int) 1 => 'beforeFilter' ) object(CakeEvent) { data => null result => null }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code> <code><span style="color: #000000"> */</span></code> <code><span style="color: #000000"> public function startupProcess() {</span></code> <span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span> <code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) { data => null result => null }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code> <code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code> <code><span style="color: #000000"> $controller->constructClasses();</span></code> <span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span> <code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(ProductController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code> <code><span style="color: #000000"> }</span></code> <code><span style="color: #000000"></span></code> <span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span> <code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(ProductController) { name => 'Product' uses => array( [maximum depth reached] ) components => array( [maximum depth reached] ) helpers => array( [maximum depth reached] ) request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'Product' layoutPath => null viewVars => array( [maximum depth reached] ) view => 'index' layout => 'default' autoRender => true autoLayout => true Components => object(ComponentCollection) {} viewClass => 'View' View => null ext => '.ctp' plugin => null cacheAction => false passedArgs => array( [maximum depth reached] ) scaffold => false methods => array( [maximum depth reached] ) modelClass => 'Catproduct' modelKey => 'product' validationErrors => null Session => object(SessionComponent) {} Email => object(EmailComponent) {} Setting => object(AppModel) {} Banner => object(AppModel) {} Logo => object(AppModel) {} Product => object(AppModel) {} News => object(AppModel) {} Advertisement => object(AppModel) {} Hang => object(AppModel) {} } object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'sitemap.xml' base => '' webroot => '/' here => '/sitemap.xml' } object(CakeResponse) { }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 92</a> → <a href="#" onclick="traceToggle(event, 'trace-args-14')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-14" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000">App::uses('Dispatcher', 'Routing');</span></code> <code><span style="color: #000000"></span></code> <code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code> <span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span> <code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-14" class="cake-code-dump" style="display: none;"><pre>object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'sitemap.xml' base => '' webroot => '/' here => '/sitemap.xml' } object(CakeResponse) { }</pre></div></li> </ul> <script type="text/javascript"> function traceToggle(event, id) { var el = document.getElementById(id); el.style.display = (el.style.display == 'block') ? 'none' : 'block'; event.preventDefault(); return false; } </script> ' $scripts_for_layout = '' $title_for_layout = 'Errors'
include - APP/View/Elements/header.ctp, line 36 View::_evaluate() - CORE/Cake/View/View.php, line 920 View::_render() - CORE/Cake/View/View.php, line 883 View::element() - CORE/Cake/View/View.php, line 424 include - APP/View/Layouts/default.ctp, line 126 View::_evaluate() - CORE/Cake/View/View.php, line 920 View::_render() - CORE/Cake/View/View.php, line 883 View::renderLayout() - CORE/Cake/View/View.php, line 539 View::render() - CORE/Cake/View/View.php, line 483 Controller::render() - CORE/Cake/Controller/Controller.php, line 957 ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 268 ExceptionRenderer::pdoError() - CORE/Cake/Error/ExceptionRenderer.php, line 257 ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 170 ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 127 [main] - [internal], line ??