trustpilot / plugin-magento2

Magento 2 plugin for sending invitation data to Trustpilot
MIT License
10 stars 27 forks source link

The store that was requested wasn't found. #43

Closed mateuszbereszczuk closed 5 years ago

mateuszbereszczuk commented 5 years ago

I've installed the module but when I try to access it I get this error

1 exception(s):
Exception #0 (Magento\Framework\Exception\NoSuchEntityException): The store that was requested wasn't found. Verify the store and try again.

Exception #0 (Magento\Framework\Exception\NoSuchEntityException): The store that was requested wasn't found. Verify the store and try again.

#1 Magento\Store\Model\StoreManager->getStore(1) called at [vendor/magento/module-catalog/Model/ResourceModel/Collection/AbstractCollection.php:96]

#2 Magento\Catalog\Model\ResourceModel\Collection\AbstractCollection->setStore(1) called at [vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php:591]

#3 Magento\Catalog\Model\ResourceModel\Product\Collection->setStore(1) called at [generated/code/Magento/Catalog/Model/ResourceModel/Product/Collection/Interceptor.php:128]

#4 Magento\Catalog\Model\ResourceModel\Product\Collection\Interceptor->setStore(1) called at [vendor/trustpilot/module-reviews/Helper/Data.php:208]

There's a lot of stores in my project, and as far as I know, there's no store with an id of 1, why does the module try to access it?

vdabar commented 5 years ago

Sorry for late response, Issue was fixed in the newest release https://github.com/trustpilot/plugin-magento2/commit/3e488d04d2661c03b2f6e02d476e803cd18f1df0. Thank you for reporting it!