SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
Error: An Internal Error Has Occurred.
Stack Trace
- CORE/Cake/Model/Datasource/DboSource.php line 461 → PDOStatement->execute(array)
try {$query = $this->_connection->prepare($sql, $prepareOptions);$query->setFetchMode(PDO::FETCH_LAZY);if (!$query->execute($params)) {$this->_results = $query;array()
- CORE/Cake/Model/Datasource/Database/Mysql.php line 288 → DboSource->_execute(string)
$table = $this->fullTableName($model);$fields = false;$cols = $this->_execute('SHOW FULL COLUMNS FROM ' . $table);if (!$cols) {'SHOW FULL COLUMNS FROM `dodien_db`.`advertisements`'
- CORE/Cake/Model/Model.php line 1304 → Mysql->describe(AppModel)
$db = $this->getDataSource();$db->cacheSources = ($this->cacheSources && $db->cacheSources);if (method_exists($db, 'describe') && $this->useTable !== false) {$this->_schema = $db->describe($this);} elseif ($this->useTable === false) {object(AppModel) { useDbConfig => 'default' useTable => 'advertisements' id => false data => array([maximum depth reached]) schemaName => 'dodien_db' table => 'advertisements' primaryKey => 'id' validate => array([maximum depth reached]) validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => '' name => 'Advertisement' alias => 'Advertisement' 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] ) } - CORE/Cake/Model/Datasource/DboSource.php line 2296 → Model->schema()
}$allFields = empty($fields);if ($allFields) {$fields = array_keys($model->schema());} elseif (!is_array($fields)) { - CORE/Cake/Model/Datasource/DboSource.php line 1052 → DboSource->fields(AppModel)
$bypass = true;$queryData['fields'] = $this->fields($model, null, $queryData['fields']);} else {$queryData['fields'] = $this->fields($model);}object(AppModel) { useDbConfig => 'default' useTable => 'advertisements' id => false data => array([maximum depth reached]) schemaName => 'dodien_db' table => 'advertisements' primaryKey => 'id' validate => array([maximum depth reached]) validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => '' name => 'Advertisement' alias => 'Advertisement' 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] ) } - CORE/Cake/Model/Model.php line 2630 → DboSource->read(AppModel, array)
return null;}$results = $this->getDataSource()->read($this, $query);$this->resetAssociations();object(AppModel) { useDbConfig => 'default' useTable => 'advertisements' id => false data => array([maximum depth reached]) schemaName => 'dodien_db' table => 'advertisements' primaryKey => 'id' validate => array([maximum depth reached]) validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => '' name => 'Advertisement' alias => 'Advertisement' 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( 'Advertisement.status' => (int) 1, 'Advertisement.display' => (int) 5 ), 'fields' => null, 'joins' => array(), 'limit' => null, 'offset' => null, 'order' => array( (int) 0 => array( [maximum depth reached] ) ), 'page' => (int) 1, 'group' => null, 'callbacks' => true ) - APP/Controller/AppController.php line 220 → Model->find(string, array)
'Advertisement.display' => 5,),'order' => array('Advertisement.pos' => 'DESC')));$this->set('chaytrai', $chaytrai);'all' array( 'conditions' => array( 'Advertisement.status' => (int) 1, 'Advertisement.display' => (int) 5 ), 'order' => array( 'Advertisement.pos' => 'DESC' ) )
- APP/Controller/ProductController.php line 28 → AppController->beforeFilter()
public function beforeFilter() {parent::beforeFilter(); - [internal function] → ProductController->beforeFilter(CakeEvent)
object(CakeEvent) { data => null result => null } - CORE/Cake/Event/CakeEventManager.php line 246 → call_user_func(array, CakeEvent)
if ($listener['passParams'] === true) {$result = call_user_func_array($listener['callable'], $event->data);} else {$result = call_user_func($listener['callable'], $event);}array( (int) 0 => object(ProductController) {}, (int) 1 => 'beforeFilter' ) object(CakeEvent) { data => null result => null } - CORE/Cake/Controller/Controller.php line 670 → CakeEventManager->dispatch(CakeEvent)
* @return void*/public function startupProcess() {$this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));$this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));object(CakeEvent) { data => null result => null } - CORE/Cake/Routing/Dispatcher.php line 183 → Controller->startupProcess()
*/protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {$controller->constructClasses();$controller->startupProcess(); - CORE/Cake/Routing/Dispatcher.php line 161 → Dispatcher->_invoke(ProductController, CakeRequest, CakeResponse)
));}$response = $this->_invoke($controller, $request, $response);if (isset($request->params['return'])) {object(ProductController) { name => 'Product' uses => array( [maximum depth reached] ) helpers => array( [maximum depth reached] ) components => array( [maximum depth reached] ) request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'Product' layoutPath => null viewVars => array( [maximum depth reached] ) view => 'sosanh' 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) {} Catproduct => object(Catproduct) {} Advertisement => object(AppModel) {} Product => object(Product) {} Post => object(Post) {} Slideshow => object(AppModel) {} Support => object(AppModel) {} Diadiem => object(AppModel) {} Diadiempost => object(AppModel) {} Hang => object(AppModel) {} Thongso => object(AppModel) {} } object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array( [maximum depth reached] ) url => 'so-sanh/145,2009' base => '' webroot => '/' here => '/so-sanh/145,2009' } object(CakeResponse) { } - APP/webroot/index.php line 92 → Dispatcher->dispatch(CakeRequest, CakeResponse)
App::uses('Dispatcher', 'Routing');$Dispatcher = new Dispatcher();$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array( [maximum depth reached] ) url => 'so-sanh/145,2009' base => '' webroot => '/' here => '/so-sanh/145,2009' } object(CakeResponse) { }
