Jump to content

shop id 0 is invalid


Recommended Posts

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)

                )

            );

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

Important Information

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