- Posts: 3
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
PHP Error[2]: session_name(): Cannot change session name when headers already sent in file /var/www/html/limesurvey/framework/web/CHttpSession.php at line 206 #0 /var/www/html/limesurvey/framework/web/CHttpSession.php(206): session_name() #1 /var/www/html/limesurvey/framework/base/CComponent.php(152): ConsoleHttpSession->setSessionName() #2 /var/www/html/limesurvey/framework/YiiBase.php(227): ConsoleHttpSession->__set() #3 /var/www/html/limesurvey/framework/base/CModule.php(393): createComponent() #4 /var/www/html/limesurvey/framework/base/CModule.php(118): ConsoleApplication->getComponent() #5 /var/www/html/limesurvey/application/helpers/common_helper.php(1420): ConsoleApplication->__isset() #6 /var/www/html/limesurvey/application/libraries/PluginManager/LimesurveyApi.php(202): createFieldMap() #7 /var/www/html/limesurvey/application/libraries/PluginManager/LimesurveyApi.php(235): LimeSurvey\PluginManager\LimesurveyApi->getResponse() #8 /var/www/html/limesurvey/plugins/ICPlugin/ICPlugin.php(906): LimeSurvey\PluginManager\LimesurveyApi->getResponsesByTokens() #9 /var/www/html/limesurvey/plugins/ICPlugin/ICPlugin.php(696): ICPlugin->getResponsesFromParticipants() #10 /var/www/html/limesurvey/plugins/ICPlugin/ICPlugin.php(555): ICPlugin->evaluateFPbackgroundProcess() #11 /var/www/html/limesurvey/plugins/ICPlugin/ICPlugin.php(538): ICPlugin->evaluateICbackgroundProcess() #12 unknown(0): ICPlugin->backgroundProcessDirect() #13 /var/www/html/limesurvey/application/libraries/PluginManager/PluginManager.php(185): call_user_func() #14 /var/www/html/limesurvey/application/commands/PluginCommand.php(45): LimeSurvey\PluginManager\PluginManager->dispatchEvent() #15 unknown(0): PluginCommand->actionIndex() #16 /var/www/html/limesurvey/framework/console/CConsoleCommand.php(172): ReflectionMethod->invokeArgs() #17 /var/www/html/limesurvey/framework/console/CConsoleCommandRunner.php(71): PluginCommand->run() #18 /var/www/html/limesurvey/framework/console/CConsoleApplication.php(92): CConsoleCommandRunner->run() #19 /var/www/html/limesurvey/framework/base/CApplication.php(185): ConsoleApplication->processRequest() #20 /var/www/html/limesurvey/application/commands/console.php(64): ConsoleApplication->run()
$sdoitagainfp = $this->get('doitagainfp'); if (strlen($sdoitagainfp) > 0 ) { $doitagainfp = explode(",", $sdoitagainfp); if ( $doitagainfp ) { $this->pluginsettings['doitagainfp'] = $doitagainfp; if ($this->pluginsettings['debugmode']) $this->log("reset FP IDs: " . print_r($doitagainfp,true) ); } }
public function getResponsesByTokens($surveyId, $aTokens, $bMapQuestionCodes = true) { $result = array(); foreach ($aTokens as $token) { $oResponse = SurveyDynamic::model($surveyId)->findByAttributes(array('token'=>$token)); if ( $oResponse ){ $result[] = $this->getResponse($surveyId, $oResponse->id, $bMapQuestionCodes); } } return $result; }
// Faking a session here. Yii::app()->setComponent('session',array('class'=>'CHttpSession',),true); Yii::app()->session->open(); Yii::app()->session['loginID']=1;