Haris Posted January 30, 2023 Share Posted January 30, 2023 Front end showing following error version (1.7.8.6) Fatal error: Uncaught PrestaShop\PrestaShop\Core\Localization\Exception\LocalizationException: Unknown locale code: en-US in /var/www/vhosts/mydomain.com/httpdocs/src/Core/Localization/Currency.php:185 Stack trace: #0 /var/www/vhosts/mydomain.com/httpdocs/src/Core/Localization/Specification/Factory.php(115): PrestaShop\PrestaShop\Core\Localization\Currency->getSymbol() #1 /var/www/vhosts/mydomain.com/httpdocs/src/Core/Localization/Locale/Repository.php(218): PrestaShop\PrestaShop\Core\Localization\Specification\Factory->buildPriceSpecification() #2 /var/www/vhosts/mydomain.com/httpdocs/src/Core/Localization/Locale/Repository.php(150): PrestaShop\PrestaShop\Core\Localization\Locale\Repository->getPriceSpecifications() #3 /var/www/vhosts/mydomai n.com/httpdocs/classes/controller/Controller.php(196): PrestaShop\PrestaShop\Core\Localization\Locale\Repository->getLocale() #4 /var/www/vhosts/mydomain.com/httpdocs/classes/controller/FrontController.php(303): ControllerCore->init() #5 /var/www/vhosts/mydomain.com/httpdocs/classes/controller/Controller in /var/www/vhosts/mydomain.com/httpdocs/src/Core/Localization/Currency.php on line 185 Checked ps_lang table and missing id 65 created in Table: ps_currency_lang 1 65 British Pound £ But still showing same error. DB tables screenshot attached here. Backend showing following error (1/1) ContextErrorException Notice: Undefined offset: 65 in Currency.php line 266 at CurrencyCore->__construct()in AdminController.php line 2962 at AdminControllerCore->initShopContext()in AdminController.php line 545 at AdminControllerCore->__construct()in LegacyContext.php line 86 at LegacyContext->getContext()in UserLocaleListener.php line 39 at UserLocaleListener->__construct()in appDevDebugProjectContainer.php line 4055 at appDevDebugProjectContainer->getPrestashop_UserLocale_ListenerService()in appDevDebugProjectContainer.php line 4584 at appDevDebugProjectContainer->ContainerXtqv1ue\{closure}()in EventDispatcher.php line 231 at EventDispatcher->sortListeners()in EventDispatcher.php line 61 at EventDispatcher->getListeners()in ContainerAwareEventDispatcher.php line 129 at ContainerAwareEventDispatcher->getListeners()in TraceableEventDispatcher.php line 259 at TraceableEventDispatcher->preProcess()in TraceableEventDispatcher.php line 137 at TraceableEventDispatcher->dispatch()in HttpKernel.php line 127 at HttpKernel->handleRaw()in HttpKernel.php line 68 at HttpKernel->handle()in Kernel.php line 200 at Kernel->handle()in index.php line 82 Link to comment Share on other sites More sharing options...
ps8modules Posted February 1, 2023 Share Posted February 1, 2023 Hi, what was the cause of the error? Have you upgraded Prestashop? Link to comment Share on other sites More sharing options...
Haris Posted February 1, 2023 Author Share Posted February 1, 2023 Deleted en language. 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