Penge58 Posted September 20, 2013 Share Posted September 20, 2013 (edited) Hope someone can help me with this problem. I have had it for a while now..... Thank you in advance..... Hello I am using PS 1.5.5.0 I have done some translation into Norwegian of shop and modules and it has all went fine. Now I wanted to translate the mail part. When I save what I have translated I get the error below. Has anyone seen this before ?? Notice: Use of undefined constant path - assumed 'path' in /home/eldatech/www/shop/controllers/admin/AdminTranslationsController.php on line 2477Warning: Cannot modify header information - headers already sent by (output started at /home/eldatech/www/shop/controllers/admin/AdminTranslationsController.php:2477) in /home/eldatech/www/shop/classes/Tools.php on line 141 Petter Edited September 21, 2013 by Penge58 (see edit history) Link to comment Share on other sites More sharing options...
Penge58 Posted September 21, 2013 Author Share Posted September 21, 2013 On 9/20/2013 at 5:40 PM, Penge58 said: Hope someone can help me with this problem. I have had it for a while now..... Thank you in advance..... Hello I am using PS 1.5.5.0 I have done some translation into Norwegian of shop and modules and it has all went fine. Now I wanted to translate the mail part. When I save what I have translated I get the error below. Has anyone seen this before ?? Notice: Use of undefined constant path - assumed 'path' in /home/eldatech/www/shop/controllers/admin/AdminTranslationsController.php on line 2477 Warning: Cannot modify header information - headers already sent by (output started at /home/eldatech/www/shop/controllers/admin/AdminTranslationsController.php:2477) in /home/eldatech/www/shop/classes/Tools.php on line 141 Petter I hope someone can help me on this problem. Thank you in advance. Petter Link to comment Share on other sites More sharing options...
Logical IT Posted October 28, 2013 Share Posted October 28, 2013 Hi Peter, I had the same problem with PrestaShop 1.5.6. I believe there is a bug in program: controllers/admin/AdminTranslationsController.php lines 2481, 2482, & 2483. To fix simply add the character '$' before the word 'path' eg. if (!Tools::file_exists_cache(dirname($path))) if (!mkdir(dirname($path), 0700)) throw new PrestaShopException('Directory '.dirname($path).' cannot be created.'); 1 Link to comment Share on other sites More sharing options...
puspo Posted December 17, 2013 Share Posted December 17, 2013 On 10/28/2013 at 4:25 AM, Logical IT said: Hi Peter, I had the same problem with PrestaShop 1.5.6. I believe there is a bug in program: controllers/admin/AdminTranslationsController.php lines 2481, 2482, & 2483. To fix simply add the character '$' before the word 'path' eg. if (!Tools::file_exists_cache(dirname($path))) if (!mkdir(dirname($path), 0700)) throw new PrestaShopException('Directory '.dirname($path).' cannot be created.'); On my 1.5.6 absolutly works! Thanks very much. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now