tank Posted March 4, 2021 Share Posted March 4, 2021 when I click to view an order I get this. Shop id 0 is invalid. Shop id must be number that is greater than zero. Exception Logs 2 Stack Trace PrestaShop\PrestaShop\Core\Domain\Shop\Exception\ShopException in src/Core/Domain/Shop/ValueObject/ShopGroupId.php (line 68) * @throws ShopException */ private function assertIsGreaterThanZero(int $shopGroupId): void { if (0 >= $shopGroupId) { throw new ShopException( sprintf( 'Shop id %s is invalid. Shop id must be number that is greater than zero.', var_export($shopGroupId, true) ) ); Link to comment Share on other sites More sharing options...
Fly Posted April 19, 2021 Share Posted April 19, 2021 Hello, Have you find the solution ? I'v the same problem. Thx a lot Ludovic Link to comment Share on other sites More sharing options...
popolon Posted May 11, 2021 Share Posted May 11, 2021 Same error this day after doing a migration from Prestashop 1.4 to 1.7 using module MigrationPro - Prestashop Upgrade and Migrate tool Link to comment Share on other sites More sharing options...
Nickz Posted May 11, 2021 Share Posted May 11, 2021 3 hours ago, popolon said: using module MigrationPro What did MigrationPro say to that? Are they aware? Link to comment Share on other sites More sharing options...
tank Posted June 18, 2021 Author Share Posted June 18, 2021 my support for MigrationPro expired. I decided not to upgrade, my version 1.4 with a few good modules works fine. Link to comment Share on other sites More sharing options...
musicmaster Posted June 18, 2021 Share Posted June 18, 2021 Prestashop introduced multishop in version 1.5. It looks like MP doesn't handle the transition well. One option would be to upgrade to 1.5 first and then use MP. Another option would be to check the *_shop tables in 1.7 and to set their id_shop fields to 1 for all records. Link to comment Share on other sites More sharing options...
JulienPct Posted June 16, 2022 Share Posted June 16, 2022 Hello, I have a site (without multishop), and during the partial refund of an order I have this error: An unexpected error occurred. [PrestaShopPrestaShopCoreDomainShopException code 0]: Shop id 0 is invalid. Shop id must be number that is greater than zero. Any idea ? Link to comment Share on other sites More sharing options...
Mediacom87 Posted June 16, 2022 Share Posted June 16, 2022 il y a 7 minutes, JulienPct a dit : Any idea ? Le 18/06/2021 à 2:25 PM, musicmaster a dit : Another option would be to check the *_shop tables in 1.7 and to set their id_shop fields to 1 for all records. Link to comment Share on other sites More sharing options...
JulienPct Posted June 16, 2022 Share Posted June 16, 2022 I actually read the messages above and tried the same method however all my tables are correct, at least the shops are all at 1 Link to comment Share on other sites More sharing options...
Mediacom87 Posted June 16, 2022 Share Posted June 16, 2022 il y a 22 minutes, JulienPct a dit : I actually read the messages above and tried the same method however all my tables are correct, at least the shops are all at 1 This must mean that you do not have the same concern and that it would be better to open your own Topic. 1 Link to comment Share on other sites More sharing options...
musicmaster Posted June 17, 2022 Share Posted June 17, 2022 N 18 hours ago, JulienPct said: An unexpected error occurred. [PrestaShopPrestaShopCoreDomainShopException code 0]: Shop id 0 is invalid. Shop id must be number that is greater than zero. It depends on where in the code the error happened. There must be some file and some line number. So you need to look at that code and make your guesses. It can also be that some query returned an empty result and that that was translated in the code as a zero for the id_shop. 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