dolec 0 Posted January 4 Posted January 4 (edited) After upgrade i have error in front Fatal error: Uncaught PrestaShop\PrestaShop\Core\Localization\Exception\LocalizationException: Unknown locale code: pl-PL and in backend PrestaShop\PrestaShop\Core\Localization\Exception\ LocalizationException in src/Core/Localization/Currency.php (line 185) * @throws LocalizationException */ public function getSymbol($localeCode) { if (!isset($this->symbols[$localeCode])) { throw new LocalizationException('Unknown locale code: ' . $localeCode); } return $this->symbols[$localeCode]; } Currency->getSymbol('pl-PL') How can i solve it manually? Edited January 4 by dolec (see edit history) Share this post Link to post Share on other sites
PrestaServicePro 123 Posted January 4 Posted January 4 Hi, Install Poland language pack from the "localization" and clear cache of the shop then check again. Share this post Link to post Share on other sites
leo-valentinienoteca 0 Posted January 21 Posted January 21 Hi, same problem here!! Oops... looks like an unexpected error occurred Unknown locale code: it-IT [PrestaShop\PrestaShop\Core\Localization\Exception\LocalizationException 0] I can't access the back office, when i try prestashop give me this error.. How can you solve this without accessing BO? PS.: i have already tryed to reinstall and apply the right language pack, this won't solve the problem. Thanks Share this post Link to post Share on other sites
PrestaServicePro 123 Posted January 21 Posted January 21 PHP version? Share this post Link to post Share on other sites
leo-valentinienoteca 0 Posted January 21 Posted January 21 i'm running WAMP server in local, just a simulation before doing the real work on my hosting. PHP 7.3.21 and tryed also PHP 7.4.9 Share this post Link to post Share on other sites
Mara Drijbooms 0 Posted January 28 Posted January 28 Try going into "Admin" => "International" => "Localization" In the "Import a localization pack" choose "Poland" then click "Import" That should do it. Share this post Link to post Share on other sites
musicmaster 677 Posted January 29 Posted January 29 (edited) This error happens when the currency is in the ps_currency table but not in the ps_currency_lang table - at least not for the specified language. The ps_currency_lang table was added in Prestashop version 1.7.6.0. Problems with it are typically the result of problems while upgrading from an older version. Edited January 30 by musicmaster (see edit history) Share this post Link to post Share on other sites
salvavidal 3 Posted February 6 Posted February 6 You are my Hero, hahahaha Share this post Link to post Share on other sites
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