TDbException

Description

TDbCommand failed to execute the query SQL "SHOW FULL FIELDS FROM `categories`": SQLSTATE[HY000]: General error: 1 Can't create/write to file '/tmp/#sql_46b_0.MYI' (Errcode: 122)

Source File

/var/www/vhosts/oesuone.com/httpdocs/framework_3_1_10/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/vhosts/oesuone.com/httpdocs/framework_3_1_10/Data/Common/Mysql/TMysqlMetaData.php(56): TDbCommand->query()
#1 /var/www/vhosts/oesuone.com/httpdocs/framework_3_1_10/Data/Common/TDbMetaData.php(93): TMysqlMetaData->createTableInfo('categories')
#2 /var/www/vhosts/oesuone.com/httpdocs/framework_3_1_10/Data/ActiveRecord/TActiveRecordGateway.php(121): TDbMetaData->getTableInfo('categories')
#3 /var/www/vhosts/oesuone.com/httpdocs/framework_3_1_10/Data/ActiveRecord/TActiveRecordGateway.php(93): TActiveRecordGateway->getTableInfo(Object(TDbConnection), 'categories')
#4 /var/www/vhosts/oesuone.com/httpdocs/framework_3_1_10/Data/ActiveRecord/TActiveRecordGateway.php(138): TActiveRecordGateway->getRecordTableInfo(Object(CategoriesRecord))
#5 /var/www/vhosts/oesuone.com/httpdocs/framework_3_1_10/Data/ActiveRecord/TActiveRecordGateway.php(247): TActiveRecordGateway->getCommand(Object(CategoriesRecord))
#6 /var/www/vhosts/oesuone.com/httpdocs/framework_3_1_10/Data/ActiveRecord/TActiveRecord.php(678): TActiveRecordGateway->findRecordsBySql(Object(CategoriesRecord), Object(TActiveRecordCriteria))
#7 /var/www/vhosts/oesuone.com/httpdocs/protected/layouts/Layout.php(93): TActiveRecord->findAllBySql('\n\t\t\t\tSELECT * F...')
#8 /var/www/vhosts/oesuone.com/httpdocs/protected/layouts/Layout.php(10): Layout->loadCategories()
#9 /var/www/vhosts/oesuone.com/httpdocs/framework_3_1_10/Web/UI/TControl.php(1270): Layout->onInit(NULL)
#10 /var/www/vhosts/oesuone.com/httpdocs/framework_3_1_10/Web/UI/TCompositeControl.php(35): TControl->initRecursive(Object(Blog))
#11 /var/www/vhosts/oesuone.com/httpdocs/framework_3_1_10/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(Object(Blog))
#12 /var/www/vhosts/oesuone.com/httpdocs/framework_3_1_10/Web/UI/TControl.php(1255): TTemplateControl->initRecursive(Object(Blog))
#13 /var/www/vhosts/oesuone.com/httpdocs/framework_3_1_10/Web/UI/TCompositeControl.php(35): TControl->initRecursive(NULL)
#14 /var/www/vhosts/oesuone.com/httpdocs/framework_3_1_10/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(NULL)
#15 /var/www/vhosts/oesuone.com/httpdocs/framework_3_1_10/Web/UI/TPage.php(207): TTemplateControl->initRecursive()
#16 /var/www/vhosts/oesuone.com/httpdocs/framework_3_1_10/Web/UI/TPage.php(198): TPage->processNormalRequest(Object(THtmlWriter))
#17 /var/www/vhosts/oesuone.com/httpdocs/framework_3_1_10/Web/Services/TPageService.php(498): TPage->run(Object(THtmlWriter))
#18 /var/www/vhosts/oesuone.com/httpdocs/framework_3_1_10/Web/Services/TPageService.php(444): TPageService->runPage(Object(Blog), Array)
#19 /var/www/vhosts/oesuone.com/httpdocs/framework_3_1_10/TApplication.php(1095): TPageService->run()
#20 /var/www/vhosts/oesuone.com/httpdocs/framework_3_1_10/TApplication.php(382): TApplication->runService()
#21 /var/www/vhosts/oesuone.com/httpdocs/index.php(18): TApplication->run()
#22 {main}
2017-05-27 13:40 Apache PRADO/3.1.10