Error 400 when deleting a question on limesurvey 3.15.6+190108

More
7 months 1 week ago #179327 by mferraz
Hi

We're getting the following error when we try to delete a question:

CHttpException
Sua requisição é inválida.

/var/www/html/limesurvey/framework/web/CController.php(337)

325 return $_GET;
326 }
327
328 /**
329 * This method is invoked when the request parameters do not satisfy the requirement of the specified action.
330 * The default implementation will throw a 400 HTTP exception.
331 * @param CAction $action the action being executed
332 * @since 1.1.7
333 * @throws CHttpException
334 */
335 public function invalidActionParams($action)
336 {
337 throw new CHttpException(400,Yii::t('yii','Your request is invalid.'));
338 }
339
340 /**
341 * Postprocesses the output generated by {@link render()}.
342 * This method is invoked at the end of {@link render()} and {@link renderText()}.
343 * If there are registered client scripts, this method will insert them into the output
344 * at appropriate places. If there are dynamic contents, they will also be inserted.
345 * This method may also save the persistent page states in hidden fields of
346 * stateful forms in the page.
347 * @param string $output the output generated by the current action
348 * @return string the output that has been processed.
349 */
Stack Trace
#0
– /var/www/html/limesurvey/framework/web/CController.php(309): CController->invalidActionParams(questions)
304 $priorAction=$this->_action;
305 $this->_action=$action;
306 if($this->beforeAction($action))
307 {
308 if($action->runWithParams($this->getActionParams())===false)
309 $this->invalidActionParams($action);
310 else
311 $this->afterAction($action);
312 }
313 $this->_action=$priorAction;
314 }
#1
– /var/www/html/limesurvey/framework/web/CController.php(286): CController->runAction(questions)
281 * @see runAction
282 */
283 public function runActionWithFilters($action,$filters)
284 {
285 if(empty($filters))
286 $this->runAction($action);
287 else
288 {
289 $priorAction=$this->_action;
290 $this->_action=$action;
291 CFilterChain::create($this,$action,$filters)->run();
#2
– /var/www/html/limesurvey/framework/web/CController.php(265): CController->runActionWithFilters(questions, array())
260 {
261 if(($parent=$this->getModule())===null)
262 $parent=Yii::app();
263 if($parent->beforeControllerAction($this,$action))
264 {
265 $this->runActionWithFilters($action,$this->filters());
266 $parent->afterControllerAction($this,$action);
267 }
268 }
269 else
270 $this->missingAction($actionID);
#3
– /var/www/html/limesurvey/application/controllers/AdminController.php(158): CController->run("questions")
153 $this->redirect(array('/admin/authentication/sa/login'));
154 }
155 }
156 }
157
158 return parent::run($action);
159 }
160
161 /**
162 * Routes all the actions to their respective places
163 *
#4
– /var/www/html/limesurvey/framework/web/CWebApplication.php(282): AdminController->run("questions")
277 {
278 list($controller,$actionID)=$ca;
279 $oldController=$this->_controller;
280 $this->_controller=$controller;
281 $controller->init();
282 $controller->run($actionID);
283 $this->_controller=$oldController;
284 }
285 else
286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".',
287 array('{route}'=>$route===''?$this->defaultController:$route)));
#5
– /var/www/html/limesurvey/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/questions/sa/delete")
136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value)
137 $_GET[$name]=$value;
138 }
139 else
140 $route=$this->getUrlManager()->parseUrl($this->getRequest());
141 $this->runController($route);
142 }
143
144 /**
145 * Registers the core application components.
146 * This method overrides the parent implementation by registering additional core components.
#6
– /var/www/html/limesurvey/framework/base/CApplication.php(185): CWebApplication->processRequest()
180 public function run()
181 {
182 if($this->hasEventHandler('onBeginRequest'))
183 $this->onBeginRequest(new CEvent($this));
184 register_shutdown_function(array($this,'end'),0,false);
185 $this->processRequest();
186 if($this->hasEventHandler('onEndRequest'))
187 $this->onEndRequest(new CEvent($this));
188 }
189
190 /**
#7
– /var/www/html/limesurvey/index.php(194): CApplication->run()
189 require_once APPPATH . 'core/LSYii_Application' . EXT;
190
191 $config = require_once(APPPATH . 'config/internal' . EXT);
192
193 Yii::$enableIncludePath = false;
194 Yii::createApplication('LSYii_Application', $config)->run();
195
196 /* End of file index.php */
197 /* Location: ./index.php */
2019-01-16 20:14:55 Apache Yii Framework/1.1.20
Relatorio Resumido de Profiling (Tempo: 0.23269s, Mem�ria: 11,625KB)
Procedimento Contagem Total (s) M�d. (s) M�n. (s) M�x. (s)
system.db.CDbCommand.query(SELECT * FROM `lime_settings_global` `t`) 2 0.00424 0.00212 0.00170 0.00253
system.db.CDbCommand.query(SHOW FULL COLUMNS FROM `lime_surveys`) 1 0.00189 0.00189 0.00189 0.00189
system.db.CDbCommand.query(SHOW FULL COLUMNS FROM `lime_settings_global`) 1 0.00150 0.00150 0.00150 0.00150
system.db.CDbCommand.query(SHOW FULL COLUMNS FROM `lime_plugins`) 1 0.00082 0.00082 0.00082 0.00082
system.db.CDbCommand.query(SHOW CREATE TABLE `lime_settings_global`) 1 0.00029 0.00029 0.00029 0.00029
system.db.CDbCommand.query(SHOW CREATE TABLE `lime_surveys`) 1 0.00028 0.00028 0.00028 0.00028
system.db.CDbCommand.query(SHOW CREATE TABLE `lime_plugins`) 1 0.00023 0.00023 0.00023 0.00023
system.db.CDbCommand.query(SELECT * FROM `lime_settings_global` `t` WHERE stg_name=:name LIMIT 1. Bound with :name='DBVersion') 1 0.00019 0.00019 0.00019 0.00019
system.db.CDbCommand.query(SELECT * FROM `lime_plugins` `t` WHERE `t`.`active`=:yp0. Bound with :yp0=1) 1 0.00015 0.00015 0.00015 0.00015

Please Log in or Create an account to join the conversation.

LimeSurvey Partners

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!