CException

Products and its behaviors do not have a method or closure named "getcolor".

/home/hotelsbi/ephesuscarpets.com/yii/framework/base/CComponent.php(265)

253     public function __call($name,$parameters)
254     {
255         if($this->_m!==null)
256         {
257             foreach($this->_m as $object)
258             {
259                 if($object->getEnabled() && method_exists($object,$name))
260                     return call_user_func_array(array($object,$name),$parameters);
261             }
262         }
263         if(class_exists('Closure', false) && $this->canGetProperty($name) && $this->$name instanceof Closure)
264             return call_user_func_array($this->$name, $parameters);
265         throw new CException(Yii::t('yii','{class} and its behaviors do not have a method or closure named "{name}".',
266             array('{class}'=>get_class($this), '{name}'=>$name)));
267     }
268 
269     /**
270      * Returns the named behavior object.
271      * The name 'asa' stands for 'as a'.
272      * @param string $behavior the behavior name
273      * @return IBehavior the behavior object, or null if the behavior does not exist
274      */
275     public function asa($behavior)
276     {
277         return isset($this->_m[$behavior]) ? $this->_m[$behavior] : null;

Stack Trace

#1
+
 /home/hotelsbi/ephesuscarpets.com/protected/modules/shop/controllers/ProductsController.php(775): CActiveRecord->__call("getcolor", array(3))
770                 $size_selected = "all";
771                 $shape_selected = "all";
772                 $range_selected = "$225 - $9445";
773             }
774 
775             $color = $product->getcolor($product_nbr);
776             $size = $product->getsize($product_nbr);
777             $shape = $product->getshape($product_nbr);
778 
779             $all_carpets = yii::app()->db->createCommand()
780             ->select('title')
#14
+
 /home/hotelsbi/ephesuscarpets.com/index.php(24): CApplication->run()
19 define('SKYPE_NAME','Ephesus.carpet');
20 define('EMAIL_LOGO_PATH','/img/logo.png');
21 
22 
23 require_once($yii);
24 Yii::createWebApplication($config)->run();
25 
26 
2024-03-18 22:01:56 LiteSpeed Yii Framework/1.1.13