The 4.4.4 update stopped limesurvey working.

More
7 months 2 weeks ago - 7 months 2 weeks ago #211785 by ipsych
After update to 4.4.4 and DB upgrade, the question cannot be saved with below error.
The survey creation, and group creation works find, but whenever add or modify the question, below error shows up.

Possibly related to forums.limesurvey.org/forum/design-issue...ubquestions?start=15
but, still cannot figure out "WHY"....


/Sites/somesite/limesurvey/application/controllers/QuestionAdministrationController.php(2528)

2516      */
2517     private function applyL10n($oQuestion, $dataSet)
2518     {
2519         foreach ($dataSet as $sLanguage => $aI10NBlock) {
2520             $i10N = QuestionL10n::model()->findByAttributes();
2521             if (empty($i10N)) {
2522                 throw new Exception('Found no L10n object');
2523             }
2524             $i10N->setAttributes(
2525                 [
2526                     'question' => $aI10NBlock,
2527                     'help'     => $aI10NBlock,
2528                     'script'   => $aI10NBlock,
2529                 ],
2530                 false
2531             );
2532             if (!$i10N->save()) {
2533                 throw new CHttpException(500, gT("Could not store translation"));
2534             }
2535         }
2536 
2537         return true;
2538     }
2539 
2540     /**
Stack Trace
#0    
–  /Sites/somesite/limesurvey/application/controllers/QuestionAdministrationController.php(437): QuestionAdministrationController->applyL10n(Question, array("en" => array("question" => "test", "help" => "")))
432             }
433 
434             // Apply the changes to general settings, advanced settings and translations
435             $setApplied = [];
436 
437             $setApplied = $this->applyL10n($question, $questionData);
438 
439             $setApplied = $this->unparseAndSetAdvancedOptions(
440                 $question,
441                 $questionData
442             );
#1    
+  /Sites/somesite/limesurvey/framework/web/actions/CInlineAction.php(49): QuestionAdministrationController->actionSaveQuestionData()
#2    
+  /Sites/somesite/limesurvey/framework/web/CController.php(308): CInlineAction->runWithParams(array())
#3    
+  /Sites/somesite/limesurvey/framework/web/CController.php(286): CController->runAction(CInlineAction)
#4    
+  /Sites/somesite/limesurvey/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array())
#5    
–  /Sites/somesite/limesurvey/application/controllers/LSBaseController.php(160): CController->run("saveQuestionData")
155                     $this->redirect(array('/admin/authentication/sa/login'));
156                 }
157             }
158         }
159 
160         parent::run($action);
161     }
162 
163     /**
164      * Load and set session vars
165      *
#6    
+  /Sites/somesite/limesurvey/framework/web/CWebApplication.php(282): LSBaseController->run("saveQuestionData")
#7    
+  /Sites/somesite/limesurvey/framework/web/CWebApplication.php(141): CWebApplication->runController("questionAdministration/saveQuestionData")
#8    
+  /Sites/somesite/limesurvey/framework/base/CApplication.php(185): CWebApplication->processRequest()
#9    
–  /Sites/somesite/limesurvey/index.php(182): CApplication->run()
177 require_once APPPATH . 'core/LSYii_Application' . EXT;
178 
179 $config = require_once(APPPATH . 'config/internal' . EXT);
180 
181 Yii::$enableIncludePath = false;
182 Yii::createApplication('LSYii_Application', $config)->run();
183 
184 /* End of file index.php */
185 /* Location: ./index.php */
 
Last edit: 7 months 2 weeks ago by ipsych.

Please Log in to join the conversation.

More
7 months 2 weeks ago #211786 by DenisChenu
You activate debug mode ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development . I don't answer to private message.
The following user(s) said Thank You: ipsych

Please Log in to join the conversation.

More
7 months 2 weeks ago - 7 months 2 weeks ago #211807 by zufolo441
me too, when I try to edit a question, I obtain:
Undefined index: single_choice_questions (/var/www/html/limesurvey4/application/controllers/QuestionAdministrationController.php:248)
I had to revert to 4.4.1.
 
Last edit: 7 months 2 weeks ago by zufolo441.
The following user(s) said Thank You: ipsych

Please Log in to join the conversation.

More
7 months 2 weeks ago #211810 by DenisChenu
You activate debug mode ?

manual.limesurvey.org/Optional_settings#...opment_and_debugging


Else : an issue not reported is an issue not fixed : community.limesurvey.org/bug-tracker/

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development . I don't answer to private message.
The following user(s) said Thank You: ipsych

Please Log in to join the conversation.

More
7 months 2 weeks ago #211823 by ipsych
Yes, it turned out the debug mode issue!
To use iSessionExpirationTime, I accidentally activated debug mode.
commenting debug and debug sql made everything works.
The following user(s) said Thank You: DenisChenu, cdorin

Please Log in to join the conversation.

More
7 months 2 weeks ago #211826 by DenisChenu
@ ipsych issue reported and fixed :https://bugs.limesurvey.org/view.php?id=17027

@ zufolo441 please : report the issue

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development . I don't answer to private message.
The following user(s) said Thank You: cdorin

Please Log in to join the conversation.

More
7 months 2 weeks ago #211830 by cdorin
@zufolo441 , could you please mention also how you upgraded in the bug report? (bugs.limesurvey.org - use your limesurvey.org credentials ) . Can't reproduce the issue (debug off )

 

Manual: manual.limesurvey.org/LimeSurvey_Manual
Bugs tracker: bugs.limesurvey.org/my_view_page.php
If you self-host and need help, contact one of our partners: limesurvey.com
Please do not contact me via PM - thank you.

Please Log in to join the conversation.

More
7 months 2 weeks ago #211845 by zufolo441
Reported, thanks!

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now