PHP notice

Array to string conversion

/home/hgctoo5/public_html/truewiring.com/app/s/application/core/LSETwigViewRenderer.php(712)

700                 $aData["aSurveyInfo"]['iTotalquestions'] = $_SESSION['survey_' .
701                 $aData['aSurveyInfo']['sid']]['totalquestions'];
702             }
703 
704             // Add the survey theme options
705             if ($oTemplate->oOptions) {
706                 foreach ($oTemplate->oOptions as $key => $value) {
707                     // TODO: Same issue as commit 2972aea41c51c74db95bfe40c337ae839471152c
708                     // Options are not loaded the same way in all places.
709                     if ($value instanceof stdClass) {
710                         $value = 'N/A';
711                     }
712                     $aData["aSurveyInfo"]["options"][$key] = (string) $value;
713                 }
714             }
715         } else {
716             // Add the global theme options
717             $oTemplateConfigurationCurrent = Template::getInstance($oTemplate->sTemplateName);
718             $aData["aSurveyInfo"]["options"] = isJson($oTemplateConfigurationCurrent['options'])
719                 ? json_decode((string) $oTemplateConfigurationCurrent['options'], true)
720                 : $oTemplateConfigurationCurrent['options'];
721         }
722 
723         $aData = $this->fixDataCoherence($aData);
724 

Stack Trace

#0
+
 /home/hgctoo5/public_html/truewiring.com/app/s/application/core/LSETwigViewRenderer.php(508): LSETwigViewRenderer->getAdditionalInfos(array("aSurveyInfo" => array("htmlemail" => "Y", "format" => "G", "tokenencryptionoptions" => "{"enabled":"N","columns":{"firstname":"N","lastname":"N","email"...", "template" => "TW_Main", ...)), TemplateConfiguration)
503         $this->_twig = $twig = parent::getTwig();
504 
505         //Run theme related things only if a theme is provided!
506         if ($oTemplate !== null) {
507             // Get the additional infos for the view, such as language, direction, etc
508             $aData = $this->getAdditionalInfos($aData, $oTemplate);
509 
510             // Add to the loader the path of the template and its parents.
511             $this->addRecursiveTemplatesPath($oTemplate);
512 
513             // Plugin for blocks replacement
#1
+
 /home/hgctoo5/public_html/truewiring.com/app/s/application/core/LSETwigViewRenderer.php(72): LSETwigViewRenderer->convertTwigToHtml("{# LimeSurvey Copyright (C) 2007-2017 The LimeSurvey Pro...", array("aSurveyInfo" => array("htmlemail" => "Y", "format" => "G", "tokenencryptionoptions" => "{"enabled":"N","columns":{"firstname":"N","lastname":"N","email"...", "template" => "TW_Main", ...)), TemplateConfiguration)
67     {
68         $oTemplate = Template::getLastInstance();
69         $oLayoutTemplate = $this->getTemplateForView($sLayout, $oTemplate);
70         if ($oLayoutTemplate) {
71             $line       = file_get_contents($oLayoutTemplate->viewPath . $sLayout);
72             $sHtml      = $this->convertTwigToHtml($line, $aData, $oTemplate);
73             $sEmHiddenInputs = LimeExpressionManager::FinishProcessPublicPage(true);
74             if ($sEmHiddenInputs) {
75                 $sHtml = str_replace(
76                     "<!-- emScriptsAndHiddenInputs -->",
77                     "<!-- emScriptsAndHiddenInputs updated -->\n" .
#2
+
 /home/hgctoo5/public_html/truewiring.com/app/s/application/helpers/frontend_helper.php(1360): LSETwigViewRenderer->renderTemplateFromFile("layout_user_forms.twig", array("aSurveyInfo" => array("htmlemail" => "Y", "format" => "G", "tokenencryptionoptions" => "{"enabled":"N","columns":{"firstname":"N","lastname":"N","email"...", "template" => "TW_Main", ...)), false)
1355 
1356             $aData['aSurveyInfo'] = $thissurvey;
1357 
1358             $aData['aSurveyInfo'] = array_merge($aSurveyInfo, $aData['aSurveyInfo']);
1359 
1360             Yii::app()->twigRenderer->renderTemplateFromFile("layout_user_forms.twig", $aData, false);
1361             break;
1362 
1363         case "register": //Register new user
1364             // Add the event and test if done
1365             Yii::app()->runController("register/index/sid/{$surveyid}");
2024-03-29 13:09:54 Apache Yii Framework/1.1.28