hannes01 Posted January 13 Share Posted January 13 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 More sharing options...
hannes01 Posted January 17 Author Share Posted January 17 Any ideas? Thanks. Link to comment Share on other sites More sharing options...
Jovicyr Posted March 10 Share Posted March 10 Hello hannes01, I have exactly the same error. Did-you solve it? I use PS 8.2.0 version. Thanks Link to comment Share on other sites More sharing options...
hannes01 Posted March 10 Author Share Posted March 10 Hi, unfortunately no solution yet. If you find one, could you please share it here? Thanks. Link to comment Share on other sites More sharing options...
ComGrafPL Posted March 10 Share Posted March 10 Do you have any modules, that could cause it? turn of overrides if need it and test with duplicate. Link to comment Share on other sites More sharing options...
Jovicyr Posted March 10 Share Posted March 10 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 More sharing options...
ComGrafPL Posted March 10 Share Posted March 10 Just tested on clean 8.2, no issues. Have two currencies in test store. Have you checked db on that duplicated product if it show proper currency id's? Link to comment Share on other sites More sharing options...
Jovicyr Posted March 10 Share Posted March 10 In which table do I have to check? There is no currency fields in ps_product or ps_product_shop. Link to comment Share on other sites More sharing options...
WisQQ Posted March 11 Share Posted March 11 This issue can be related to missing Context from action hooks. Please paste entire error stack. Link to comment Share on other sites More sharing options...
hannes01 Posted March 15 Author Share Posted March 15 (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! Edited March 15 by hannes01 Better screenshot (see edit history) Link to comment Share on other sites More sharing options...
Knowband Plugins Posted March 15 Share Posted March 15 (edited) Check this. https://github.com/PrestaShop/PrestaShop/pull/37928 Try to apply the fixes as per the changed files. Edited March 15 by Knowband Plugins (see edit history) Link to comment Share on other sites More sharing options...
hannes01 Posted March 15 Author Share Posted March 15 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 Link to comment Share on other sites More sharing options...
Knowband Plugins Posted March 15 Share Posted March 15 Still the same error? i.e. [PrestaShop\PrestaShop\Core\Domain\Currency\Exception\CurrencyConstraintException code 14] As per the debug mode, there is no error as of now. Link to comment Share on other sites More sharing options...
hannes01 Posted March 15 Author Share Posted March 15 (edited) 1 hour ago, Knowband Plugins said: Still the same error? Unfortunately yes. It might be related to the new product page. I just tested with the old product page and the duplication caused no error. Edited March 15 by hannes01 (see edit history) 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