CDbException

CDbCommand ha riportato un errore nell'esecuzione della query SQL: SQLSTATE[HY000]: General error: 1030 Got error 28 from storage engine. The SQL statement executed was: SELECT banner_300x250 FROM ust122_adv WHERE ck_attiva=1 AND dal<=DATE(NOW()) AND al>=DATE(NOW()) ORDER BY RAND() LIMIT 1

/var/www/html/yii-1.1.16.bca042/framework/db/CDbCommand.php(543)

531         {
532             if($this->_connection->enableProfiling)
533                 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query');
534 
535             $errorInfo=$e instanceof PDOException ? $e->errorInfo : null;
536             $message=$e->getMessage();
537             Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.',
538                 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand');
539 
540             if(YII_DEBUG)
541                 $message.='. The SQL statement executed was: '.$this->getText().$par;
542 
543             throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}',
544                 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo);
545         }
546     }
547 
548     /**
549      * Builds a SQL SELECT statement from the given query specification.
550      * @param array $query the query specification in name-value pairs. The following
551      * query options are supported: {@link select}, {@link distinct}, {@link from},
552      * {@link where}, {@link join}, {@link group}, {@link having}, {@link order},
553      * {@link limit}, {@link offset} and {@link union}.
554      * @throws CDbException if "from" key is not present in given query parameter
555      * @return string the SQL statement

Stack Trace

#1
+
 /var/www/html/radiouniversita/protected/views/layouts/radiouni.php(182): CDbCommand->queryRow()
177     
178     if ( Yii::app()->controller->action->id!="mediauni" )
179         echo "<a href=\"$ust_baseUrl/mediauni\"><img src=\"/img/ru/radio-uni.png\" alt=\"mediauni\" width=\"304\" height=\"265\"/></a><br/><br/>\n";
180      echo "<a href=\"http://www.ustation.it/test-ingresso-ammissione-universita\" target=\"_blank\"><img src=\"/img/test_ammissione_universita.gif\" alt=\"ammissione università test\" width=\"300\" height=\"139\"></a><br/><br/>\n";
181     $command = $connection->createCommand( "SELECT banner_300x250 FROM {{adv}} WHERE ck_attiva=1 AND dal<=DATE(NOW()) AND al>=DATE(NOW()) ORDER BY RAND() LIMIT 1" );
182     if ( $row_adv = $command->queryRow() ) echo "$row_adv[banner_300x250]<br/><br/>\n";
183 
184     echo "<div id=\"podcast\"><h2 class=\"tit_dx\">PODCAST</h2><img src=\"/img/br_grigia.png\" alt=\"\" width=\"300\" height=\"4\"/>
185 <ul id=\"tabs\"><li><a class=\"apod\" href=\"#\" name=\"tab1\">Pi&ugrave; recenti</a></li><li><a class=\"apod\" href=\"#\" name=\"tab2\">Pi&ugrave; ascoltati</a></li><li><a href=\"$ust_baseUrl/podcast\">Vedi tutti</a></li>\n";
186     //
187     // echo "<li ><a class=\"apod\" id=\"lez_pod\" href=\"#\" name=\"tab3\">Lezioni</a></li>";
#5
+
 /var/www/html/radiouniversita/protected/controllers/SiteController.php(8): CController->render("radiouni")
03     {
04         
05         public function actionIndex()
06         {
07             $this->layout = (isset ( $_REQUEST['ore']) ? 'ajax' : 'radiouni');
08             $this->render('radiouni');
09         }
10 
11         public function actionSearch()
12         {
13                 $this->layout = 'search';
#13
+
 /var/www/html/radiouniversita/index.php(15): CApplication->run()
10 defined('YII_DEBUG') or define('YII_DEBUG',true);
11 // specify how many levels of call stack should be shown in each log message
12 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
13 
14 require_once($yii);
15 Yii::createWebApplication($config)->run();
2017-01-23 00:16:20 Apache/2.2.15 (Red Hat) Yii Framework/1.1.16