CException

RegisterController and its behaviors do not have a method or closure named "getController".

/home/sondages.pro/htdocs/limesurvey_GIT/205/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

#0
+
 /home/sondages.pro/htdocs/limesurvey_GIT/205/application/controllers/RegisterController.php(111): CComponent->__call("getController", array())
106             $attributeinsertdata[$field] = $value;
107         }
108         if ($register_errormsg != "")
109         {
110             $_SESSION['survey_'.$surveyid]['register_errormsg']=$register_errormsg;
111             $this->getController()->redirect(array('survey/index/sid/'.$surveyid));
112         }
113 
114         //Check if this email already exists in token database
115         $query = "SELECT email FROM {{tokens_$surveyid}}\n"
116         . "WHERE email = '".sanitize_email(Yii::app()->request->getPost('register_email'))."'";
#1
+
 /home/sondages.pro/htdocs/limesurvey_GIT/205/application/controllers/RegisterController.php(111): RegisterController->getController()
106             $attributeinsertdata[$field] = $value;
107         }
108         if ($register_errormsg != "")
109         {
110             $_SESSION['survey_'.$surveyid]['register_errormsg']=$register_errormsg;
111             $this->getController()->redirect(array('survey/index/sid/'.$surveyid));
112         }
113 
114         //Check if this email already exists in token database
115         $query = "SELECT email FROM {{tokens_$surveyid}}\n"
116         . "WHERE email = '".sanitize_email(Yii::app()->request->getPost('register_email'))."'";
#11
+
 /home/sondages.pro/htdocs/limesurvey_GIT/205/index.php(190): CApplication->run()
185         die (sprintf('%s should be writable by the webserver (755 or 775).', $runtimePath));
186     }
187 }
188 
189 
190 Yii::createApplication('LSYii_Application', $config)->run();
191 
192 /* End of file index.php */
193 /* Location: ./index.php */
2013-08-20 18:04:51 Apache/2.2.16 (Debian) Yii Framework/1.1.13