Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

bug ? answers not recorded in DB but notification email is sent

  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago #195803 by tpartner

I did try to add the localized survey introduction message in the welcome page, but that did not work... would that be the culprit ?

What happens when you test with a core theme?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • bebs
  • bebs's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 1 month ago - 4 years 1 month ago #195804 by bebs
more info: I updated to 3.22.8, and set debug to 2

When I register in FR, and then change the language on the privacy statement page (without ticking the privacy box first) I got the error notice below. Setting the language back to FR does not display the error.
Code:
PHP notice
Undefined index: anonymized
 
/home/vunderatdm/limesurvey/application/helpers/expressions/em_manager_helper.php(6031)
 
6019 
6020             if ($groupSeq < 0 || $groupSeq >= $LEM->numGroups) {
6021                 return NULL;    // TODO - what is desired behavior?
6022             }
6023             $groupSeqInfo = (isset($LEM->groupSeqInfo[$groupSeq]) ? $LEM->groupSeqInfo[$groupSeq] : NULL);
6024             if (is_null($groupSeqInfo)) {
6025                 // then there are no questions in this group
6026                 return NULL;
6027             }
6028             $qInfo = $LEM->questionSeq2relevance[$groupSeqInfo['qstart']];
6029             $gseq = $qInfo['gseq'];
6030             $gid = $qInfo['gid'];
6031             $LEM->StartProcessingGroup($gseq, $LEM->surveyOptions['anonymized'], $LEM->sid); // analyze the data we have about this group
6032 
6033             $grel=false;  // assume irrelevant until find a relevant question
6034             $ghidden=true;   // assume hidden until find a non-hidden question.  If there are no relevant questions on this page, $ghidden will stay true
6035             $gmandViolation=false;  // assume that the group contains no manditory questions that have not been fully answered
6036             $gvalid=true;   // assume valid until discover otherwise
6037             $debug_message = '';
6038             $messages = array();
6039             $currentQset = array();
6040             $unansweredSQs = array();
6041             $invalidSQs = array();
6042             $updatedValues = array();
6043             $ganyUnanswered = false;
Stack Trace
#0  
/home/vunderatdm/limesurvey/application/helpers/expressions/em_manager_helper.php(5300): LimeExpressionManager->_ValidateGroup(0)
5295                                 'invalidSQs'=>(isset($result['invalidSQs']) ? $result['invalidSQs'] : ''),
5296                             );
5297                             return $LEM->lastMoveResult;
5298                         }
5299 
5300                         $result = $LEM->_ValidateGroup($LEM->currentGroupSeq);
5301                         if (is_null($result)) {
5302                             continue;   // this is an invalid group - skip it
5303                         }
5304                         $message .= $result['message'];
5305                         $updatedValues = array_merge($updatedValues,$result['updatedValues']);
#1  
/home/vunderatdm/limesurvey/application/helpers/SurveyRuntimeHelper.php(828): LimeExpressionManager::NavigateForwards()
823                     $this->aMoveResult = false; // so display welcome page again
824                 }
825             }
826 
827             if ($this->sMove == "movenext") {
828                 $this->aMoveResult = LimeExpressionManager::NavigateForwards();
829             }
830 
831             if (($this->sMove == 'movesubmit')) {
832                 if ($this->sSurveyMode == 'survey') {
833                     $this->aMoveResult = LimeExpressionManager::NavigateForwards();
#2  
/home/vunderatdm/limesurvey/application/helpers/SurveyRuntimeHelper.php(531): SurveyRuntimeHelper->setMoveResult()
526         $this->initFirstStep(); // If it's the first time user load this survey, will init session and LEM
527         $this->initTotalAndMaxSteps();
528         $this->checkIfUseBrowserNav(); // Check if user used browser navigation, or relaoded page
529         if ($this->sMove != 'clearcancel' &amp;&amp; $this->sMove != 'confirmquota') {
530             $this->checkPrevStep(); // Check if prev step is set, else set it
531             $this->setMoveResult();
532             $this->checkClearCancel();
533             $this->setPrevStep();
534             $this->checkIfFinished();
535             $this->setStep();
536 
#3  
+  /home/vunderatdm/limesurvey/application/helpers/SurveyRuntimeHelper.php(105): SurveyRuntimeHelper->initMove()
#4  
+  /home/vunderatdm/limesurvey/application/controllers/survey/index.php(590): SurveyRuntimeHelper->run("612987", array("surveyid" => "612987", "thissurvey" => array("htmlemail" => "Y", "format" => "G", "template" => "VdA", "language" => "fr", ...), "thisstep" => "0", "clienttoken" => "48iEq43t9", ...))
#5  
+  /home/vunderatdm/limesurvey/application/controllers/survey/index.php(24): index->action()
#6  
+  /home/vunderatdm/limesurvey/framework/web/actions/CAction.php(76): index->run()
#7  
+  /home/vunderatdm/limesurvey/framework/web/CController.php(308): CAction->runWithParams(array("sid" => "612987"))
#8  
+  /home/vunderatdm/limesurvey/framework/web/CController.php(286): CController->runAction(index)
#9  
+  /home/vunderatdm/limesurvey/framework/web/CController.php(265): CController->runActionWithFilters(index, array())
#10  
+  /home/vunderatdm/limesurvey/framework/web/CWebApplication.php(282): CController->run("index")
#11  
+  /home/vunderatdm/limesurvey/framework/web/CWebApplication.php(141): CWebApplication->runController("survey/index/sid/612987")
#12  
+  /home/vunderatdm/limesurvey/framework/base/CApplication.php(185): CWebApplication->processRequest()
#13  
+  /home/vunderatdm/limesurvey/index.php(194): CApplication->run()
2020-03-25 11:14:05 Apache Yii Framework/1.1.22-dev
Last edit: 4 years 1 month ago by bebs. Reason: precision.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago #195811 by DenisChenu
OK,

Then : seems related to multilingual and privacy box ....
See
github.com/LimeSurvey/LimeSurvey/commit/...8b63dd5d27dbbb3796e4
and
bugs.limesurvey.org/view.php?id=16025

But for 4.X ....

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 topic has been locked.
  • bebs
  • bebs's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 1 month ago #195820 by bebs
I confirm same problem happening with default (fruity) theme on 3.22.8:

Fyi, this survey is set to NOT ANONYMOUS, and tokens table is created on activation.

User registers (in french) from link
emfro.vunderatert.lu/index.php/335848?newtest=Y&lang=fr

Click on email received to get to privacy policy page, change language to DE, check privacy box, submit page >
Code:
PHP notice
Undefined index: anonymized
 
/home/vunderatdm/limesurvey/application/helpers/expressions/em_manager_helper.php(6031)
 
6031             $LEM->StartProcessingGroup($gseq, $LEM->surveyOptions['anonymized'], $LEM->sid); // analyze the data we have about this group
 
 
Stack Trace
#0  
/home/vunderatdm/limesurvey/application/helpers/expressions/em_manager_helper.php(5300): LimeExpressionManager->_ValidateGroup(0)
#1  
/home/vunderatdm/limesurvey/application/helpers/SurveyRuntimeHelper.php(828): LimeExpressionManager::NavigateForwards()
#2  
/home/vunderatdm/limesurvey/application/helpers/SurveyRuntimeHelper.php(531): SurveyRuntimeHelper->setMoveResult()
#3  
+  /home/vunderatdm/limesurvey/application/helpers/SurveyRuntimeHelper.php(105): SurveyRuntimeHelper->initMove()
#4  
+  /home/vunderatdm/limesurvey/application/controllers/survey/index.php(590): SurveyRuntimeHelper->run("335848", array("surveyid" => "335848", "thissurvey" => array("htmlemail" => "Y", "format" => "G", "template" => "VdA", "language" => "fr", ...), "thisstep" => "0", "clienttoken" => "kG5NxJjMv", ...))
#5  
+  /home/vunderatdm/limesurvey/application/controllers/survey/index.php(24): index->action()
#6  
+  /home/vunderatdm/limesurvey/framework/web/actions/CAction.php(76): index->run()
#7  
/home/vunderatdm/limesurvey/framework/web/CController.php(308): CAction->runWithParams(array("sid" => "335848"))
 


Do you need more debug info to point me to a possible quick fix for v3.22.8? I can't upgrade a running survey to LS4.
thanks.
B.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago #195825 by DenisChenu
Quick fix : don't use «Data policy» system since it's broken in multi language.


Else : www.limesurvey.org/community/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 topic has been locked.
  • bebs
  • bebs's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 1 month ago #195827 by bebs
thanks. I dropped the data policy for now and indeed the error did not show up again.

I can't seem to log in mantis to report the bug... will try again later. thanks.
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 4 weeks ago #195842 by DenisChenu
About Data policy, what i sue personnaly :

1st group : one multiple choice mandatory question with "I accept my data ...."

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 topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose