- Trang chủ
Database Error
Error: SQLSTATE[HY000]: General error: 1030 Got error 23 "Too many open files in system" from storage engine Aria
SQL Query: SHOW FULL COLUMNS FROM `bimo_url`.`galleries`
Notice: If you want to customize this error message, create public_html/View/Errors/pdo_error.ctp
Stack Trace
- APP/cake2x/lib/Cake/Model/Datasource/DboSource.php line 458 → PDOStatement->execute(array)
try {$query = $this->_connection->prepare($sql, $prepareOptions);$query->setFetchMode(PDO::FETCH_LAZY);if (!$query->execute($params)) {$this->_results = $query;array()
- APP/cake2x/lib/Cake/Model/Datasource/Database/Mysql.php line 339 → DboSource->_execute(string)
$table = $this->fullTableName($model);$fields = false;$cols = $this->_execute('SHOW FULL COLUMNS FROM ' . $table);if (!$cols) {'SHOW FULL COLUMNS FROM `bimo_url`.`galleries`'
- APP/cake2x/lib/Cake/Model/Model.php line 1360 → Mysql->describe(Gallery)
$db = $this->getDataSource();$db->cacheSources = ($this->cacheSources && $db->cacheSources);if (method_exists($db, 'describe')) {$this->_schema = $db->describe($this);}object(Gallery) { displayField => 'name' validate => array( [maximum depth reached] ) hasMany => array( [maximum depth reached] ) belongsTo => array( [maximum depth reached] ) useDbConfig => 'default' useTable => 'galleries' id => false data => array([maximum depth reached]) schemaName => 'bimo_url' table => 'galleries' primaryKey => 'id' validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => '' plugin => null name => 'Gallery' alias => 'Gallery' tableToModel => array( [maximum depth reached] ) cacheQueries => false hasOne => array([maximum depth reached]) hasAndBelongsToMany => array([maximum depth reached]) actsAs => null Behaviors => object(BehaviorCollection) {} whitelist => array([maximum depth reached]) cacheSources => true findQueryType => null 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] ) [protected] _schema => null [protected] _associationKeys => array( [maximum depth reached] ) [protected] _associations => array( [maximum depth reached] ) [protected] _insertID => null [protected] _sourceConfigured => true [protected] _eventManager => null [protected] _validator => null } - APP/cake2x/lib/Cake/Model/Datasource/DboSource.php line 2494 → Model->schema()
}$allFields = empty($fields);if ($allFields) {$fields = array_keys($Model->schema());} elseif (!is_array($fields)) { - APP/cake2x/lib/Cake/Model/Datasource/DboSource.php line 1735 → DboSource->fields(Gallery, string, string)
}break;case 'hasMany':$assocData['fields'] = $this->fields($LinkModel, $association, $assocData['fields']);if (!empty($assocData['foreignKey'])) {object(Gallery) { displayField => 'name' validate => array( [maximum depth reached] ) hasMany => array( [maximum depth reached] ) belongsTo => array( [maximum depth reached] ) useDbConfig => 'default' useTable => 'galleries' id => false data => array([maximum depth reached]) schemaName => 'bimo_url' table => 'galleries' primaryKey => 'id' validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => '' plugin => null name => 'Gallery' alias => 'Gallery' tableToModel => array( [maximum depth reached] ) cacheQueries => false hasOne => array([maximum depth reached]) hasAndBelongsToMany => array([maximum depth reached]) actsAs => null Behaviors => object(BehaviorCollection) {} whitelist => array([maximum depth reached]) cacheSources => true findQueryType => null 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] ) [protected] _schema => null [protected] _associationKeys => array( [maximum depth reached] ) [protected] _associations => array( [maximum depth reached] ) [protected] _insertID => null [protected] _sourceConfigured => true [protected] _eventManager => null [protected] _validator => null } 'Gallery' '' - APP/cake2x/lib/Cake/Model/Datasource/DboSource.php line 1238 → DboSource->generateAssociationQuery(GalleryCategory, Gallery, string, string, array, array, boolean)
unset($stack['_joined']);}$queryTemplate = $this->generateAssociationQuery($Model, $LinkModel, $type, $association, $assocData, $queryData, $external);if (empty($queryTemplate)) {object(GalleryCategory) { displayField => 'name' validate => array( [maximum depth reached] ) hasMany => array( [maximum depth reached] ) useDbConfig => 'default' useTable => 'gallery_categories' id => false data => array([maximum depth reached]) schemaName => 'bimo_url' table => 'gallery_categories' primaryKey => 'id' validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => '' plugin => null name => 'GalleryCategory' alias => 'GalleryCategory' tableToModel => array( [maximum depth reached] ) cacheQueries => false belongsTo => array([maximum depth reached]) hasOne => 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] ) Gallery => object(Gallery) {} [protected] _schema => array( [maximum depth reached] ) [protected] _associationKeys => array( [maximum depth reached] ) [protected] _associations => array( [maximum depth reached] ) [protected] _insertID => null [protected] _sourceConfigured => true [protected] _eventManager => object(CakeEventManager) {} [protected] _validator => null } object(Gallery) { displayField => 'name' validate => array( [maximum depth reached] ) hasMany => array( [maximum depth reached] ) belongsTo => array( [maximum depth reached] ) useDbConfig => 'default' useTable => 'galleries' id => false data => array([maximum depth reached]) schemaName => 'bimo_url' table => 'galleries' primaryKey => 'id' validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => '' plugin => null name => 'Gallery' alias => 'Gallery' tableToModel => array( [maximum depth reached] ) cacheQueries => false hasOne => array([maximum depth reached]) hasAndBelongsToMany => array([maximum depth reached]) actsAs => null Behaviors => object(BehaviorCollection) {} whitelist => array([maximum depth reached]) cacheSources => true findQueryType => null 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] ) [protected] _schema => null [protected] _associationKeys => array( [maximum depth reached] ) [protected] _associations => array( [maximum depth reached] ) [protected] _insertID => null [protected] _sourceConfigured => true [protected] _eventManager => null [protected] _validator => null } 'hasMany' 'Gallery' array( 'className' => 'Gallery', 'foreignKey' => 'gallery_category_id', 'dependent' => false, 'conditions' => '', 'fields' => '', 'order' => '', 'limit' => '', 'offset' => '', 'exclusive' => '', 'finderQuery' => '', 'counterQuery' => '' ) array( 'callbacks' => true, 'conditions' => array(), 'fields' => array(), 'joins' => array(), 'order' => array(), 'limit' => array(), 'offset' => array(), 'group' => array() ) true - APP/cake2x/lib/Cake/Model/Datasource/DboSource.php line 1142 → DboSource->queryAssociation(GalleryCategory, Gallery, string, string, array, array, boolean, array, integer, array)
$stack = array($assoc);$stack['_joined'] = $joined;$db->queryAssociation($Model, $LinkModel, $type, $assoc, $assocData, $array, true, $resultSet, $Model->recursive - 1, $stack);unset($db);object(GalleryCategory) { displayField => 'name' validate => array( [maximum depth reached] ) hasMany => array( [maximum depth reached] ) useDbConfig => 'default' useTable => 'gallery_categories' id => false data => array([maximum depth reached]) schemaName => 'bimo_url' table => 'gallery_categories' primaryKey => 'id' validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => '' plugin => null name => 'GalleryCategory' alias => 'GalleryCategory' tableToModel => array( [maximum depth reached] ) cacheQueries => false belongsTo => array([maximum depth reached]) hasOne => 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] ) Gallery => object(Gallery) {} [protected] _schema => array( [maximum depth reached] ) [protected] _associationKeys => array( [maximum depth reached] ) [protected] _associations => array( [maximum depth reached] ) [protected] _insertID => null [protected] _sourceConfigured => true [protected] _eventManager => object(CakeEventManager) {} [protected] _validator => null } object(Gallery) { displayField => 'name' validate => array( [maximum depth reached] ) hasMany => array( [maximum depth reached] ) belongsTo => array( [maximum depth reached] ) useDbConfig => 'default' useTable => 'galleries' id => false data => array([maximum depth reached]) schemaName => 'bimo_url' table => 'galleries' primaryKey => 'id' validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => '' plugin => null name => 'Gallery' alias => 'Gallery' tableToModel => array( [maximum depth reached] ) cacheQueries => false hasOne => array([maximum depth reached]) hasAndBelongsToMany => array([maximum depth reached]) actsAs => null Behaviors => object(BehaviorCollection) {} whitelist => array([maximum depth reached]) cacheSources => true findQueryType => null 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] ) [protected] _schema => null [protected] _associationKeys => array( [maximum depth reached] ) [protected] _associations => array( [maximum depth reached] ) [protected] _insertID => null [protected] _sourceConfigured => true [protected] _eventManager => null [protected] _validator => null } 'hasMany' 'Gallery' array( 'className' => 'Gallery', 'foreignKey' => 'gallery_category_id', 'dependent' => false, 'conditions' => '', 'fields' => '', 'order' => '', 'limit' => '', 'offset' => '', 'exclusive' => '', 'finderQuery' => '', 'counterQuery' => '' ) array( 'callbacks' => true, 'conditions' => array(), 'fields' => array(), 'joins' => array(), 'order' => array(), 'limit' => array(), 'offset' => array(), 'group' => array() ) true array( (int) 0 => array( 'GalleryCategory' => array( [maximum depth reached] ) ), (int) 1 => array( 'GalleryCategory' => array( [maximum depth reached] ) ) ) (int) 0 array( (int) 0 => 'Gallery', '_joined' => array() ) - APP/cake2x/lib/Cake/Model/Model.php line 2905 → DboSource->read(GalleryCategory, array)
* @return array*/protected function _readDataSource($type, $query) {$results = $this->getDataSource()->read($this, $query);$this->resetAssociations();object(GalleryCategory) { displayField => 'name' validate => array( [maximum depth reached] ) hasMany => array( [maximum depth reached] ) useDbConfig => 'default' useTable => 'gallery_categories' id => false data => array([maximum depth reached]) schemaName => 'bimo_url' table => 'gallery_categories' primaryKey => 'id' validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => '' plugin => null name => 'GalleryCategory' alias => 'GalleryCategory' tableToModel => array( [maximum depth reached] ) cacheQueries => false belongsTo => array([maximum depth reached]) hasOne => 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] ) Gallery => object(Gallery) {} [protected] _schema => array( [maximum depth reached] ) [protected] _associationKeys => array( [maximum depth reached] ) [protected] _associations => array( [maximum depth reached] ) [protected] _insertID => null [protected] _sourceConfigured => true [protected] _eventManager => object(CakeEventManager) {} [protected] _validator => null } array( 'conditions' => array( 'lang' => 'vi', 'trash' => (int) 0 ), 'fields' => null, 'joins' => array(), 'limit' => null, 'offset' => null, 'order' => array( (int) 0 => 'sort asc' ), 'page' => (int) 1, 'group' => null, 'callbacks' => true ) - APP/cake2x/lib/Cake/Model/Model.php line 2877 → Model->_readDataSource(string, array)
return null;}return $this->_readDataSource($type, $query);}'all' array( 'conditions' => array( 'lang' => 'vi', 'trash' => (int) 0 ), 'fields' => null, 'joins' => array(), 'limit' => null, 'offset' => null, 'order' => array( (int) 0 => 'sort asc' ), 'page' => (int) 1, 'group' => null, 'callbacks' => true )
- APP/Controller/AppController.php line 742 → Model->find(string, array)
// Lấy danh sách tất cả thể loại danh mục hình ảnh$this->loadModel('GalleryCategory');$a_gallerycategory_c = $this->GalleryCategory->find('all',array('conditions'=>array('lang'=>$lang,'trash'=>0),'order'=>'sort asc'));$this->set(compact('a_gallerycategory_c'));'all' array( 'conditions' => array( 'lang' => 'vi', 'trash' => (int) 0 ), 'order' => 'sort asc' )
- APP/Controller/AppController.php line 116 → AppController->_beforeFilterFrontend()
if (empty($a_params['admin'])) {$this->Auth->allow();$this->layout = 'frontend/index';$this->_beforeFilterFrontend();}else{ - APP/Controller/AppController.php line 97 → AppController->__handleAuthentication()
'order'=>array('Province.sort'=>'asc','Province.name'=>'asc')));$this->set(compact('a_provinces_list'));$this->__handleAuthentication();// } - [internal function] → AppController->beforeFilter(CakeEvent)
object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(PostsController) {} [protected] _stopped => false } - APP/cake2x/lib/Cake/Event/CakeEventManager.php line 244 → 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(PostsController) {}, (int) 1 => 'beforeFilter' ) object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(PostsController) {} [protected] _stopped => false } - APP/cake2x/lib/Cake/Controller/Controller.php line 674 → 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 [protected] _name => 'Controller.initialize' [protected] _subject => object(PostsController) {} [protected] _stopped => false } - APP/cake2x/lib/Cake/Routing/Dispatcher.php line 187 → Controller->startupProcess()
*/protected function _invoke(Controller $controller, CakeRequest $request) {$controller->constructClasses();$controller->startupProcess(); - APP/cake2x/lib/Cake/Routing/Dispatcher.php line 165 → Dispatcher->_invoke(PostsController, CakeRequest)
));}$response = $this->_invoke($controller, $request);if (isset($request->params['return'])) {object(PostsController) { helpers => array( [maximum depth reached] ) components => array( [maximum depth reached] ) uses => array( [maximum depth reached] ) name => 'Posts' request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'Posts' layoutPath => null viewVars => array( [maximum depth reached] ) view => 'index' layout => 'frontend/template1/index' 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 => 'Post' modelKey => 'post' validationErrors => null Session => object(SessionComponent) {} Cookie => object(CookieComponent) {} Auth => object(AuthComponent) {} Oneweb => object(OnewebComponent) {} Upload => object(UploadComponent) {} Province => object(Province) {} Config => object(Config) {} Advertisement => object(Advertisement) {} Video => object(Video) {} Banner => object(Banner) {} Livechat => object(AppModel) {} Currency => object(Currency) {} Menu => object(Menu) {} Product => object(Product) {} Post => object(Post) {} Information => object(Information) {} Support => object(Support) {} GalleryCategory => object(GalleryCategory) {} [protected] _responseClass => 'CakeResponse' [protected] _mergeParent => 'AppController' [protected] _eventManager => object(CakeEventManager) {} [private] limit_admin => (int) 50 [private] limit => (int) 15 } object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'cam-nang-lam-dep/mua-dong-la-luc-nguoi-chong-dung-dau-u-toc-cho-vo.htm' base => '' webroot => '/' here => '/cam-nang-lam-dep/mua-dong-la-luc-nguoi-chong-dung-dau-u-toc-cho-vo.htm' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' } - APP/webroot/index.php line 97 → Dispatcher->dispatch(CakeRequest, CakeResponse)
$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 => 'cam-nang-lam-dep/mua-dong-la-luc-nguoi-chong-dung-dau-u-toc-cho-vo.htm' base => '' webroot => '/' here => '/cam-nang-lam-dep/mua-dong-la-luc-nguoi-chong-dung-dau-u-toc-cho-vo.htm' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' } object(CakeResponse) { [protected] _statusCodes => array( [maximum depth reached] ) [protected] _mimeTypes => array( [maximum depth reached] ) [protected] _protocol => 'HTTP/1.1' [protected] _status => (int) 200 [protected] _contentType => 'text/html' [protected] _headers => array([maximum depth reached]) [protected] _body => null [protected] _file => null [protected] _fileRange => null [protected] _charset => 'UTF-8' [protected] _cacheDirectives => array([maximum depth reached]) [protected] _cookies => array([maximum depth reached]) }

