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(682)

670     {
671         $criteria = new CDbCriteria();
672         //            $criteria->condition = 'extends = :extends';
673         $criteria->addCondition('visible = :visible', 'AND');
674         $criteria->params = [':visible' => 'Y'];
675 
676         $baseQuestions = self::model()->query($criteria, true, false);
677 
678         $bOldEntityLoaderState = libxml_disable_entity_loader(true);
679         $baseQuestionsModified = [];
680         foreach ($baseQuestions as $baseQuestion) {
681             //TODO: should be moved into DB column (question_theme_settings table)
682             $sQuestionConfigFile = file_get_contents(App()->getConfig('rootdir') . DIRECTORY_SEPARATOR . $baseQuestion['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
683             $oQuestionConfig = simplexml_load_string($sQuestionConfigFile);
684             $questionEngineData = json_decode(json_encode($oQuestionConfig->engine), true);
685             $showAsQuestionType = $questionEngineData['show_as_question_type'];
686 
687             // if an extended Question should not be shown as a selectable questiontype skip it
688             if (!empty($baseQuestion['extends'] && !$showAsQuestionType)) {
689                 continue;
690             }
691 
692             // language settings
693             $baseQuestion['title'] = gT($baseQuestion['title'], "html");
694             $baseQuestion['group'] = gT($baseQuestion['group'], "html");

Stack Trace

#0
+
 /mnt/data/shnoulle/nginx/www/master/application/models/QuestionTheme.php(682): file_get_contents("/mnt/data/shnoulle/nginx/www/master/upload/themes/question/Socia...")
677 
678         $bOldEntityLoaderState = libxml_disable_entity_loader(true);
679         $baseQuestionsModified = [];
680         foreach ($baseQuestions as $baseQuestion) {
681             //TODO: should be moved into DB column (question_theme_settings table)
682             $sQuestionConfigFile = file_get_contents(App()->getConfig('rootdir') . DIRECTORY_SEPARATOR . $baseQuestion['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
683             $oQuestionConfig = simplexml_load_string($sQuestionConfigFile);
684             $questionEngineData = json_decode(json_encode($oQuestionConfig->engine), true);
685             $showAsQuestionType = $questionEngineData['show_as_question_type'];
686 
687             // if an extended Question should not be shown as a selectable questiontype skip it
#1
+
 /mnt/data/shnoulle/nginx/www/master/application/controllers/QuestionAdministrationController.php(190): QuestionTheme::findAllQuestionMetaDataForSelector()
185         $this->aData['questionbar']['buttons']['view'] = true;
186         $this->aData['sidemenu']['landOnSideMenuTab']         = 'structure';
187         $this->aData['title_bar']['title'] =
188             $question->survey->currentLanguageSettings->surveyls_title
189             . " (" . gT("ID") . ":" . $question->sid . ")";
190         $this->aData['aQuestionTypeList'] = QuestionTheme::findAllQuestionMetaDataForSelector();
191         $advancedSettings = $this->getAdvancedOptions($question->qid, $question->type, $questionTemplate);
192         // Remove general settings from this array.
193         unset($advancedSettings['Attribute']);
194 
195         // Add <input> with JSON as value, used by JavaScript.
#2
+
 /mnt/data/shnoulle/nginx/www/master/application/controllers/QuestionAdministrationController.php(146): QuestionAdministrationController->renderFormAux(Question)
141                 'qid' => $question->qid,
142                 'landOnSideMenuTab' => 'structure'
143             ]
144         );
145         $this->aData['tabOverviewEditor'] = $tabOverviewEditor;
146         $this->renderFormAux($question);
147     }
148 
149     /**
150      * Helper function to render form.
151      * Used by create and edit actions.
2021-02-03 14:46:51 nginx/1.18.0 Yii Framework/1.1.22-dev