PHP notice

Trying to get property of non-object

/home/q6o52mn6glij/public_html/jorgecarrillo.info/protected/views/publicaciones/_info.php(1)

01 <img src="<?php echo Yii::app()->request->baseUrl ?>/images/publicaciones/<?php echo $doc->img_portada ?>" style="float:right; border:1px solid #D8D8D8; margin-left:20px; margin-bottom:20px; max-width:195px;" />
02 <div style="width:600px; margin-bottom:10px;">
03     <h2>
04     <?php
05     if(isset($_GET['lang'])){
06         if($_GET['lang']=='es'){
07             echo $doc->titulo;
08         }else if($_GET['lang']=='en'){
09             echo $doc->titulo_ingles;
10         }
11     }else{
12         echo $doc->titulo;
13     }

Stack Trace

#4
+
 /home/q6o52mn6glij/public_html/jorgecarrillo.info/protected/controllers/PublicacionesController.php(37): CController->render("_info", array("doc" => null))
32     }
33     
34     public function actionInfo($id){
35         $this->layout='vacio';
36         $doc=EsPublicaciones::model()->findByPk($id);
37         $this->render('_info', array( 'doc' => $doc ) );
38     }
39     
40     public function actionRegistro(){
41         
42         $model=new Registro;
#14
+
 /home/q6o52mn6glij/public_html/jorgecarrillo.info/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-28 18:02:37 Apache Yii Framework/1.1.13