3

I have a multi website | Store | Store View setup on one magento 2.3.0 install, setup using this guide.

For example

  • xyz.com
  • xyz.com/us
  • xyz.com/uk

As of late the main site xyz.com gives the following error, this only happens on the home page, other pages on the main site works fine, example xyz.com/testproduct or xyz.com/testcategory

MagentoFrameworkExceptionNoSuchEntityException: The store that was
requested wasn't found. Verify the store and try again. in
/home/xyz/m230.xyz.com/vendor/magento/module-store/Model/StoreRepository.php:75
Stack trace: #0
/home/xyz/m230.xyz.com/vendor/magento/module-store/Model/StoreManager.php(168):
MagentoStoreModelStoreRepository->get('') #1
/home/xyz/m230.xyz.com/generated/code/Magento/Store/Model/StoreManagerInterface/Proxy.php(119):
MagentoStoreModelStoreManager->getStore('') #2
/home/xyz/m230.xyz.com/vendor/magento/module-store/Model/Resolver/Store.php(30):
MagentoStoreModelStoreManagerInterfaceProxy->getStore(NULL) #3
/home/xyz/m230.xyz.com/vendor/magento/framework/App/Config/ScopeCodeResolver.php(49):
MagentoStoreModelResolverStore->getScope(NULL) #4
/home/xyz/m230.xyz.com/vendor/magento/framework/App/Config.php(69):
MagentoFrameworkAppConfigScopeCodeResolver->resolve('stores',
NULL) #5
/home/xyz/m230.xyz.com/vendor/magento/framework/Interception/Interceptor.php(58): MagentoFrameworkAppConfig->getValue('dev/debug/debug...', 'stores',
NULL) #6
/home/xyz/m230.xyz.com/vendor/magento/framework/Interception/Interceptor.php(138): MagentoFrameworkAppConfigInterceptor->___callParent('getValue',
Array) #7
/home/xyz/m230.xyz.com/app/code/WeltPixel/Quickview/Plugin/ScopeConfig.php(38):
MagentoFrameworkAppConfigInterceptor->MagentoFrameworkInterception{closure}('dev/debug/debug...',
'store', NULL) #8
/home/xyz/m230.xyz.com/vendor/magento/framework/Interception/Interceptor.php(135): WeltPixelQuickviewPluginScopeConfig->aroundGetValue(Object(MagentoFrameworkAppConfigInterceptor),
Object(Closure), 'dev/debug/debug...', 'store') #9
/home/xyz/m230.xyz.com/vendor/magento/framework/Interception/Interceptor.php(153): MagentoFrameworkAppConfigInterceptor->MagentoFrameworkInterception{closure}('dev/debug/debug...',
'store') #10
/home/xyz/m230.xyz.com/generated/code/Magento/Framework/App/Config/Interceptor.php(26):
MagentoFrameworkAppConfigInterceptor->___callPlugins('getValue',
Array, NULL) #11
/home/xyz/m230.xyz.com/vendor/magento/module-developer/Model/Logger/Handler/Debug.php(63):
MagentoFrameworkAppConfigInterceptor->getValue('dev/debug/debug...',
'store') #12
/home/xyz/m230.xyz.com/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(31):
MagentoDeveloperModelLoggerHandlerDebug->isHandling(Array) #13
/home/xyz/m230.xyz.com/vendor/monolog/monolog/src/Monolog/Logger.php(344):
MonologHandlerAbstractProcessingHandler->handle(Array) #14
/home/xyz/m230.xyz.com/vendor/magento/framework/Logger/Monolog.php(48):
MonologLogger->addRecord(400, 'The store that ...', Array) #15
/home/xyz/m230.xyz.com/vendor/monolog/monolog/src/Monolog/Logger.php(707):
MagentoFrameworkLoggerMonolog->addRecord(400, 'The store that ...',
Array) #16
/home/xyz/m230.xyz.com/vendor/magento/framework/App/Bootstrap.php(263):
MonologLogger->error('The store that ...') #17
/home/xyz/m230.xyz.com/index.php(39):
MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttpInterceptor))
# 18 {main}

What is causing this? and how do I fix it? any help is appreciated.

Note- I changed the main url xyz.com and xyz.com/us are the same and share the same website code US if this makes any difference.

UPDATE:

Disabled Welpixel. Also tried the solution in this article, that didn't fix it either (reverted changes).

Get the following error now

MagentoFrameworkExceptionNoSuchEntityException: The store that was
requested wasn't found. Verify the store and try again. in
/home/xyz/m230.xyz.com/vendor/magento/module-store/Model/StoreRepository.php:75
Stack trace: #0
/home/xyz/m230.xyz.com/vendor/magento/module-store/Model/StoreManager.php(168):
MagentoStoreModelStoreRepository->get('') #1
/home/xyz/m230.xyz.com/generated/code/Magento/Store/Model/StoreManagerInterface/Proxy.php(119):
MagentoStoreModelStoreManager->getStore('') #2
/home/xyz/m230.xyz.com/vendor/magento/module-store/Model/Resolver/Store.php(30):
MagentoStoreModelStoreManagerInterfaceProxy->getStore(NULL) #3
/home/xyz/m230.xyz.com/vendor/magento/framework/App/Config/ScopeCodeResolver.php(49):
MagentoStoreModelResolverStore->getScope(NULL) #4
/home/xyz/m230.xyz.com/vendor/magento/framework/App/Config.php(69):
MagentoFrameworkAppConfigScopeCodeResolver->resolve('stores',
NULL) #5
/home/xyz/m230.xyz.com/vendor/magento/module-developer/Model/Logger/Handler/Debug.php(63):
MagentoFrameworkAppConfig->getValue('dev/debug/debug...', 'stores')
# 6 /home/xyz/m230.xyz.com/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(31):
MagentoDeveloperModelLoggerHandlerDebug->isHandling(Array) #7
/home/xyz/m230.xyz.com/vendor/monolog/monolog/src/Monolog/Logger.php(344):
MonologHandlerAbstractProcessingHandler->handle(Array) #8
/home/xyz/m230.xyz.com/vendor/magento/framework/Logger/Monolog.php(48):
MonologLogger->addRecord(400, 'The store that ...', Array) #9
/home/xyz/m230.xyz.com/vendor/monolog/monolog/src/Monolog/Logger.php(707):
MagentoFrameworkLoggerMonolog->addRecord(400, 'The store that ...',
Array) #10
/home/xyz/m230.xyz.com/vendor/magento/framework/App/Bootstrap.php(263):
MonologLogger->error('The store that ...') #11
/home/xyz/m230.xyz.com/index.php(39):
MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttpInterceptor))
# 12 {main}
4

2 Answers 2

0

The error was being caused because of an extension conflict, disabling it, resolved the issue, the extension in question is Mageplaza Seo url (Mageplaza_SeoUrl) in case anyone else runs into this issue.

0

Although not the case for OP, I had the issue as well due when trying to set up multiple stores on separate domains. Hope it helps someone.

Turns out that in nginx configuration the passed variable $MAGE_RUN_CODE together with $MAGE_RUN_TYPE store should be the store view code, not the store code.

See example below: enter image description here

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.