Jump to content

Invalid Currency id: 0


hannes01

Recommended Posts

Hi guys,

when I duplicate a product, I get the following error message:

An unexpected error occurred. [PrestaShop\PrestaShop\Core\Domain\Currency\Exception\CurrencyConstraintException code 14]: Invalid Currency id: 0

What could be the issue?

Thank you!

Link to comment
Share on other sites

  • 1 month later...
9 minutes ago, hannes01 said:

unfortunately no solution yet. If you find one, could you please share it here?

For sure!

5 minutes ago, ComGrafPL said:

Do you have any modules, that could cause it? turn of overrides if need it and test with duplicate.

Already tested. With no success...

If I create a new standard product, and turn it in Combination product, it works.

But from a fresh duplicated product, it crashes.

Link to comment
Share on other sites

Posted (edited)
On 3/11/2025 at 12:50 PM, WisQQ said:

This issue can be related to missing Context from action hooks. Please paste entire error stack.

Hi,

Thank you. I enabled the debug mode and hereby the screenshot of the error. Please let me know if you need any other info from me.

Really appreciate the help, thanks!

 

Duplicate error v2.jpg

Edited by hannes01
Better screenshot (see edit history)
Link to comment
Share on other sites

21 minutes ago, Knowband Plugins said:

Check this. 

https://github.com/PrestaShop/PrestaShop/pull/37928

Try to apply the fixes as per the changed files.

 

Thank you! I applied the fix & cleared cache but unfortunately I still get the error message: An unexpected error occurred. [PrestaShop\PrestaShop\Core\Domain\Currency\Exception\CurrencyConstraintException code 14]: Invalid Currency id: 0

However in debug mode the log is different now (screenshot).

Any ideas? Thanks :)

Duplicate error v3.jpg

Link to comment
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
×
×
  • Create New...