Bortoluzzi Arquitetura Bortoluzzi Arquitetura Bortoluzzi Arquitetura

Escritório

Bortoluzzi Arquitetura
Bortoluzzi Arquitetura Bortoluzzi Arquitetura

BORTOLUZZI ARQUITETURA CDbException

CDbException

CDbCommand falhou ao executar o comando SQL: SQLSTATE[HY000]: General error: 2013 Lost connection to MySQL server during query. The SQL statement executed was: SELECT * FROM `novidade` `t` WHERE ativo = 1 ORDER BY data desc LIMIT 3

/home/storage/b/f6/62/bortoluzziprojetos/public_html/yii/framework/db/CDbCommand.php(528)

516             return $result;

517 }
518 catch(Exception $e)
519 {
520 if($this->_connection->enableProfiling)
521 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query');
522 $errorInfo = $e instanceof PDOException ? $e->errorInfo : null;
523 $message = $e->getMessage();
524 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.',
525 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand');
526 if(YII_DEBUG)
527 $message .= '. The SQL statement executed was: '.$this->getText().$par;
528 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}',
529 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo);
530 }
531 }
532
533 /**
534 * Builds a SQL SELECT statement from the given query specification.
535 * @param array $query the query specification in name-value pairs. The following
536 * query options are supported: {@link select}, {@link distinct}, {@link from},
537 * {@link where}, {@link join}, {@link group}, {@link having}, {@link order},
538 * {@link limit}, {@link offset} and {@link union}.
539 * @return string the SQL statement
540 * @since 1.1.6

Stack Trace

#3
+
–
 /home/storage/b/f6/62/bortoluzziprojetos/public_html/section_novidades.php(8): CActiveRecord->findAll(CDbCriteria)
03 
04 $criteria = new CDbCriteria();
05 $criteria->order = 'data desc';
06 $criteria->addCondition("ativo = 1");
07 $criteria->limit = 3;
08 $novidadesLista = Novidade::model()->findAll($criteria);
09
10 ?>
11 <div class="clear"></div>
12
13 <div class="container section">
#4
+
–
 /home/storage/b/f6/62/bortoluzziprojetos/public_html/index.php(28): include("/home/storage/b/f6/62/bortoluzziprojetos/public_html/section_nov...")
23 <div class="section-inicial"><?php include("section_inicial.php"); ?></div>
24 <div id="wrapper">
25 <div><?php include("topo.php"); ?></div>
26 <div class="section-projetos"><?php include("section_projetos.php"); ?></div>
27 <div class="section-escritorio"><?php include("section_escritorio.php"); ?></div>
28 <div class="section-novidades"><?php include("section_novidades.php"); ?></div>
29 <div class="section-contato"><?php include("section_contato.php"); ?></div>
30 <div class="section-instagram"><?php include("section_instagram.php"); ?></div>
31 <div class="margin40"><?php include("rodape.php"); ?></div>
32 </div>
33 <?php include("scripts.php"); ?>
2025-11-08 06:46:57 Apache Yii Framework/1.1.9