PHP warning

file_get_contents(upload/themes/question/Net-Promoter-Score/Net-Promoter-Score/survey/questions/answer/listradio/config.xml): failed to open stream: No such file or directory

/data/webdev/master/application/models/QuestionTheme.php(661)

649         $criteria->params = [':visible' => 'Y'];
650 
651         /** @var QuestionTheme[] */
652         $baseQuestions = self::model()->query($criteria, true);
653 
654         if (\PHP_VERSION_ID < 80000) {
655             $bOldEntityLoaderState = libxml_disable_entity_loader(true);
656         }
657 
658         $baseQuestionsModified = [];
659         foreach ($baseQuestions as $baseQuestion) {
660             //TODO: should be moved into DB column (question_theme_settings table)
661             $sQuestionConfigFile = file_get_contents($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
662             $oQuestionConfig = simplexml_load_string($sQuestionConfigFile);
663             $questionEngineData = json_decode(json_encode($oQuestionConfig->engine), true);
664             $showAsQuestionType = $questionEngineData['show_as_question_type'];
665 
666             // if an extended Question should not be shown as a selectable questiontype skip it
667             if (!empty($baseQuestion['extends']) && !$showAsQuestionType) {
668                 continue;
669             }
670 
671             // language settings
672             $baseQuestion['title'] = gT($baseQuestion['title'], "html");
673             $baseQuestion['group'] = gT($baseQuestion['group'], "html");

Stack Trace

#0
+
 /data/webdev/master/application/models/QuestionTheme.php(661): file_get_contents("upload/themes/question/Net-Promoter-Score/Net-Promoter-Score/sur...")
656         }
657 
658         $baseQuestionsModified = [];
659         foreach ($baseQuestions as $baseQuestion) {
660             //TODO: should be moved into DB column (question_theme_settings table)
661             $sQuestionConfigFile = file_get_contents($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
662             $oQuestionConfig = simplexml_load_string($sQuestionConfigFile);
663             $questionEngineData = json_decode(json_encode($oQuestionConfig->engine), true);
664             $showAsQuestionType = $questionEngineData['show_as_question_type'];
665 
666             // if an extended Question should not be shown as a selectable questiontype skip it
#1
+
 /data/webdev/master/application/controllers/admin/UserAction.php(778): QuestionTheme::findAllQuestionMetaDataForSelector()
773         $currentPreselectedQuestionTheme = array_key_exists('preselectquestiontheme', $aUserSettings) ? $aUserSettings['preselectquestiontheme'] : App()->getConfig('preselectquestiontheme');
774 
775         $aData['currentPreselectedQuestiontype'] = $currentPreselectedQuestiontype;
776         $aData['currentPreselectedQuestionTheme'] = $currentPreselectedQuestionTheme;
777         $aData['aUserSettings'] = $aUserSettings;
778         $aData['aQuestionTypeList'] = QuestionTheme::findAllQuestionMetaDataForSelector();
779         $aData['selectedQuestion'] = QuestionTheme::findQuestionMetaData($currentPreselectedQuestiontype, $currentPreselectedQuestionTheme);
780 
781         $aData['surveymenu_data']['model'] = $oSurveymenu;
782         $aData['surveymenuentry_data']['model'] = $oSurveymenuEntries;
783         // Render personal settings view
#4
+
 /data/webdev/master/application/core/SurveyCommonAction.php(83): CAction->runWithParamsInternal(UserAction, ReflectionMethod, array("r" => "admin/user/sa/personalsettings", "sa" => "personalsettings"))
78             $oMethod = new ReflectionMethod($this, $sDefault);
79         }
80 
81         // We're all good to go, let's execute it
82         // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params
83         return parent::runWithParamsInternal($this, $oMethod, $params);
84     }
85 
86     /**
87      * Some functions have different parameters, which are just an alias of the
88      * usual parameters we're getting in the url. This function just populates
2022-05-18 07:52:59 nginx/1.18.0 Yii Framework/1.1.24-dev