Jump to content

After upgrade to 1.7.7 from 1.6.24 fatal error: Uncaught PrestaShop\PrestaShop\Core\Localization\Exception\LocalizationException: Unknown locale code: pl-PL


Recommended Posts

Posted (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 by dolec (see edit history)

Share this post


Link to post
Share on other sites
  • 3 weeks later...

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

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 by musicmaster (see edit history)

Share this post


Link to post
Share on other sites
  • 2 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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More