CHttpException

Le questionnaire auquel vous essayez de participer ne semble pas exister.

/home/www/demonstrations/demo.sondages.pro/htdocs/application/controllers/survey/index.php(64)

52         /* If not set : get by SESSION to avoid multiple submit of same token in different navigator */
53         if (empty($clienttoken) && !empty($_SESSION['survey_' . $surveyid]['token'])) {
54             $clienttoken = $_SESSION['survey_' . $surveyid]['token'];
55         }
56 
57         $oSurvey = Survey::model()->findByPk($surveyid);
58 
59         if (empty($oSurvey)) {
60             $event = new PluginEvent('onSurveyDenied');
61             $event->set('surveyId', $surveyid);
62             $event->set('reason', 'surveyDoesNotExist');
63             App()->getPluginManager()->dispatchEvent($event);
64             throw new CHttpException(404, gT("The survey in which you are trying to participate does not seem to exist."));
65             /* Alt solution */
66             //~ header("HTTP/1.0 404 Not Found",true,404);
67             //~ Yii::app()->twigRenderer->renderTemplateFromFile("layout_errors.twig",
68                 //~ array('aSurveyInfo' =>array(
69                     //~ 'aError'=>array(
70                         //~ 'error'=>gT('404: Not Found'),
71                         //~ 'title'=>gT('This survey does not seem to exist'),
72                         //~ 'message'=>gT("The survey in which you are trying to participate does not seem to exist. It may have been deleted or the link you were given is outdated or incorrect.")
73                     //~ ),
74                 //~ )), false);
75         }
76 

Stack Trace

#0
+
 /home/www/demonstrations/demo.sondages.pro/htdocs/application/controllers/survey/index.php(22): Index->action()
17     public $oTemplate;
18 
19     public function run()
20     {
21         useFirebug();
22         $this->action();
23     }
24 
25     /**
26      *
27      * todo: this function is toooo long, to many things happening here. Should be refactored asap!
#8
+
 /home/www/demonstrations/demo.sondages.pro/htdocs/index.php(161): CApplication->run()
156 require_once APPPATH . 'core/LSYii_Application' . EXT;
157 
158 $config = require_once(APPPATH . 'config/internal' . EXT);
159 
160 Yii::$enableIncludePath = false;
161 Yii::createApplication('LSYii_Application', $config)->run();
162 
163 /* End of file index.php */
164 /* Location: ./index.php */
2024-03-28 21:05:27 Apache/2.4.38 (Debian) Yii Framework/1.1.28