TDbException

Description

TDbCommand failed to execute the query SQL "SELECT * FROM vetrina": SQLSTATE[42S02]: Base table or view not found: 1146 Table 'dondeleo.vetrina' doesn't exist

Source File

/var/www/vhosts/dondeleo.com/httpdocs/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/vhosts/dondeleo.com/httpdocs/protected/default/DDisplayWindow.php(74): TDbCommand->query()
#1 /var/www/vhosts/dondeleo.com/httpdocs/protected/default/DDisplayWindow.php(156): DDisplayWindow->doQuery('SELECT * FROM v...')
#2 /var/www/vhosts/dondeleo.com/httpdocs/protected/default/DDisplayWindow.php(197): DDisplayWindow->alignData(Array)
#3 /var/www/vhosts/dondeleo.com/httpdocs/protected/default/DDisplayWindow.php(214): DDisplayWindow->getImages()
#4 /var/www/vhosts/dondeleo.com/httpdocs/protected/default/DDisplayWindow.php(250): DDisplayWindow->renderVetrina()
#5 /var/www/vhosts/dondeleo.com/httpdocs/prado/framework/pradolite.php(4036): DDisplayWindow->onLoad(NULL)
#6 /var/www/vhosts/dondeleo.com/httpdocs/prado/framework/pradolite.php(4043): TControl->loadRecursive()
#7 /var/www/vhosts/dondeleo.com/httpdocs/prado/framework/pradolite.php(4043): TControl->loadRecursive()
#8 /var/www/vhosts/dondeleo.com/httpdocs/prado/framework/pradolite.php(4043): TControl->loadRecursive()
#9 /var/www/vhosts/dondeleo.com/httpdocs/prado/framework/pradolite.php(4043): TControl->loadRecursive()
#10 /var/www/vhosts/dondeleo.com/httpdocs/prado/framework/pradolite.php(4043): TControl->loadRecursive()
#11 /var/www/vhosts/dondeleo.com/httpdocs/prado/framework/pradolite.php(4043): TControl->loadRecursive()
#12 /var/www/vhosts/dondeleo.com/httpdocs/prado/framework/pradolite.php(4043): TControl->loadRecursive()
#13 /var/www/vhosts/dondeleo.com/httpdocs/prado/framework/pradolite.php(4043): TControl->loadRecursive()
#14 /var/www/vhosts/dondeleo.com/httpdocs/prado/framework/pradolite.php(6007): TControl->loadRecursive()
#15 /var/www/vhosts/dondeleo.com/httpdocs/prado/framework/pradolite.php(5999): TPage->processNormalRequest(Object(THtmlWriter))
#16 /var/www/vhosts/dondeleo.com/httpdocs/prado/framework/pradolite.php(8112): TPage->run(Object(THtmlWriter))
#17 /var/www/vhosts/dondeleo.com/httpdocs/prado/framework/pradolite.php(8078): TPageService->runPage(Object(Prod), Array)
#18 /var/www/vhosts/dondeleo.com/httpdocs/prado/framework/pradolite.php(9039): TPageService->run()
#19 /var/www/vhosts/dondeleo.com/httpdocs/prado/framework/pradolite.php(8654): TApplication->runService()
#20 /var/www/vhosts/dondeleo.com/httpdocs/index.php(41): TApplication->run()
#21 {main}
2008-10-11 07:40 Apache/2.2.3 (Debian) mod_jk/1.2.18 mod_python/3.2.10 Python/2.4.4 PHP/5.2.0-8+etch11 mod_ssl/2.2.3 OpenSSL/0.9.8c mod_perl/2.0.2 Perl/v5.8.8 PRADO/3.1.1