- Posts: 4
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Internal Server Error Unable to lock file "/var/www/sda/6/a/prof.bastien/voyagepedago/application/config/../../locale/en/en.mo" for reading. An internal error occurred while the Web server was processing your request. Please contact the webmaster to report this problem. Thank you.
php56 1
protected function loadMessages($category, $language) { $messageFile=$this->basePath . DIRECTORY_SEPARATOR . $language . DIRECTORY_SEPARATOR . $this->catalog; /* les mo files de traduction ne fonctionnent pas sur les pages perso de free.fr (pb de droits avec chmod probablement) if($this->useMoFile) $messageFile.=self::MO_FILE_EXT; else $messageFile.=self::PO_FILE_EXT; if ($this->cachingDuration > 0 && $this->cacheID!==false && ($cache=Yii::app()->getComponent($this->cacheID))!==null) { $key = self::CACHE_KEY_PREFIX . $messageFile . "." . $category; if (($data=$cache->get($key)) !== false) return unserialize($data); } */ if (is_file($messageFile))
Unable to lock file "/var/www/sda/xxxx/limesurvey/application/config/../../locale/en/en.mo" for reading.
* @var boolean whether to load messages from MO files. Defaults to true. * If false, messages will be loaded from PO files. */ public $useMoFile=true;
$messages=$file->load($messageFile,$category);
Impossible de verrouiller le fichier « /var/www/sda/6/a/prof.bastien/voyagespedago/application/config/../../locale/fr/fr.mo » en lecture.
if(!($fr=@fopen($file,'rb'))) throw new CException(Yii::t('yii','Unable to read file "{file}".', array('{file}'=>$file))); /* Bloc à commenter pour utiliser LimeSurvey sur les pages perso de free if(!@flock($fr,LOCK_SH)) throw new CException(Yii::t('yii','Unable aaa to lock file "{file}" for reading.', array('{file}'=>$file))); */ $magic=current($array=unpack('c',$this->readByte($fr,4))); if($magic==-34) $this->useBigEndian=false;