PHP warning

file_get_contents(/mnt/data/shnoulle/nginx/www/master/upload/themes/question/Social-Value-Orientation/survey/questions/answer/listradio/config.xml): failed to open stream: No such file or directory

/mnt/data/shnoulle/nginx/www/master/application/models/QuestionTheme.php(812)

800         }
801 
802         if ($name == 'core') {
803             $questionTheme = self::model()->findByAttributes([], 'question_type=:question_type AND extends=:extends', ['question_type' => $type, 'extends' => '']);
804         } else {
805             $questionTheme = self::model()->findByAttributes([], 'name=:name AND question_type=:question_type', ['name' => $name, 'question_type' => $type]);
806         }
807 
808         $answerColumnDefinition = '';
809         if (isset($questionTheme['xml_path'])) {
810             $bOldEntityLoaderState = libxml_disable_entity_loader(true);
811 
812             $sQuestionConfigFile = file_get_contents(App()->getConfig('rootdir') . DIRECTORY_SEPARATOR . $questionTheme['xml_path'] . DIRECTORY_SEPARATOR . 'config.xml');  // @see: Now that entity loader is disabled, we can't use simplexml_load_file; so we must read the file with file_get_contents and convert it as a string
813             $oQuestionConfig = simplexml_load_string($sQuestionConfigFile);
814             if (isset($oQuestionConfig->metadata->answercolumndefinition)) {
815                 // TODO: Check json_last_error.
816                 $answerColumnDefinition = json_decode(json_encode($oQuestionConfig->metadata->answercolumndefinition), true)[0];
817             }
818 
819             libxml_disable_entity_loader($bOldEntityLoaderState);
820         }
821 
822         $cacheMemo[$cacheKey] = $answerColumnDefinition;
823         return $answerColumnDefinition;
824     }

Stack Trace

#0
+
 /mnt/data/shnoulle/nginx/www/master/application/models/QuestionTheme.php(812): file_get_contents("/mnt/data/shnoulle/nginx/www/master/upload/themes/question/Socia...")
807 
808         $answerColumnDefinition = '';
809         if (isset($questionTheme['xml_path'])) {
810             $bOldEntityLoaderState = libxml_disable_entity_loader(true);
811 
812             $sQuestionConfigFile = file_get_contents(App()->getConfig('rootdir') . DIRECTORY_SEPARATOR . $questionTheme['xml_path'] . DIRECTORY_SEPARATOR . 'config.xml');  // @see: Now that entity loader is disabled, we can't use simplexml_load_file; so we must read the file with file_get_contents and convert it as a string
813             $oQuestionConfig = simplexml_load_string($sQuestionConfigFile);
814             if (isset($oQuestionConfig->metadata->answercolumndefinition)) {
815                 // TODO: Check json_last_error.
816                 $answerColumnDefinition = json_decode(json_encode($oQuestionConfig->metadata->answercolumndefinition), true)[0];
817             }
#1
+
 /mnt/data/shnoulle/nginx/www/master/application/helpers/common_helper.php(1471): QuestionTheme::getAnswerColumnDefinition("Social-Value-Orientation", "L")
1466         $conditions = 'N';
1467         $usedinconditions = 'N';
1468 
1469         // Check if answertable has custom setting for current question
1470         if (isset($arow['attribute']) && isset($arow['type']) && $arow['attribute'] == 'question_template') {
1471             $answerColumnDefinition = QuestionTheme::getAnswerColumnDefinition($arow['value'], $arow['type']);
1472         }
1473 
1474         // Field identifier
1475         // GXQXSXA
1476         // G=Group  Q=Question S=Subquestion A=Answer Option
#2
+
 /mnt/data/shnoulle/nginx/www/master/application/helpers/frontend_helper.php(693): createFieldMap(Survey, "full", true, false, ...)
688 
689     if ($thissurvey['anonymized'] == "N") {
690         $_SESSION['survey_' . $surveyid]['insertarray'][] = "token";
691     }
692 
693     $fieldmap = $_SESSION['survey_' . $surveyid]['fieldmap'] = createFieldMap($survey, 'full', true, false, $_SESSION['survey_' . $surveyid]['s_lang']);
694 
695     // first call to initFieldArray
696     initFieldArray($surveyid, $fieldmap);
697 
698     // Prefill questions/answers from command line params
2021-02-03 14:55:28 nginx/1.18.0 Yii Framework/1.1.22-dev