FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Magento\Framework\Exception\NoSuchEntityException: No such entity. in /var/www/html/dev/vendor/magento/module-store/Model/WebsiteRepository.php:80 /var/www/html/dev/vendor/magento/module-store/Model/StoreResolver/Website.php(46): Magento\Store\Model\WebsiteRepository->get('dev') 1 /var/www/html/dev/vendor/magento/module-store/Model/StoreResolver.php(140): Magento\Store\Model\StoreResolver\Website->getAllowedStoreIds('dev') 2 /var/www/html/dev/vendor/magento/module-store/Model/StoreResolver.php(126): Magento\Store\Model\StoreResolver->readStoresData() 3 /var/www/html/dev/vendor/magento/module-store/Model/StoreResolver.php(89): Magento\Store\Model\StoreResolver->getStoresData() 4 /var/www/html/dev/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Store\Model\StoreResolver->getCurrentStoreId() 5 /var/www/html/dev/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Store\Model\Stor" while reading response header from upstream, client:, server: local.dev.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.1-fpm.sock:", host: "local.dev.com"

I'm facing this issue, when the magento EE V2.2.0 installing in my local system. Anyone, Please let me know how to fix this issue??

  • 1
    remove your generation and cache and try again. some times they create a such cases Commented Feb 22, 2018 at 8:03
  • It is not worked out
    – Nandy
    Commented Feb 22, 2018 at 11:28

1 Answer 1


First of all search the location from where the exception is coming then comment the 'try & catch' code block then it will show you exact error for further debugging. Eg: suppose this your code :

 try {
      $product = $this->productRepository->getById($product);
     } catch (NoSuchEntityException $e) {
      return false;

then comment like:

 //try {
      $product = $this->productRepository->getById($product);
    // } catch (NoSuchEntityException $e) {
      return false;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.