xandehenrique Posted September 13, 2013 Share Posted September 13, 2013 (edited) Hello, I'm using version 1.5.3.1 and install a theme some items are not in EN as shopping and others, and to me the following message appears in the admin area: [PrestaShopException] File "br.php" doesn't exists and cannot be created in /home/floripasat/www/themes/thgr00027o/lang/ at line 1488 in file controllers/admin/AdminTranslationsController.php 1482. if (!Tools::file_exists_cache($dir)) 1483. if (!mkdir($dir, 0700)) 1484. throw new PrestaShopException('Directory '.$dir.' cannot be created.'); 1485. if (!Tools::file_exists_cache($dir.DIRECTORY_SEPARATOR.$file)) 1486. if (!file_put_contents($dir.'/'.$file, "<?php\n\nglobal \$".$var.";\n\$".$var." = array();\n\n?>")) 1487. throw new PrestaShopException('File "'.$file.'" doesn\'t exists and cannot be created in '.$dir); 1488. if (!is_writable($dir.DIRECTORY_SEPARATOR.$file)) 1489. $this->displayWarning(Tools::displayError('This file must be writable:').' '.$dir.'/'.$file); 1490. include($dir.DIRECTORY_SEPARATOR.$file); 1491. return $$var; 1492. } AdminTranslationsControllerCore->fileExists - [line 1576 - controllers/admin/AdminTranslationsController.php] - [0 Argument] AdminTranslationsControllerCore->initFormFront - [line 150 - controllers/admin/AdminTranslationsController.php] - [0 Argument] AdminTranslationsControllerCore->initForm - [line 107 - controllers/admin/AdminTranslationsController.php] - [1 Arguments] AdminTranslationsControllerCore->initContent - [line 167 - classes/controller/Controller.php] - [0 Argument] ControllerCore->run - [line 348 - classes/Dispatcher.php] - [0 Argument] DispatcherCore->dispatch - [line 50 - administracao/index.php] - [0 Argument] Thank someone help me Edited December 17, 2015 by xandehenrique (see edit history) Link to comment Share on other sites More sharing options...
godlo Posted December 15, 2015 Share Posted December 15, 2015 I know that this is old... but I will write the solution for future reference: The first thing to check with that error are lang directory permissions. Link to comment Share on other sites More sharing options...
Azoda.net Posted December 17, 2015 Share Posted December 17, 2015 you should upgrade version prestashop,it was lose file Link to comment Share on other sites More sharing options...
Recommended Posts