TDbException

Description

TDbCommand failed to execute the query SQL "SELECT * FROM `attributes` WHERE product_id = :uid AND discr="variant" GROUP BY definition_uid ORDER BY `definition_uid` ASC, `ordering` ASC": SQLSTATE[HY000]: General error: 1030 Got error 28 from storage engine

Source File

/var/www/freshadmin/sedlarstvi/www/prado/framework/Data/TDbCommand.php (230)

0219:         try
0220:         {
0221:             // Prado::trace('Query: '.$this->getDebugStatementText(), 'System.Data');
0222:             if($this->_statement instanceof PDOStatement)
0223:                 $this->_statement->execute();
0224:             else
0225:                 $this->_statement=$this->getConnection()->getPdoInstance()->query($this->getText());
0226:             return new TDbDataReader($this);
0227:         }
0228:         catch(Exception $e)
0229:         {
0230: throw new TDbException('dbcommand_query_failed',$e->getMessage(),$this->getDebugStatementText());
0231: } 0232: } 0233: 0234: /** 0235: * Executes the SQL statement and returns the first row of the result. 0236: * This is a convenient method of {@link query} when only the first row of data is needed. 0237: * @param boolean whether the row should be returned as an associated array with 0238: * column names as the keys or the array keys are column indexes (0-based). 0239: * @return array the first row of the query result, false if no result. 0240: * @throws TDbException execution failed 0241: */ 0242: public function queryRow($fetchAssociative=true)

Stack Trace

#0 /var/www/freshadmin/sedlarstvi/www/prado/framework/Data/DataGateway/TDataGatewayCommand.php(134): TDbCommand->query()
#1 /var/www/freshadmin/sedlarstvi/www/prado/framework/Data/ActiveRecord/TActiveRecordGateway.php(225): TDataGatewayCommand->findAll(Object(TActiveRecordCriteria))
#2 /var/www/freshadmin/sedlarstvi/www/prado/framework/Data/ActiveRecord/TActiveRecord.php(600): TActiveRecordGateway->findRecordsByCriteria(Object(AttributeRecord), Object(TActiveRecordCriteria), true)
#3 /var/www/freshadmin/sedlarstvi/www/protected/model/ProductRecord.php(59): TActiveRecord->findAll(Object(TActiveRecordCriteria))
#4 /var/www/freshadmin/sedlarstvi/www/protected/pages/shop/ProductDetail.php(96): ProductRecord->getGroupedVariants()
#5 /var/www/freshadmin/sedlarstvi/www/prado/framework/Web/UI/TControl.php(1286): ProductDetail->onLoad(NULL)
#6 /var/www/freshadmin/sedlarstvi/www/prado/framework/Web/UI/TPage.php(215): TControl->loadRecursive()
#7 /var/www/freshadmin/sedlarstvi/www/prado/framework/Web/UI/TPage.php(198): TPage->processNormalRequest(Object(THtmlWriter))
#8 /var/www/freshadmin/sedlarstvi/www/prado/framework/Web/Services/TPageService.php(474): TPage->run(Object(THtmlWriter))
#9 /var/www/freshadmin/sedlarstvi/www/prado/framework/Web/Services/TPageService.php(420): TPageService->runPage(Object(ProductDetail), Array)
#10 /var/www/freshadmin/sedlarstvi/www/prado/framework/TApplication.php(1095): TPageService->run()
#11 /var/www/freshadmin/sedlarstvi/www/prado/framework/TApplication.php(382): TApplication->runService()
#12 /var/www/freshadmin/sedlarstvi/www/index.php(54): TApplication->run()
#13 {main}
2020-04-05 10:55 Apache/2.2.16 (Debian) PRADO/3.1.6