Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Price specification not found for currency: "EUR" - 1.7.6.0 #14595

Closed
attractive opened this issue Jul 11, 2019 · 60 comments

Comments

@attractive
Copy link

commented Jul 11, 2019

If i click orders - error 500. I set price - PL - polish zloty

Price specification not found for currency: "EUR"

PrestaShop\PrestaShop\Core\Localization\Exception\ LocalizationException in src/Core/Localization/Locale.php (line 171) public function getPriceSpecification($currencyCode) { $currencyCode = (string) $currencyCode; $priceSpec = $this->priceSpecifications->get($currencyCode); if (null === $priceSpec) { throw new LocalizationException( 'Price specification not found for currency: "' . $currencyCode . '"' ); } return $priceSpec;

Logs:

Level Channel Message
DEBUG17:12:35 doctrine SELECT name FROM ps_module WHERE active = 1
CRITICAL17:12:35 php Uncaught Exception: Price specification not found for currency: "EUR"
CRITICAL17:12:35 request Uncaught PHP Exception PrestaShop\PrestaShop\Core\Localization\Exception\LocalizationException: "Price specification not found for currency: "EUR"" at /home/sklep.tervel.pl/public_html/src/Core/Localization/Locale.php line 171

Screenshots
https://www.dropbox.com/s/c2msgc18ssvfemm/Zrzut%20ekranu%202019-07-11%2017.18.43.png?dl=0

Additional information
PrestaShop version: 1.7.6.0
PHP version: 7.2.15

@khouloudbelguith

This comment has been minimized.

Copy link
Contributor

commented Jul 11, 2019

Hi @attractive,

Thanks for your report.
What is the exact language/country did you used during the install PS1.7.6.0.
Did added a product to your order which has a specific price as an amount?
In my case, I did not manage to reproduce the issue with PS1.7.6.0
Thanks!

@attractive

This comment has been minimized.

Copy link
Author

commented Jul 11, 2019

Hi @attractive,

Thanks for your report.
What is the exact language/country did you used during the install PS1.7.6.0.
Did added a product to your order which has a specific price as an amount?
In my case, I did not manage to reproduce the issue with PS1.7.6.0
Thanks!

Sorry, my mistake - if i clik orders in admin panel

@khouloudbelguith

This comment has been minimized.

Copy link
Contributor

commented Jul 11, 2019

@attractive, yes, your issue in the Back.
I need the exact steps to reproduce the issue.
We need more details to understand how we can reproduce your issue:

  • Language/country during the install
  • Did you import any pack from the Localization Page
  • The product added to your order has a specific price

Thanks!

@crisnelyn

This comment has been minimized.

Copy link

commented Jul 11, 2019

I have the exact same problem.

I upgraged Prestashop from 1.7.5 to 1.7.6 and everything was smooth, no error during the upgrade

The front end is working, the back end is working but except for the order tab

Each time I click on "Orders" I have an error 500

I put debug mode and now I have:

CRITICAL23:19:00 php Uncaught Exception: Price specification not found for currency: ""
CRITICAL23:19:00 request Uncaught PHP Exception PrestaShop\PrestaShop\Core\Localization\Exception\LocalizationException: "Price specification not found for currency: """ at /home/coeurtech/public_html/src/Core/Localization/Locale.php line 171

I have my website in French and using EUR currency

@marionf

This comment has been minimized.

Copy link
Contributor

commented Jul 12, 2019

Hello @attractive

Is it a fresh install of PS 1.7.6 or did you make an upgrade ?

@khouloudbelguith

This comment has been minimized.

Copy link
Contributor

commented Jul 12, 2019

@crisnelyn, in my case, I did not manage to reproduce the issue after upgrade from PS1.7.5.2 to PS1.7.6.0 using the 1-click upgrade v4.9.0.

Thanks!

@khouloudbelguith

This comment has been minimized.

Copy link
Contributor

commented Jul 12, 2019

ping @marionf, I think, this issue could be related to this: #14608
What do you think?

@crisnelyn

This comment has been minimized.

Copy link

commented Jul 12, 2019

@khouloudbelguith

This comment has been minimized.

Copy link
Contributor

commented Jul 12, 2019

@crisnelyn, could you please navigate to your BO => International => Localization page => Import the "France" pack, clear cache, check & feedback.

Thanks!

@crisnelyn

This comment has been minimized.

Copy link

commented Jul 12, 2019

@khouloudbelguith thank you for trying to help me, I did what you asked and I cleared the cache but I am having the same problem

Screenshots with without debug mode:

cleared cache
error
error-log
no-debug

@khouloudbelguith

This comment has been minimized.

Copy link
Contributor

commented Jul 12, 2019

@attractive, could you please check the table ps_currency & feedback.
image

Thanks!

@01park

This comment has been minimized.

Copy link

commented Jul 12, 2019

Im having the same issue with multistore - upgrade from 1.7.5.2 to 1.7.6

I can not switch to one store - error 500

Screenshot 2019-07-12 at 12 27 10

@khouloudbelguith

This comment has been minimized.

Copy link
Contributor

commented Jul 12, 2019

@01park, could you please check you also the ps_currency table.

Thanks!

@01park

This comment has been minimized.

Copy link

commented Jul 12, 2019

Hi khouloudbelguith,

Screenshot 2019-07-12 at 12 35 54

I don't see anything strange with this

@khouloudbelguith

This comment has been minimized.

Copy link
Contributor

commented Jul 12, 2019

@01park, I think the issue is related to #14608

THanks!

@01park

This comment has been minimized.

Copy link

commented Jul 12, 2019

Hi,

For me I have access to the store again, that gave the error 500. What I did was activate/deactivate EUR in currency. Problem solved

@khouloudbelguith

This comment has been minimized.

Copy link
Contributor

commented Jul 12, 2019

@01park, thanks!
@attractive, can you please try the solution proposed by @01park & check if the issue is solved?

Thanks!

@crisnelyn

This comment has been minimized.

Copy link

commented Jul 12, 2019

ps_currency

@khouloudbelguith

This comment has been minimized.

Copy link
Contributor

commented Jul 12, 2019

@crisnelyn, could you please try to Disable/Enable the Euro currency & feedback.

@01park

This comment has been minimized.

Copy link

commented Jul 12, 2019

And change precision to 2

@crisnelyn

This comment has been minimized.

Copy link

commented Jul 12, 2019

@khouloudbelguith I cannot Disable/Enable the EUR currency because it is the default currency... What I can do it to add a new currency, make it the default one but then I need to manually edit the price of 6000 products... so it is not feasible

My problem is solved thanks to @01park - I didnt change precision to 2 but I got inspired

I added a new currency "USD" and I disabled it, now there is no error 500, everything is working... very weird, very strange... I keep it like this

I have tried to remove the USD currency but the error 500 comes back, I added another currency again and the error disappeared...

now it looks like that

ps_currency

@khouloudbelguith

This comment has been minimized.

Copy link
Contributor

commented Jul 12, 2019

@attractive, any news?

Thanks!

@01park

This comment has been minimized.

Copy link

commented Jul 12, 2019

crisnelyn , the reason I changed the persion to 2 is in my dashboard and stats some numbers also had 6 decimals, by editing this to 2 this was solved.

@presciak

This comment has been minimized.

Copy link

commented Jul 19, 2019

I have a multistore with several subdomains
each subdomain has a separate currency and language
When I make an upgade from 1.7.5.2 to 1.7.6.0 I have an error

  |

Uncaught Exception: Price specification not found for currency: ""
Uncaught PHP Exception PrestaShop\PrestaShop\Core\Localization\Exception\LocalizationException: "Price specification not found for currency: """ at /usr/home/xxx/domains/xxx/public_html/src/Core/Localization/Locale.php line 171

xxx - is my login and domain

Does anyone have a solution to this problem?

@marionf marionf added this to Backlog in PrestaShop 1.7.6 via automation Aug 19, 2019

@colinegin colinegin moved this from Backlog to To do in PrestaShop 1.7.6 Aug 19, 2019

@colinegin colinegin referenced this issue Aug 20, 2019
23 of 39 tasks complete

@jolelievre jolelievre self-assigned this Aug 20, 2019

@jolelievre jolelievre moved this from To do to In progress in PrestaShop 1.7.6 Aug 20, 2019

@jolelievre jolelievre moved this from In progress to To be reviewed in PrestaShop 1.7.6 Aug 20, 2019

@eternoendless eternoendless moved this from To be reviewed to To be tested in PrestaShop 1.7.6 Aug 21, 2019

@sarahdib sarahdib added this to the 1.7.6.1 milestone Aug 22, 2019

@sarahdib sarahdib added Fixed and removed To Do labels Aug 22, 2019

@sarahdib sarahdib moved this from To be tested to To be merged in PrestaShop 1.7.6 Aug 22, 2019

@marionf marionf closed this Aug 23, 2019

PrestaShop 1.7.6 automation moved this from To be merged to Done Aug 23, 2019

@matteolavaggi

This comment has been minimized.

Copy link

commented Aug 23, 2019

Same error on ps 1.7.6 new install after enable new store.

ITs no possible, there is no way to have a working ps

[2019-08-23 13:53:19] request.CRITICAL: Uncaught PHP Exception PrestaShop\PrestaShop\Core\Localization\Exception\LocalizationException: "Price specification not found for currency: "EUR"" at /var/www/htdocs/www.pineappleitaly.com/store/src/Core/Localization/Locale.php line 171 {"exception":"[object] (PrestaShop\PrestaShop\Core\Localization\Exception\LocalizationException(code: 0): Price specification not found for currency: "EUR" at /var/www/htdocs/www.pineappleitaly.com/store/src/Core/Localization/Locale.php:171)"} []

@khouloudbelguith

This comment has been minimized.

Copy link
Contributor

commented Aug 23, 2019

@matteolavaggi, this issue is fixed in the PS1.7.6.1.
Thanks!

@matteolavaggi

This comment has been minimized.

Copy link

commented Aug 23, 2019

@presciak

This comment has been minimized.

Copy link

commented Sep 2, 2019

the store is a multisite with 4 domains
I made updates from 1.7.5.2 to 1.7.6.1
Unfortunately, I still have a 500 error after logging in to the store panel
version php7.1
the update was successful
however, I found in the update logs:

[OK] SQL 1.7.6.1 SET SESSION sql_mode = ''</div>","
[OK] SQL 1.7.6.1 SET NAMES 'utf8'</div>","
[OK] PHP 1.7.6.1 : /* PHP:ps_1761_update_currencies(); */</div>"],"nextErrors":["[INTERNAL] /usr/home/xxx/domains/xxx/public_html/vendor/symfony/symfony/src/Symfony/Component/Console/Terminal.php line 127 - proc_open() has been disabled for security reasons","[INTERNAL] /usr/home/xxx/domains/xxx/public_html/vendor/symfony/symfony/src/Symfony/Component/Console/Terminal.php line 127 - Symfony\Component\Debug\Exception\FatalErrorException: Error: proc_open() has been disabled for security reasons\n#0 {main}"],"error":true,"next":"error"}"

in debug mode mam (screen)

error500

error500_2

in the php logs after the update I found it:

`[02-Sep-2019 22:56:46 Europe/Warsaw] PHP Fatal error: require(): Failed opening required '/usr/home/xxx/domains/xxx/public_html/vendor/composer/../markbaker/matrix/classes/src/functions/adjoint.php' (include_path='/usr/home/xxx/domains/xxx/public_html/vendor/pear/pear_exception:/usr/home/xxx/domains/xxx/public_html/vendor/pear/console_getopt:/usr/home/xxx/domains/xxx/public_html/vendor/pear/pear-core-minimal/src:/usr/home/xxx/domains/xxx/public_html/vendor/pear/archive_tar:.:/usr/local/share/pear') in /usr/home/xxx/domains/xxx/public_html/vendor/composer/autoload_real.php on line 61

[02-Sep-2019 22:57:16 Europe/Paris] PHP Fatal error: proc_open() has been disabled for security reasons in /usr/home/xxx/domains/xxx/public_html/vendor/symfony/symfony/src/Symfony/Component/Console/Terminal.php on line 127`

xxx - is my login and domain

any solution?

@khouloudbelguith

This comment has been minimized.

Copy link
Contributor

commented Sep 3, 2019

Hi @presciak,

This issue is currently closed, can you open a new one with more information about your configuration.
This issue is fixed in the PS1.7.6.1, Please Create a new issue about your problem to understand how to reproduce the issue.
Thanks!

@Kis-shoes

This comment has been minimized.

Copy link

commented Sep 3, 2019

@khouloudbelguith

This comment has been minimized.

Copy link
Contributor

commented Sep 3, 2019

@Kis-shoes, @presciak, Issue created here #15376
Please follow this ticket & provide me the exact information to understand how to reproduce the issue.

Thanks!

@01park

This comment has been minimized.

Copy link

commented Sep 3, 2019

This problem is solved with the fix #15173
You can see the corrected files and upload them to your server. I did this before 1.7.6.1 was released and it worked perfect.

Also don't forget to clean browser history and cache files in prestashop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.