PHP warning

simplexml_load_file(): I/O warning : failed to load external entity "/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/upload/templates/Default/config.xml"

/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/models/Template.php(161)

149         if($oTemplate->isStandard)
150         {
151             $oTemplate->name = (is_dir(Yii::app()->getConfig("standardtemplaterootdir").DIRECTORY_SEPARATOR.$sTemplateName))?$sTemplateName:'Default';
152             $oTemplate->path = Yii::app()->getConfig("standardtemplaterootdir").DIRECTORY_SEPARATOR.$oTemplate->name;
153         }
154         else
155         {
156             $oTemplate->name = (is_dir(Yii::app()->getConfig("usertemplaterootdir").DIRECTORY_SEPARATOR.$sTemplateName))?$sTemplateName:'Default';
157             $oTemplate->path = Yii::app()->getConfig("usertemplaterootdir").DIRECTORY_SEPARATOR.$oTemplate->name;
158         }
159 
160         // The template configuration.
161         $oTemplate->config = simplexml_load_file($oTemplate->path.'/config.xml');
162         $oTemplate->viewPath = $oTemplate->path.DIRECTORY_SEPARATOR.$oTemplate->config->engine->pstpldirectory.DIRECTORY_SEPARATOR;
163 
164         $oTemplate->cssFramework = $oTemplate->config->engine->cssframework;
165         $oTemplate->packages = (array) $oTemplate->config->engine->packages->package;
166 
167         return $oTemplate;
168     }
169 
170 
171     /**
172     * This function returns the complete URL path to a given template name
173     *

Stack Trace

#0
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/models/Template.php(161): simplexml_load_file("/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/upload/templ...")
156             $oTemplate->name = (is_dir(Yii::app()->getConfig("usertemplaterootdir").DIRECTORY_SEPARATOR.$sTemplateName))?$sTemplateName:'Default';
157             $oTemplate->path = Yii::app()->getConfig("usertemplaterootdir").DIRECTORY_SEPARATOR.$oTemplate->name;
158         }
159 
160         // The template configuration.
161         $oTemplate->config = simplexml_load_file($oTemplate->path.'/config.xml');
162         $oTemplate->viewPath = $oTemplate->path.DIRECTORY_SEPARATOR.$oTemplate->config->engine->pstpldirectory.DIRECTORY_SEPARATOR;
163 
164         $oTemplate->cssFramework = $oTemplate->config->engine->cssframework;
165         $oTemplate->packages = (array) $oTemplate->config->engine->packages->package;
166 
#1
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/AdminController.php(47): Template::getTemplateConfiguration("skeletonquest")
42         if (!Yii::app()->getConfig("action")) {Yii::app()->setConfig("action", returnGlobal('action'));}          //Desired action
43         if (!Yii::app()->getConfig("subaction")) {Yii::app()->setConfig("subaction", returnGlobal('subaction'));} //Desired subaction
44         if (!Yii::app()->getConfig("editedaction")) {Yii::app()->setConfig("editedaction", returnGlobal('editedaction'));} // for html editor integration
45 
46         global $oTemplate;
47         $oTemplate = Template::model()->getTemplateConfiguration(Yii::app()->getConfig("defaulttemplate"));
48     }
49 
50     /**
51     * Shows a nice error message to the world
52     *
#2
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/core/LSYii_Controller.php(42): AdminController->_init()
37         // This will setConfig from database
38         $this->loadHelper('globalsettings');
39         $this->loadHelper('common');
40         $this->loadHelper('expressions.em_manager');
41         $this->loadHelper('replacements');
42         $this->_init();
43     }
44 
45     /**
46      * Check that installation was already done by looking for config.php
47      * Will redirect to the installer script if not exists.
2016-02-02 10:11:54 Apache/2.2.22 (Debian) Yii Framework/1.1.16