Welcome to the LimeSurvey Community Forum

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

Error 500

  • capeinfo3
  • capeinfo3's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 8 months ago - 3 years 8 months ago #202424 by capeinfo3
Error 500 was created by capeinfo3
Hi

The statistics page was working until early this morning, when it started giving an Error 500 message with "Call to a member function gT() on string".
capeinfo.com/surveys4/index.php/statisti...r/667829?language=en

About the same time, the survey page stopped loading properly. I used Comfortupdate to download the latest version, and that fixed the survey page, but the statistics.

I attach the error console messages.


Thanks
Carl
Last edit: 3 years 8 months ago by capeinfo3. Reason: additional info
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 8 months ago #202428 by DenisChenu
Replied by DenisChenu on topic Error 500
Your LimeSurvey version ?

I think it's a twig issue here. Can 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 topic has been locked.
  • capeinfo3
  • capeinfo3's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 8 months ago #202432 by capeinfo3
Replied by capeinfo3 on topic Error 500
Version 4.3.3+200707

debug=2

PHP notice
Undefined variable: query

/usr/www/users/capeixwyks/surveys4/application/helpers/userstatistics_helper.php(1582)

1570 // ==> value is NULL
1571 foreach ($oResponses as $oResponse){
1572 $sResponseColumn = $rt;
1573 if ($oResponse->$sResponseColumn == '' || $oResponse->$sResponseColumn == ' '){
1574 $row += 1;
1575 }
1576 }
1577 }
1578
1579 }
1580
1581 //check filter option
1582 if (incompleteAnsFilterState() == "incomplete") {$query .= " AND submitdate is null"; } elseif (incompleteAnsFilterState() == "complete") {$query .= " AND submitdate is not null"; }
1583
1584 //check for any "sql" that has been passed from another script
1585 if (!empty($sql)) {$query .= " AND $sql"; }
1586
1587
1588 // $statisticsoutput .= "\n<!-- ($sql): $query -->\n\n";
1589
1590 //store temporarily value of answer count of question type '5' and 'A'.
1591 $tempcount = -1; //count can't be less han zero
1592
1593 //increase counter
1594 $TotalCompleted += $row;
Stack Trace
#0
– /usr/www/users/capeixwyks/surveys4/application/helpers/userstatistics_helper.php(2812): userstatistics_helper->displayResults(array("alist" => array(array("AO01", "South Africa"), array("AO02", "Namibia"), array("AO03", "Botswana"), array("AO04", "Mozambique"), ...), "qtitle" => "G1Q00003", "qquestion" => "Where is your business located?", "qtype" => "!", ...), "103", "667829X23X462", "html", ...)
2807 $outputs = $this->buildOutputList($rt, $language, $surveyid, $outputType, $sql, $sLanguageCode);
2808 $sOutputHTML .= $outputs;
2809 //2. Collect and Display results #######################################################################
2810 if (isset($outputs) && $outputs) {
2811 //Make sure there really is an answerlist, and if so:
2812 $display = $this->displayResults($outputs, $results, $rt, $outputType, $surveyid, $sql, $usegraph, $browse, $sLanguageCode);
2813 $sOutputHTML .= $display;
2814 $aStatisticsData = array_merge($aStatisticsData, $display);
2815 } //end if -> collect and display results
2816
2817 //Delete Build Outputs data
#1
– /usr/www/users/capeixwyks/surveys4/application/controllers/Statistics_userController.php(238): userstatistics_helper->generate_statistics(667829, array("667829X23X462", "667829X23X463", "667829X23X464", "667829X23X468", ...), array("667829X23X462", "667829X23X463", "667829X23X464", "667829X23X468", ...), 1, ...)
233 //~ $prb->moveStep($process_status);
234
235 } // end foreach -> loop through all questions
236
237 $helper = new userstatistics_helper();
238 $statisticsoutput .= $helper->generate_statistics($iSurveyID, $summary, $summary, $publicgraphs, 'html', null, $sLanguage, false);
239
240 } //end if -> show summary results
241
242 $data = $statisticsoutput;
243 //done! set progress bar to 100%
#2
unknown(0): Statistics_userController->actionAction("667829", "en")
#3
+ /usr/www/users/capeixwyks/surveys4/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(Statistics_userController, array("667829", "en"))
#4
+ /usr/www/users/capeixwyks/surveys4/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(Statistics_userController, ReflectionMethod, array("language" => "en", "surveyid" => "667829"))
#5
+ /usr/www/users/capeixwyks/surveys4/framework/web/CController.php(308): CInlineAction->runWithParams(array("language" => "en", "surveyid" => "667829"))
#6
+ /usr/www/users/capeixwyks/surveys4/framework/web/CController.php(286): CController->runAction(CInlineAction)
#7
+ /usr/www/users/capeixwyks/surveys4/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array())
#8
+ /usr/www/users/capeixwyks/surveys4/framework/web/CWebApplication.php(282): CController->run("action")
#9
+ /usr/www/users/capeixwyks/surveys4/framework/web/CWebApplication.php(141): CWebApplication->runController("statistics_user/action")
#10
+ /usr/www/users/capeixwyks/surveys4/framework/base/CApplication.php(185): CWebApplication->processRequest()
#11
– /usr/www/users/capeixwyks/surveys4/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 */
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 8 months ago #202437 by DenisChenu
Replied by DenisChenu on topic Error 500

capeinfo3 wrote: Version 4.3.3+200707

Seems the last version.

Please : report your issue (with a sample lss)

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