PHP notice

Trying to get property of non-object

/var/www/html/www.loteriadecordoba.com.ar/htdocs/public/protected/views/noticias/noticia.php(81)

69                     <?=$datos->descripcion?>
70                 <?php
71                     if($datos->archivos){
72                         foreach($datos->archivos as $file){ ?>
73                             <a target="_blank" href="<?=$file->path?>"><?=$file->descripcion?></a><br/>
74                 <?php
75                         }
76                     }
77                 }
78                 ?>
79                 <a href="javascript:history.back()" class="btn-volver">VOLVER</a>
80                 <br>
81                 <a class="collapse-compartir" onClick="toggleMenu('redes-compartir-<?=$datos->idContenido?>')">
82                     <img src="<?=Yii::app()->request->baseUrl?>/img/compartir.png" alt="">
83                 </a>
84                 <div id="redes-compartir-<?=$datos->idContenido?>" class="redes-compartir">
85                     <?=Shared::printShared('https://'.$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"], $datos->titulo)?>
86                 </div>
87             </div>
88 
89             <div class="col-xs-12 col-sm-7 col-md-5 col-lg-4 col-lg-offset-1">
90                 <?php
91                 if(!empty($relacionadas)){
92                     foreach($relacionadas as $r){
93                         if($r->idContenido!=$datos->idContenido){ ?>

Stack Trace

#4
+
 /var/www/html/www.loteriadecordoba.com.ar/htdocs/public/protected/controllers/default/Noticias.php(34): CController->render("/noticias/noticia", array("datos" => null, "relacionadas" => array(Contenido, Contenido, Contenido)))
29         $xRelacionadas=$oContenido->getAll($xIdTipo, 0, 3, 'idCont', 'ASC');
30 
31         $xParametros=array(
32             'datos' => $xDatos,
33             'relacionadas' => $xRelacionadas);
34         $this->render("/noticias/noticia", $xParametros);
35     }
36     //*end-action*//
37 }
38 ?>
#5
+
 /var/www/html/www.loteriadecordoba.com.ar/htdocs/public/protected/controllers/es/NoticiasController.php(12): Noticias->noticia()
07     }
08     //*end-action*//
09 
10     //*start-action*//
11     public function actionNoticia(){
12         $this->noticia();
13     }
14     //*end-action*//
15 }
16 ?>
#13
+
 /var/www/html/www.loteriadecordoba.com.ar/htdocs/public/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();
14 ?>
2024-03-18 23:48:14 Apache Yii Framework/1.1.15