PHP notice

unserialize(): Error at offset 32764 of 32768 bytes

/mnt/HC_Volume_23321257/focusextranet/public_html/framework/caching/CCache.php(84)

72         return md5($this->keyPrefix.$key);
73     }
74 
75     /**
76      * Retrieves a value from cache with a specified key.
77      * @param string $id a key identifying the cached value
78      * @return mixed the value stored in cache, false if the value is not in the cache, expired or the dependency has changed.
79      */
80     public function get($id)
81     {
82         if(($value=$this->getValue($this->generateUniqueKey($id)))!==false)
83         {
84             $data=unserialize($value);
85             if(!is_array($data))
86                 return false;
87             if(!($data[1] instanceof ICacheDependency) || !$data[1]->getHasChanged())
88             {
89                 Yii::trace('Serving "'.$id.'" from cache','system.caching.'.get_class($this));
90                 return $data[0];
91             }
92         }
93         return false;
94     }
95 
96     /**

Stack Trace

#1
+
 /mnt/HC_Volume_23321257/focusextranet/public_html/protected/components/Functions.php(1599): CCache->get("cityList")
1594 
1595 if( ! function_exists( "getCityDetails" ) )
1596 {
1597     function getCityDetails( $cityId )
1598     {
1599         $cityList = Yii::app()->cache->get( "cityList" );
1600 
1601         if( ! empty( $cityList ) && array_key_exists( $cityId, $cityList ) )
1602         {
1603             $city = $cityList[$cityId];
1604         }
#2
+
 /mnt/HC_Volume_23321257/focusextranet/public_html/protected/controllers/Front_SearchController.php(792): getCityDetails("2411")
787                 $productImage   = getProductImage( $product->id );
788                 $product->image = $productImage ? $productImage->documentPath : "";
789                 $business = getBusinessDetails( $product->businessId );
790                 if( ! empty( $business ) )
791                 {
792                     $city               = getCityDetails( $business->cityId );
793                     $business->city     = ! empty( $city ) ? $city->name : "";
794                     $product->business  = $business;
795                 }
796                 $product->category  = getCategoryDetails( $product->productCategoryId );
797             }
#3
+
 /mnt/HC_Volume_23321257/focusextranet/public_html/protected/controllers/Front_SearchController.php(132): Front_SearchController->getProducts(CDbCriteria)
127         return $condition;
128     }
129     
130     protected function loadListsAndSaveSearch( $condition )
131     {
132         $this->getProducts( clone $condition );
133         $this->getCategories( clone $condition, COUNTRY_ID );
134         $this->getBusinesses( clone $condition, COUNTRY_ID );
135         if( ! empty( $this->data["businessListSearch"] ) )
136         {
137             $this->getCitiesAndCountiesForBusinesses( $this->data["businessListSearch"] );
2024-03-29 17:50:44 Apache Yii Framework/1.1.10