Jump to content

[SOLVED] Several modules display incorrectly in BO


Recommended Posts

I have a problem that some (about 7) non-Prestashop modules suddenly does not display correctly in back-office. Most (but not all) of these modules are listed in the top of the module list.

 

I have tried to clear both system and browser cache, but still same result.

I have "Disable non PrestaShop modules" set to NO and "Disable all overrides" set to NO

 

The problem is that a most of the text in the module does not show in back-office. In front-office everything looks OK.

 

Anyone have any tips????

 

150202_ModuleError1.jpg

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

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

back up you existing Translate.php

and replace that code with the updated Translate.php

 

in githup, glick veiw then click raw, then copy all that code and paste into Translate.php

 

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

  • 3 weeks later...

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...