Créer mon compte professionnel

*
*

*
*
*

*
*
*

*
Prado\Exceptions\TIOException

Prado\Exceptions\TIOException

Description

Unable to save to file /home/lapetitedistrib.com/public_html/protected/Translate/messages/frontend.xml, file must be writable.

Source File

/home/lapetitedistrib.com/public_html/protected/vendor/pradosoft/prado/framework/I18N/core/MessageSource_XLIFF.php (276)

0265:         }
0266: 
0267:         $variants = $this->getVariants($catalogue);
0268: 
0269:         if ($variants) {
0270:             list($variant, $filename) = $variants;
0271:         } else {
0272:             list($variant, $filename) = $this->createMessageTemplate($catalogue);
0273:         }
0274: 
0275:         if (is_writable($filename) == false) {
0276: throw new TIOException("Unable to save to file {$filename}, file must be writable.");
0277: } 0278: 0279: //create a new dom, import the existing xml 0280: $dom = new DOMDocument(); 0281: $dom->load($filename); 0282: 0283: //find the body element 0284: $xpath = new DomXPath($dom); 0285: $body = $xpath->query('//body')->item(0); 0286: 0287: $lastNodes = $xpath->query('//trans-unit[last()]'); 0288: if (($last = $lastNodes->item(0)) !== null) {

Stack Trace

#0 /home/lapetitedistrib.com/public_html/protected/vendor/pradosoft/prado/framework/I18N/Translation.php(107): Prado\I18N\core\MessageSource_XLIFF->save('frontend')
#1 [internal function]: Prado\I18N\Translation::saveMessages(Object(Prado\TApplication), NULL, 'onendrequest')
#2 /home/lapetitedistrib.com/public_html/protected/vendor/pradosoft/prado/framework/TComponent.php(1159): call_user_func(Array, Object(Prado\TApplication), NULL, 'onendrequest')
#3 /home/lapetitedistrib.com/public_html/protected/vendor/pradosoft/prado/framework/TApplication.php(1239): Prado\TComponent->raiseEvent('onendrequest', Object(Prado\TApplication), NULL)
#4 /home/lapetitedistrib.com/public_html/protected/vendor/pradosoft/prado/framework/TApplication.php(388): Prado\TApplication->onEndRequest()
#5 /home/lapetitedistrib.com/public_html/index.php(100): Prado\TApplication->run()
#6 {main}
2024-02-29 18:15 Apache PRADO/4.0.1