Jump to content

Price specification not found for currency: ""


softer
 Share

Recommended Posts

Hi,
I have a problem with the store. When I try to log in to BO I get an error:

Uncaught Exception: Price specification not found for currency: ""

FO: "We will be back soon".
I tried to delete, update and add packages with localization, but nothing helped.
Restarting the server helps to solve the problem, but it reappears after about 1-2 days.

 

The first time the error appeared after downloading the localization package (US).

-- Settings --

PrestaShop version: 1.7.6.7

Linux info # 1 SMP wt. June 9 12:58:54 MSK 2020 x86_64

Server software version: Apache / 2.4.29 (Ubuntu)

PHP version: 7.2.24-0ubuntu0.18.04.7

MySQL version: 5.7.33-0ubuntu0.18.04.1

MySQL Engine: InnoDB

MySQL driver: DbPDO

 

screencapture-homenow-pl-admin693gjz3a7-index-php-2021-04-01-14_00_24.thumb.png.a309d337ae108d46194b483e488a0973.png

screencapture-homenow-pl-admin693gjz3a7-index-php-2021-04-01-14_07_23.thumb.png.c9853c717b805d823b9b7cc61679a5e6.png

Screenshot_4.thumb.png.17367f842702ef92e773b9cbe5aee70d.png

Screenshot_5.png.c7c59fe27de196709f9116a6b27c2462.png

Screenshot_6.thumb.png.9ddb410806a216d050448b3bde0db47a.png

Share this post


Link to post
Share on other sites

Problem is with CurrencyObject:

 

Currency Object ( [id] => [name] => [localizedNames:protected] => [iso_code] => [iso_code_num] => [numeric_iso_code] => [conversion_rate] => [deleted] => 0 [active] => [sign] => [symbol] => [localizedSymbols:CurrencyCore:private] => [format] => [blank] => [decimals] => [precision] => [webserviceParameters:protected] => Array ( [objectsNodeName] => currencies [fields] => Array ( [names] => Array ( [getter] => getLocalizedNames [i18n] => 1 ) [name] => Array ( [getter] => getName [modifier] => Array ( [http_method] => 6 [modifier] => setNameForWebservice ) ) [symbol] => Array ( [getter] => getLocalizedSymbols ) [iso_code] => Array ( [modifier] => Array ( [http_method] => 6 [modifier] => setIsoCodeForWebService ) ) ) ) [prefix] => [suffix] => [id_lang:protected] => [id_shop:protected] => [id_shop_list] => Array ( ) [get_shop_from_context:protected] => 1 [table:protected] => currency [identifier:protected] => id_currency [fieldsRequired:protected] => Array ( [0] => iso_code [1] => conversion_rate ) [fieldsSize:protected] => Array ( [iso_code] => 3 [numeric_iso_code] => 3 ) [fieldsValidate:protected] => Array ( [iso_code] => isLanguageIsoCode [numeric_iso_code] => isNumericIsoCode [precision] => isInt [conversion_rate] => isUnsignedFloat [deleted] => isBool [active] => isBool ) [fieldsRequiredLang:protected] => Array ( ) [fieldsSizeLang:protected] => Array ( [name] => 255 [symbol] => 255 ) [fieldsValidateLang:protected] => Array ( [name] => isGenericName ) [tables:protected] => Array ( ) [image_dir:protected] => [image_format:protected] => jpg [translator:protected] => [def:protected] => Array ( [table] => currency [primary] => id_currency [multilang] => 1 [fields] => Array ( [iso_code] => Array ( [type] => 3 [validate] => isLanguageIsoCode [required] => 1 [size] => 3 ) [numeric_iso_code] => Array ( [type] => 3 [validate] => isNumericIsoCode [size] => 3 ) [precision] => Array ( [type] => 1 [validate] => isInt ) [conversion_rate] => Array ( [type] => 4 [validate] => isUnsignedFloat [required] => 1 [shop] => 1 ) [deleted] => Array ( [type] => 2 [validate] => isBool ) [active] => Array ( [type] => 2 [validate] => isBool ) [name] => Array ( [type] => 3 [lang] => 1 [validate] => isGenericName [size] => 255 ) [symbol] => Array ( [type] => 3 [lang] => 1 [size] => 255 ) ) [classname] => Currency [associations] => Array ( [l] => Array ( [type] => 2 [field] => id_currency [foreign_field] => id_currency ) ) ) [update_fields:protected] => [force_id] => )

 

iso_code is null for some reason. 

Edited by softer (see edit history)

Share this post


Link to post
Share on other sites

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
 Share

×
×
  • Create New...

Important Information

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