Jump to content

Error when saving mail translations.


Penge58

Recommended Posts

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

Edited by Penge58 (see edit history)
Link to comment
Share on other sites

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

  • 1 month later...

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.');

  • Like 1
Link to comment
Share on other sites

  • 1 month later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...