PHP Error

Trying to get property of non-object

/var/www/EXTERNAL/Gucio/protected/components/Cookie.php(33)

21     const SixMonths = 15811200;
22     const OneYear = 31536000;
23     const Lifetime = -1; // 2030-01-01 00:00:00
24 
25 
26     public static function hasCookie($name)
27     {
28         return !empty(Yii::app()->request->cookies[$name]->value);
29     }
30 
31     public static function getCookie($name)
32     {
33         return Yii::app()->request->cookies[$name]->value;
34     }
35 
36     public static function setCookie($name, $value, $time = null, $disableClientCookies = false)
37     {
38         if ($time === -1)
39             $time = 1893456000; // Lifetime = 2030-01-01 00:00:00
40         elseif (is_numeric($time))
41             $time += time();
42         else
43             $time = strtotime($time);
44 
45         $cookie = new CHttpCookie($name, $value);

Stack Trace

#0
+
 /var/www/EXTERNAL/Gucio/protected/modules/Main/views/cart/index/menu_full_options.php(14): Cookie::getCookie("portal_language")
09                     <a href="<?php echo Service_Constants::PORTAL_DOMAIN?>"><img class="special_logo option" src="<?php echo Yii::app()->baseUrl ?>/img/main/menu/logo_menu.svg" alt="" /></a>
10                     
11 
12                     <div class="lang" id="lang_menu">
13                         <?php  $cookie = new Cookie();
14                         if ($cookie->getCookie("portal_language") == "PL"): ?>                         
15                         <!--<span class="menu_item" data-goto="">
16                               <span style="display:inline" class="language mn_bg_orange goto" data-goto="goto_kontakt" style="color:#707070"><span class="lang_choice lang_on" data-lang="PL">PL</span>/<span class="lang_choice lang_off" data-lang="EN">EN</span></span>                                                                
17                         </span>--> 
18                         <?php else:?>
19                         <!--<span class="menu_item" data-goto="">
#4
+
 /var/www/EXTERNAL/Gucio/protected/modules/Main/views/cart/index.php(16): CController->renderPartial("index/menu_full_options", array())
11 Yii::app()->clientScript->registerCssFile($assetcssUrl.'/cart/cart.css');
12 Yii::app()->clientScript->registerCssFile($assetcssUrl.'/cart/cart_additional.css');
13 Yii::app()->clientScript->registerCssFile($assetcssUrl.'/cart/cart_RWD.css');
14 
15 ?>
16 <?php  $this->renderPartial('index/menu_full_options',array())  ?>
17 <?php  $this->renderPartial('index/cart',array())  ?>
18 
19 <div id="test_rwd"></div>                 
20 
#9
+
 /var/www/EXTERNAL/Gucio/protected/modules/Main/controllers/CartController.php(45): CController->render("index", array())
40                         }
41                     }
42                 }
43                 }
44                 }
45                 $this->render('index',array());   
46         }
47         public function actionStoreitem()
48     {                  
49                   session_start();
50                   $ADDED_FLAG = 0;
2024-03-19 03:37:27 Apache/2.4.18 (Ubuntu) Yii Framework/1.1.8