magick98 Posted February 1, 2015 Share Posted February 1, 2015 Hello, Hopefully someone can help asap, because we experience a lot of failed orders right now. Basically all the text for the modules is gone. When we try to configure the modules there is no text there - just the boxes and icons. This means that the modules do not work properly for the customer, so they cannot place any orders. Can this be a cache issue? Thanks in advance. Link to comment Share on other sites More sharing options...
El Patron Posted February 1, 2015 Share Posted February 1, 2015 see if this post will help you... https://www.prestashop.com/forums/topic/399796-several-modules-display-incorrectly-in-bo/?p=1943552 Link to comment Share on other sites More sharing options...
magick98 Posted February 1, 2015 Author Share Posted February 1, 2015 I think it could work, but our files look different. Here´s some of classes/Translate.php file: if (isset($_MODULES[$current_key])) $ret = stripslashes($_MODULES[$current_key]); elseif (isset($_MODULES[$default_key])) $ret = stripslashes($_MODULES[$default_key]); // if translation was not found in module, look for it in AdminController or Helpers elseif (!empty($_LANGADM)) $ret = Translate::getGenericAdminTranslation($string, $key, $_LANGADM); else $ret = stripslashes($string); if ($sprintf !== null) $ret = Translate::checkAndReplaceArgs($ret, $sprintf); if ($js) $ret = addslashes($ret); else $ret = htmlspecialchars($ret, ENT_COMPAT, 'UTF-8'); if ($sprintf === null) $lang_cache[$cache_key] = $ret; else return $ret; } return $lang_cache[$cache_key]; What needs to be changed here? Link to comment Share on other sites More sharing options...
magick98 Posted February 1, 2015 Author Share Posted February 1, 2015 see if this post will help you... https://www.prestashop.com/forums/topic/399796-several-modules-display-incorrectly-in-bo/?p=1943552 By the way: on line 175 in classes/Translate.php it says in our file: $ret = Translate::getGenericAdminTranslation($string, $key, $_LANGADM); How do we do this? We are using version 1.6.0.11. Thanks. Link to comment Share on other sites More sharing options...
El Patron Posted February 1, 2015 Share Posted February 1, 2015 the easiest way is to 1) back up old file Translate.php then replace that file with complete source of updated Translate.php then you do not need to do a link by line update. Link to comment Share on other sites More sharing options...
El Patron Posted February 1, 2015 Share Posted February 1, 2015 the easiest way is to 1) back up old file Translate.php then replace that file with complete source of updated Translate.php then you do not need to do a link by line update. also you will need to then after Translate.php update delete cache/cache_index.php sorry for not remembering to post that part. Link to comment Share on other sites More sharing options...
magick98 Posted February 3, 2015 Author Share Posted February 3, 2015 also you will need to then after Translate.php update delete cache/cache_index.php sorry for not remembering to post that part. Solved! Thanks very much for your help. 1 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