PHP warning

copy(/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/upload/themes/survey/extends_bootswatch/views/subviews/header/head.twig): failed to open stream: No such file or directory

/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/application/models/TemplateManifest.php(167)

155     /**
156      * Copy a file from mother template to local directory and edit manifest if needed
157      *
158      * @return string template url
159      */
160     public function extendsFile($sFile)
161     {
162         if (!file_exists($this->path.$sFile) && !file_exists($this->viewPath.$sFile)) {
163 
164             // Copy file from mother template to local directory
165             $sRfilePath = $this->getFilePath($sFile, $this);
166             $sLfilePath = (pathinfo($sFile, PATHINFO_EXTENSION) == 'twig') ? $this->viewPath.$sFile : $this->path.$sFile;
167             copy($sRfilePath, $sLfilePath);
168 
169             // If it's a css or js file from config... must update DB and XML too....
170             $sExt = pathinfo($sLfilePath, PATHINFO_EXTENSION);
171             if ($sExt == "css" || $sExt == "js") {
172 
173                 // Check if that CSS/JS file is in DB/XML
174                 $aFiles = $this->getFilesForPackages($sExt, $this);
175                 $sFile  = str_replace('./', '', $sFile);
176 
177                 // The CSS/JS file is a configuration one....
178                 if (in_array($sFile, $aFiles)) {
179                     $this->addFileReplacement($sFile, $sExt);

Stack Trace

#0
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/application/models/TemplateManifest.php(167): copy("/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/theme...", "/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/uploa...")
162         if (!file_exists($this->path.$sFile) && !file_exists($this->viewPath.$sFile)) {
163 
164             // Copy file from mother template to local directory
165             $sRfilePath = $this->getFilePath($sFile, $this);
166             $sLfilePath = (pathinfo($sFile, PATHINFO_EXTENSION) == 'twig') ? $this->viewPath.$sFile : $this->path.$sFile;
167             copy($sRfilePath, $sLfilePath);
168 
169             // If it's a css or js file from config... must update DB and XML too....
170             $sExt = pathinfo($sLfilePath, PATHINFO_EXTENSION);
171             if ($sExt == "css" || $sExt == "js") {
172 
#1
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/application/controllers/admin/themes.php(639): TemplateManifest->extendsFile("subviews/header/head.twig")
634                         $this->getController()->redirect(array("admin/themes/sa/upload"));
635                     }
636 
637                     //$savefilename = $oEditedTemplate
638                     if (!file_exists($oEditedTemplate->path.$relativePathEditfile) && !file_exists($oEditedTemplate->viewPath.$relativePathEditfile)) {
639                         $oEditedTemplate->extendsFile($relativePathEditfile);
640                     }
641 
642                     $savefilename = $oEditedTemplate->extendsFile($relativePathEditfile);
643 
644                     if (is_writable($savefilename)) {
#4
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_master/application/core/Survey_Common_Action.php(83): CAction->runWithParamsInternal(themes, ReflectionMethod, array("sa" => "templatesavechanges"))
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
2018-05-18 09:56:10 Apache/2.2.22 (Debian) Yii Framework/1.1.18