SQLSTATE[HY000]: General error: 1030 Got error 28 from storage engine
Error: An Internal Error Has Occurred.
Stack Trace
- CORE/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()
- CORE/Cake/Model/Datasource/Database/Mysql.php line 331 → DboSource->_execute(string)
$table = $this->fullTableName($model);
$fields = false;
$cols = $this->_execute('SHOW FULL COLUMNS FROM ' . $table);
if (!$cols) {
'SHOW FULL COLUMNS FROM `dmc_label`.`dmc_store_carts`'
- CORE/Cake/Model/Model.php line 1358 → Mysql->describe(StoreCart)
$db = $this->getDataSource();
$db->cacheSources = ($this->cacheSources && $db->cacheSources);
if (method_exists($db, 'describe')) {
$this->_schema = $db->describe($this);
}
object(StoreCart) { name => 'StoreCart' hasMany => array( [maximum depth reached] ) useDbConfig => 'default' useTable => 'store_carts' id => false data => array([maximum depth reached]) schemaName => 'dmc_label' table => 'store_carts' primaryKey => 'id' validate => array([maximum depth reached]) validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => 'dmc_' plugin => null alias => 'StoreCart' 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 => 'first' 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 => object(CakeEventManager) {} [protected] _validator => null }
- CORE/Cake/Model/Datasource/DboSource.php line 2293 → Model->schema()
}
$allFields = empty($fields);
if ($allFields) {
$fields = array_keys($model->schema());
} elseif (!is_array($fields)) {
- CORE/Cake/Model/Datasource/DboSource.php line 1047 → DboSource->fields(StoreCart)
$bypass = true;
$queryData['fields'] = $this->fields($model, null, $queryData['fields']);
} else {
$queryData['fields'] = $this->fields($model);
}
object(StoreCart) { name => 'StoreCart' hasMany => array( [maximum depth reached] ) useDbConfig => 'default' useTable => 'store_carts' id => false data => array([maximum depth reached]) schemaName => 'dmc_label' table => 'store_carts' primaryKey => 'id' validate => array([maximum depth reached]) validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => 'dmc_' plugin => null alias => 'StoreCart' 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 => 'first' 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 => object(CakeEventManager) {} [protected] _validator => null }
- CORE/Cake/Model/Model.php line 2900 → DboSource->read(StoreCart, array)
* @return array
*/
protected function _readDataSource($type, $query) {
$results = $this->getDataSource()->read($this, $query);
$this->resetAssociations();
object(StoreCart) { name => 'StoreCart' hasMany => array( [maximum depth reached] ) useDbConfig => 'default' useTable => 'store_carts' id => false data => array([maximum depth reached]) schemaName => 'dmc_label' table => 'store_carts' primaryKey => 'id' validate => array([maximum depth reached]) validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => 'dmc_' plugin => null alias => 'StoreCart' 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 => 'first' 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 => object(CakeEventManager) {} [protected] _validator => null } array( 'conditions' => array( 'StoreCart.session' => 'u6dmfccjbsifmm551iv0qm3ea7' ), 'fields' => null, 'joins' => array(), 'limit' => (int) 1, 'offset' => null, 'order' => array( (int) 0 => null ), 'page' => (int) 1, 'group' => null, 'callbacks' => true, 'recursive' => null )
- CORE/Cake/Model/Model.php line 2872 → Model->_readDataSource(string, array)
return null;
}
return $this->_readDataSource($type, $query);
}
'first' array( 'conditions' => array( 'StoreCart.session' => 'u6dmfccjbsifmm551iv0qm3ea7' ), 'fields' => null, 'joins' => array(), 'limit' => (int) 1, 'offset' => null, 'order' => array( (int) 0 => null ), 'page' => (int) 1, 'group' => null, 'callbacks' => true, 'recursive' => null )
- CORE/Cake/Model/Datasource/DboSource.php line 597 → Model->find(string, array)
if (isset($params[3 + $off])) {
$recursive = $params[3 + $off];
}
return $args[2]->find('first', compact('conditions', 'fields', 'order', 'recursive'));
}
'first' array( 'conditions' => array( 'StoreCart.session' => 'u6dmfccjbsifmm551iv0qm3ea7' ), 'fields' => null, 'order' => null, 'recursive' => null )
- CORE/Cake/Model/Model.php line 800 → DboSource->query(string, array, StoreCart)
return $result;
}
return $this->getDataSource()->query($method, $params, $this);
}
'findBySession' array( (int) 0 => 'u6dmfccjbsifmm551iv0qm3ea7' ) object(StoreCart) { name => 'StoreCart' hasMany => array( [maximum depth reached] ) useDbConfig => 'default' useTable => 'store_carts' id => false data => array([maximum depth reached]) schemaName => 'dmc_label' table => 'store_carts' primaryKey => 'id' validate => array([maximum depth reached]) validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => 'dmc_' plugin => null alias => 'StoreCart' 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 => 'first' 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 => object(CakeEventManager) {} [protected] _validator => null }
- APP/Controller/AjaxController.php line 32 → Model->__call(string, array)
$sid = $this->AppAuth->Session->id();
// find cart by session or create a new one
$cart = $this->StoreCart->findBySession($sid);
if (!$cart) {
'findBySession' array( (int) 0 => 'u6dmfccjbsifmm551iv0qm3ea7' )
- APP/Controller/AjaxController.php line 32 → StoreCart->findBySession(string)
$sid = $this->AppAuth->Session->id();
// find cart by session or create a new one
$cart = $this->StoreCart->findBySession($sid);
if (!$cart) {
'u6dmfccjbsifmm551iv0qm3ea7'
- [internal function] → AjaxController->addToCart(string)
'46'
- CORE/Cake/Controller/Controller.php line 490 → ReflectionMethod->invokeArgs(AjaxController, array)
'action' => $request->params['action']
));
}
return $method->invokeArgs($this, $request->params['pass']);
object(AjaxController) { uses => array( [maximum depth reached] ) helpers => array( [maximum depth reached] ) components => array( [maximum depth reached] ) name => 'Ajax' request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'Ajax' layoutPath => null viewVars => array( [maximum depth reached] ) view => 'addToCart' 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 => 'StoreItem' modelKey => 'ajax' validationErrors => null Session => object(SessionComponent) {} AppAuth => object(AppAuthComponent) {} RequestHandler => object(RequestHandlerComponent) {} Email => object(EmailComponent) {} Utility => object(UtilityComponent) {} StoreCart => object(StoreCart) {} [protected] _responseClass => 'CakeResponse' [protected] _mergeParent => 'AppController' [protected] _eventManager => object(CakeEventManager) {} } array( (int) 0 => '46' )
- CORE/Cake/Routing/Dispatcher.php line 185 → Controller->invokeAction(CakeRequest)
$controller->startupProcess();
$render = true;
$result = $controller->invokeAction($request);
if ($result instanceof CakeResponse) {
object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array( [maximum depth reached] ) url => 'ajax/addToCart/46' base => '' webroot => '/' here => '/ajax/addToCart/46' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' }
- CORE/Cake/Routing/Dispatcher.php line 160 → Dispatcher->_invoke(AjaxController, CakeRequest, CakeResponse)
));
}
$response = $this->_invoke($controller, $request, $response);
if (isset($request->params['return'])) {
object(AjaxController) { uses => array( [maximum depth reached] ) helpers => array( [maximum depth reached] ) components => array( [maximum depth reached] ) name => 'Ajax' request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'Ajax' layoutPath => null viewVars => array( [maximum depth reached] ) view => 'addToCart' 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 => 'StoreItem' modelKey => 'ajax' validationErrors => null Session => object(SessionComponent) {} AppAuth => object(AppAuthComponent) {} RequestHandler => object(RequestHandlerComponent) {} Email => object(EmailComponent) {} Utility => object(UtilityComponent) {} StoreCart => object(StoreCart) {} [protected] _responseClass => 'CakeResponse' [protected] _mergeParent => 'AppController' [protected] _eventManager => object(CakeEventManager) {} } object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array( [maximum depth reached] ) url => 'ajax/addToCart/46' base => '' webroot => '/' here => '/ajax/addToCart/46' [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]) }
- APP/webroot/index.php line 108 → Dispatcher->dispatch(CakeRequest, CakeResponse)
$Dispatcher->dispatch(
new CakeRequest(),
new CakeResponse()
);
object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array( [maximum depth reached] ) url => 'ajax/addToCart/46' base => '' webroot => '/' here => '/ajax/addToCart/46' [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]) }