PHP notice

Trying to get property of non-object

/home/eippt/public_html/eip.pt/themes/front/views/site/noticia.php(26)

14 $noticia = $titulo;
15 
16 ?>
17 
18 <section id="detalhe_noticia">
19 
20     <div class="banner" style="background-image:url('<?php echo Yii::app()->theme->baseUrl?>/img/banner.jpg')"></div>
21 
22     <div class="container">
23         <div class="row">
24             <div class="col-lg-22 col-lg-offset-1 col-md-22 col-md-offset-1 col-sm-24 col-xs-24 tituloIntPagina">
25                 <span>
26                     <?php echo $noticia->{'titulo'.$langEscolhida};?>
27                 </span>
28             </div>
29 
30             <div class="data_noticia">
31                 <span>
32                     <?php echo $noticia->data; ?>
33                 </span>
34             </div>
35         </div>
36     </div>
37 
38     <div class="container" style="margin-top: 30px;">

Stack Trace

#4
+
 /home/eippt/public_html/eip.pt/protected/controllers/SiteController.php(627): CController->render("noticia", array("titulo" => null))
622         Yii::app()->params['isNoticia'] = true;
623         Yii::app()->params['noticia'] = $noticia;
624 
625 
626 
627         $this->render('noticia', array('titulo' => $noticia));
628 
629     }
630 
631 
632 
#10
+
 /home/eippt/public_html/eip.pt/protected/modules/UserAdmin/components/UAccessController.php(40): CFilterChain->run()
35                         $filterChain->run();
36                 }
37                 // If this controller or this action if free to access for everyone
38                 elseif ( ($this->freeAccess === true) OR (in_array($this->action->id, $this->freeAccessActions)) ) 
39                 {
40                         $filterChain->run();
41                 }
42                 // User is guest
43                 elseif (Yii::app()->user->isGuest) 
44                 {
45                         if ($this->_isRouteAllowed($this->_getGuestAllowedRoutes()))
#18
+
 /home/eippt/public_html/eip.pt/index.php(16): CApplication->run()
11 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',10);
12 defined('BEC_CHECK_DB') or define('BEC_CHECK_DB', true);
13 ini_set('display_errors','1');
14 
15 require_once($yii);
16 Yii::createWebApplication($config)->run();
2024-03-28 23:10:29 Apache Yii Framework/1.1.15