Magento 2.3.0 - Set up multiple websites, stores, and store views
I have used this guide to setup multiple websites, stores, and store views. As follows
Multiple websites, stores, and store views
Turned on "Add the store code to the base URL"
Set Base URLS
Everything works fine except that the default website should have been the the US shown in the screenshot above, with website and store ID of 1.
Now to access the US site you need yo go to xyz.com/us instead of it showing as the base url itself.
Is there something I'm missing in this setup? Cause the default home page xyz.com is now showing the following error.
**
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}
**
magento2 multistore magento2.3 home multi-website
add a comment |
I have used this guide to setup multiple websites, stores, and store views. As follows
Multiple websites, stores, and store views
Turned on "Add the store code to the base URL"
Set Base URLS
Everything works fine except that the default website should have been the the US shown in the screenshot above, with website and store ID of 1.
Now to access the US site you need yo go to xyz.com/us instead of it showing as the base url itself.
Is there something I'm missing in this setup? Cause the default home page xyz.com is now showing the following error.
**
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}
**
magento2 multistore magento2.3 home multi-website
add a comment |
I have used this guide to setup multiple websites, stores, and store views. As follows
Multiple websites, stores, and store views
Turned on "Add the store code to the base URL"
Set Base URLS
Everything works fine except that the default website should have been the the US shown in the screenshot above, with website and store ID of 1.
Now to access the US site you need yo go to xyz.com/us instead of it showing as the base url itself.
Is there something I'm missing in this setup? Cause the default home page xyz.com is now showing the following error.
**
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}
**
magento2 multistore magento2.3 home multi-website
I have used this guide to setup multiple websites, stores, and store views. As follows
Multiple websites, stores, and store views
Turned on "Add the store code to the base URL"
Set Base URLS
Everything works fine except that the default website should have been the the US shown in the screenshot above, with website and store ID of 1.
Now to access the US site you need yo go to xyz.com/us instead of it showing as the base url itself.
Is there something I'm missing in this setup? Cause the default home page xyz.com is now showing the following error.
**
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}
**
magento2 multistore magento2.3 home multi-website
magento2 multistore magento2.3 home multi-website
edited 2 mins ago
HIren Kadivar
412110
412110
asked 15 mins ago
user2240778user2240778
233312
233312
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f260765%2fmagento-2-3-0-set-up-multiple-websites-stores-and-store-views%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f260765%2fmagento-2-3-0-set-up-multiple-websites-stores-and-store-views%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown