Magento 2.3.0 - Set up multiple websites, stores, and store views












0















I have used this guide to setup multiple websites, stores, and store views. As follows



Multiple websites, stores, and store views



enter image description here



Turned on "Add the store code to the base URL"



enter image description here



Set Base URLS



enter image description here



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}




**










share|improve this question





























    0















    I have used this guide to setup multiple websites, stores, and store views. As follows



    Multiple websites, stores, and store views



    enter image description here



    Turned on "Add the store code to the base URL"



    enter image description here



    Set Base URLS



    enter image description here



    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}




    **










    share|improve this question



























      0












      0








      0








      I have used this guide to setup multiple websites, stores, and store views. As follows



      Multiple websites, stores, and store views



      enter image description here



      Turned on "Add the store code to the base URL"



      enter image description here



      Set Base URLS



      enter image description here



      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}




      **










      share|improve this question
















      I have used this guide to setup multiple websites, stores, and store views. As follows



      Multiple websites, stores, and store views



      enter image description here



      Turned on "Add the store code to the base URL"



      enter image description here



      Set Base URLS



      enter image description here



      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 2 mins ago









      HIren Kadivar

      412110




      412110










      asked 15 mins ago









      user2240778user2240778

      233312




      233312






















          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
          });


          }
          });














          draft saved

          draft discarded


















          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
















          draft saved

          draft discarded




















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          What other Star Trek series did the main TNG cast show up in?

          Berlina muro

          Berlina aerponto