CDbException

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [2002] Can't connect to MySQL server on 'mysql377int.srv-hostalia.com' (115)

/home/sejas/bucletube.es/protected/views/site/pages/top-videos.php(4)

01 <?php
02 include_once('Video.php');
03 
04 $connection=Yii::app()->db;
05 $sql="SELECT * FROM  `vista_videos_descripcion` WHERE NOT deleted  limit 30"; //limit
06 $command=$connection->createCommand($sql);
07 $rows=$command->queryAll();
08 
09 
10 
11 
12 echo '<ul class="videos">';
13 //para todo el arhcivo
14 foreach ($rows as $row) {
15     $video=new Video( $row['video_id'],$row['titulo'],$row['descripcion']);
16     echo "<li><a href=\"$video->url_bucletube\" alt=\"$video->titulo\" class=\"tip_trigger\">$video->img <span class=\"mytitle\"> <h3>$video->titulo</h3> <br /> $video->descripcion</span></a> </li>";

Stack Trace

#4
+
 /home/sejas/bucletube.es/protected/views/site/pages/top-videos.php(4): CModule->__get("db")
1 <?php
2 include_once('Video.php');
3 
4 $connection=Yii::app()->db;
5 $sql="SELECT * FROM  `vista_videos_descripcion` WHERE NOT deleted  limit 30"; //limit
6 $command=$connection->createCommand($sql);
7 $rows=$command->queryAll();
8 
9 
#17
+
 /home/sejas/bucletube.es/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();
2021-07-24 20:24:29 LiteSpeed Yii Framework/1.1.8