Recoverable error

Object of class stdClass could not be converted to string

/mnt/data/shnoulle/nginx/www/master/application/core/LSETwigViewRenderer.php(685)

673 
674 
675             // NB: Session is flushed at submit, so sid is not defined here.
676             if (isset($_SESSION['survey_'.$aDatas['aSurveyInfo']['sid']]) &&
677                 isset($_SESSION['survey_'.$aDatas['aSurveyInfo']['sid']]['totalquestions'])) {
678                 $aDatas["aSurveyInfo"]['iTotalquestions'] = $_SESSION['survey_'.
679                 $aDatas['aSurveyInfo']['sid']]['totalquestions'];
680             }
681 
682             // Add the survey theme options
683             if ($oTemplate->oOptions) {
684                 foreach ($oTemplate->oOptions as $key => $value) {
685                     $aDatas["aSurveyInfo"]["options"][$key] = (string) $value;
686                 }
687             }
688         } else {
689             // Add the global theme options
690             $oTemplateConfigurationCurrent = Template::getInstance($oTemplate->sTemplateName);
691             $aDatas["aSurveyInfo"]["options"] = isJson($oTemplateConfigurationCurrent['options'])
692                 ? (array) json_decode($oTemplateConfigurationCurrent['options'])
693                 : $oTemplateConfigurationCurrent['options'];
694         }
695 
696         $aDatas = $this->fixDataCoherence($aDatas);
697 

Stack Trace

#0
+
 /mnt/data/shnoulle/nginx/www/master/application/core/LSETwigViewRenderer.php(488): LSETwigViewRenderer->getAdditionalInfos(array("aSurveyInfo" => array("htmlemail" => "Y", "format" => "G", "tokenencryptionoptions" => "", "template" => "copie_vanilla", ...)), TemplateConfiguration)
483         $this->_twig = $twig = parent::getTwig();
484 
485         //Run theme related things only if a theme is provided!
486         if ($oTemplate !== null) {
487             // Get the additional infos for the view, such as language, direction, etc
488             $aDatas = $this->getAdditionalInfos($aDatas, $oTemplate);
489 
490             // Add to the loader the path of the template and its parents.
491             $this->addRecursiveTemplatesPath($oTemplate);
492 
493             // Plugin for blocks replacement
#1
+
 /mnt/data/shnoulle/nginx/www/master/application/core/LSETwigViewRenderer.php(53): LSETwigViewRenderer->convertTwigToHtml("{# LimeSurvey Copyright (C) 2007-2017 The LimeSurvey Pro...", array("aSurveyInfo" => array("htmlemail" => "Y", "format" => "G", "tokenencryptionoptions" => "", "template" => "copie_vanilla", ...)), TemplateConfiguration)
48     {
49         $oTemplate = Template::getLastInstance();
50         $oLayoutTemplate = $this->getTemplateForView($sLayout, $oTemplate);
51         if ($oLayoutTemplate) {
52             $line       = file_get_contents($oLayoutTemplate->viewPath.$sLayout);
53             $sHtml      = $this->convertTwigToHtml($line, $aDatas, $oTemplate);
54             $sEmHiddenInputs = LimeExpressionManager::FinishProcessPublicPage(true);
55             if ($sEmHiddenInputs) {
56                 $sHtml = str_replace(
57                     "<!-- emScriptsAndHiddenInputs -->",
58                     "<!-- emScriptsAndHiddenInputs updated -->\n".
#2
+
 /mnt/data/shnoulle/nginx/www/master/application/helpers/frontend_helper.php(1212): LSETwigViewRenderer->renderTemplateFromFile("layout_user_forms.twig", array("aSurveyInfo" => array("htmlemail" => "Y", "format" => "G", "tokenencryptionoptions" => "", "template" => "copie_vanilla", ...)), false)
1207 
1208             $aData['aSurveyInfo'] = $thissurvey;
1209 
1210             $aData['aSurveyInfo'] = array_merge($aSurveyInfo, $aData['aSurveyInfo']);
1211 
1212             Yii::app()->twigRenderer->renderTemplateFromFile("layout_user_forms.twig", $aData, false);
1213             break;
1214 
1215         case "register": //Register new user
1216             // Add the event and test if done
1217             Yii::app()->runController("register/index/sid/{$surveyid}");
2020-05-06 07:08:26 nginx/1.18.0 Yii Framework/1.1.22-dev
Application Log
Timestamp Level Category Message
07:08:26.950699 trace vardump
/mnt/data/shnoulle/nginx/www/master/application/models/TemplateConfiguration.php
(1527):
stdClass#1
(
    [ajaxmode] => 'off'
    [brandlogo] => 'on'
    [container] => 'off'
    [hideprivacyinfo] => 'off'
    [brandlogofile] => null
    [font] => 'noto'
    [animatebody] => 'off'
    [showpopups] => '0'
    [showclearall] => 'on'
    [questionhelptextposition] => 'top'
    [fixnumauto] => 'enable'
)
07:08:26.952614 trace vardump
/mnt/data/shnoulle/nginx/www/master/application/models/TemplateConfiguration.php
(1527):
stdClass#1
(
    [animatebody] => stdClass#2
    (
        [@attributes] => stdClass#3
        (
            [type] => 'buttons'
            [category] => 'Simple options'
            [width] => '4'
            [title] => 'Animate body'
            [options] => 'on|off'
            [optionlabels] => 'Yes|No'
        )
        [0] => 'off'
    )
    [hideprivacyinfo] => stdClass#4
    (
        [@attributes] => stdClass#5
        (
            [type] => 'buttons'
            [category] => 'Simple options'
            [width] => '4'
            [title] => 'Hide privacy info'
            [options] => 'on|off'
            [optionlabels] => 'Yes|No'
        )
        [0] => 'off'
    )
    [container] => stdClass#6
    (
        [@attributes] => stdClass#7
        (
            [type] => 'buttons'
            [category] => 'Simple options'
            [width] => '4'
            [title] => 'Survey container'
            [options] => 'on|off'
            [optionlabels] => 'Yes|No'
        )
        [0] => 'on'
    )
    [showpopups] => stdClass#8
    (
        [@attributes] => stdClass#9
        (
            [type] => 'buttons'
            [category] => 'Simple options'
            [width] => '4'
            [title] => 'Show popups'
            [options] => '1|0|-1'
            [optionlabels] => 'Popup|On page|No'
        )
        [0] => '1'
    )
    [showclearall] => stdClass#10
    (
        [@attributes] => stdClass#11
        (
            [type] => 'buttons'
            [category] => 'Simple options'
            [width] => '4'
            [title] => 'Show Clear All button'
            [options] => 'on|off'
            [optionlabels] => 'Yes|No'
        )
        [0] => 'off'
    )
    [questionhelptextposition] => stdClass#12
    (
        [@attributes] => stdClass#13
        (
            [type] => 'buttons'
            [category] => 'Simple options'
            [width] => '4'
            [title] => 'Question help text position'
            [options] => 'top|bottom'
            [optionlabels] => 'Top|Bottom'
        )
        [0] => 'top'
    )
    [fixnumauto] => stdClass#14
    (
        [@attributes] => stdClass#15
        (
            [type] => 'buttons'
            [category] => 'Simple options'
            [width] => '4'
            [title] => 'Fix automatically numeric value'
            [options] => 'enable|partial|disable'
            [optionlabels] => 'Yes|For expression|No'
        )
        [0] => 'off'
    )
    [brandlogo] => stdClass#16
    (
        [@attributes] => stdClass#17
        (
            [type] => 'buttons'
            [category] => 'Images'
            [width] => '4'
            [title] => 'Logo'
            [options] => 'on|off'
            [optionlabels] => 'Yes|No'
        )
        [0] => 'on'
    )
    [brandlogofile] => stdClass#18
    (
        [@attributes] => stdClass#19
        (
            [type] => 'dropdown'
            [category] => 'Images'
            [width] => '6'
            [title] => 'Logo file'
            [parent] => 'brandlogo'
        )
        [0] => 'themes/survey/vanilla/files/logo.png'
    )
    [font] => stdClass#20
    (
        [@attributes] => stdClass#21
        (
            [type] => 'dropdown'
            [category] => 'Fonts'
            [width] => '12'
            [title] => 'Fonts'
            [parent] => 'font'
        )
        [dropdownoptions] => stdClass#22
        (
            [optgroup] => stdClass#23
            (
                [@attributes] => stdClass#24
                (
                    [label] => 'User browser'
                )
                [option] => array
                (
                    0 => stdClass#25
                    (
                        [@attributes] => stdClass#26
                        (
                            [class] => 'font-georgia         '
                            [value] => 'georgia'
                            [data-font-package] => 'websafe'
                        )
                        [0] => 'Georgia'
                    )
                    1 => stdClass#27
                    (
                        [@attributes] => stdClass#28
                        (
                            [class] => 'font-palatino        '
                            [value] => 'palatino'
                            [data-font-package] => 'websafe'
                        )
                        [0] => 'Palatino Linotype'
                    )
                    2 => stdClass#29
                    (
                        [@attributes] => stdClass#30
                        (
                            [class] => 'font-times_new_roman '
                            [value] => 'times_new_roman'
                            [data-font-package] => 'websafe'
                        )
                        [0] => 'Times New Roman'
                    )
                    3 => stdClass#31
                    (
                        [@attributes] => stdClass#32
                        (
                            [class] => 'font-arial           '
                            [value] => 'arial'
                            [data-font-package] => 'websafe'
                        )
                        [0] => 'Arial'
                    )
                    4 => stdClass#33
                    (
                        [@attributes] => stdClass#34
                        (
                            [class] => 'font-arial_black     '
                            [value] => 'arial_black'
                            [data-font-package] => 'websafe'
                        )
                        [0] => 'Arial Black'
                    )
                    5 => stdClass#35
                    (
                        [@attributes] => stdClass#36
                        (
                            [class] => 'font-comic_sans      '
                            [value] => 'comic_sans'
                            [data-font-package] => 'websafe'
                        )
                        [0] => 'Comic Sans'
                    )
                    6 => stdClass#37
                    (
                        [@attributes] => stdClass#38
                        (
                            [class] => 'font-impact          '
                            [value] => 'impact'
                            [data-font-package] => 'websafe'
                        )
                        [0] => 'Impact'
                    )
                    7 => stdClass#39
                    (
                        [@attributes] => stdClass#40
                        (
                            [class] => 'font-lucida_sans     '
                            [value] => 'lucida_sans'
                            [data-font-package] => 'websafe'
                        )
                        [0] => 'Lucida Sans'
                    )
                    8 => stdClass#41
                    (
                        [@attributes] => stdClass#42
                        (
                            [class] => 'font-trebuchet       '
                            [value] => 'trebuchet'
                            [data-font-package] => 'websafe'
                        )
                        [0] => 'Trebuchet'
                    )
                    9 => stdClass#43
                    (
                        [@attributes] => stdClass#44
                        (
                            [class] => 'font-courier         '
                            [value] => 'courier'
                            [data-font-package] => 'websafe'
                        )
                        [0] => 'Courier New'
                    )
                    10 => stdClass#45
                    (
                        [@attributes] => stdClass#46
                        (
                            [class] => 'font-lucida_console  '
                            [value] => 'lucida_console'
                            [data-font-package] => 'websafe'
                        )
                        [0] => 'Lucida Console'
                    )
                )
            )
        )
    )
)