CException

Afvalwijzer en zijn behaviors hebben geen method of closure met naam "redirect".

/var/www/www.mijnafvalwijzer.nl/framework29/base/CComponent.php(264)

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

Stack Trace

#0
+
 /var/www/www.mijnafvalwijzer.nl/html/protected/models/Afvalwijzer.php(3491): CComponent->__call()
3486 
3487         // If the postcode or huisnummer is empty we redirect the user to the error page
3488         // to avoid calling to the API to generate the PDF calendar
3489         if (empty($postcode) || empty($huisnummer)) {
3490             Yii::app()->user->setState('ERROR_MESSAGE_JSON', $message);
3491             $this->redirect('/error');
3492         }
3493 
3494         $country = Yii::app()->user->hasState('country') ? Yii::app()->user->getState('country') : 'nl';
3495         $language = Yii::app()->getLanguage();
3496         $locale = Yii::app()->params['locale'][$language];
#1
+
 /var/www/www.mijnafvalwijzer.nl/html/protected/controllers/SiteController.php(1111): Afvalwijzer->rawPost()
1106      * This action is to create the calendar PDF.
1107      */
1108     public function actionRawpost($id = false)
1109     {
1110         $model = new Afvalwijzer();
1111         $content = $model->rawPost($id);
1112 
1113         // If the PDF content received is OK, we will generate the PDF calendar
1114         if (isset($content['data']['content']) && $content['data']['content'] != "ERROR") {
1115 
1116             $name = $content['data']['name'];
#11
+
 /var/www/www.mijnafvalwijzer.nl/html/index.php(40): CApplication->run()
35 
36 require_once($yii);
37 /** @noinspection PhpIncludeInspection */
38 require_once('debug.php'); // Include debugger
39 
40 Yii::createWebApplication($config)->run();
2024-03-28 21:48:04 Apache/2.4.52 (Ubuntu) Yii Framework/1.1.29