Monday, May 25, 2015

Prestashop 1.6.0.14. Warning on line 381 in file /classes/Language.php


How to fix the following error in Prestashop 1.6.0.14:

Warning on line 381 in file /classes/Language.php
[2] file_exists(): open_basedir restriction in effect. File(/themes/theme_name/modules/index.php/translations/es.php) is not within the allowed path(s): (/home/username:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp)



Open /classes/Language.php file, and change line 381:

if ($module !== '.' && $module != '..' && $module !== '.svn' && file_exists($tPath_from.'modules/'.$module.'/translations/'.(string)$iso_from.'.php'))

to:

if ($module !== '.' && $module != '..' && $module !== '.svn' && @file_exists($tPath_from.'modules/'.$module.'/translations/'.(string)$iso_from.'.php'))

2 comments:

  1. Excellent information on your thank you for taking the time to share with us.
    prestashop 1.6

    ReplyDelete
  2. Excellent tips. Really useful stuff .Never had an idea about this, will look for more of such informative posts from your side... Good job...Keep it up
    Angularjs Development Services | node.js development services

    ReplyDelete