cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.3.1 Multi-store Setup

Magento 2.3.1 Multi-store Setup

So i am in the process of trying to work out how to get multi site setup working. My host is siteground and they have the following tutorial

 

https://www.siteground.com/tutorials/magento/multistore/

 

One thing i find odd is that there is no official guidance from Magento on how to set these things up, and that most of the tutorials out there appear to be specific to hosts. Anyway...

 

I have worked my way through this tutorial, following each step and i am recieving the error seen on this page

 

http://topkingstore.co.uk/

The website with code /store_id/2/ that was requested wasn't found. Verify the website and try again.

 Now, the code i am supposed to use is in the url from the store view edit page

https://alsalf.uk/admin123/admin/system_store/editStore/store_id/2/key/88eb12cb7749223c028e69b9e8d9b...

 

and that this goes into the index.php in the 

$params[\Magento\Store\Model\StoreManager:Smiley TongueARAM_RUN_CODE] = '/store_id/2/';

 

now the problem i have is that even though the code is set correctly and everything else appears to be setup correctly the actual page is returning the error stated.

 

Does anyone have an idea where i can start to look to get this resolved as it appears to be yet another bug in the magento 2 software.

1 REPLY 1

Re: Magento 2.3.1 Multi-store Setup

Hi paul,

 

You can remove the old store data from inside of the "core_config_data". The problem is that when the Magento is loading the run time configuration data it is finding the old stores and trying to resolve them. Before cleaning the data from the database I HIGHLY recommend you run the SELECT query below to make sure you delete the correct stores.

SELECT * FROM core_config_data WHERE scope = 'stores';

WARNING: MAKE SURE TO BACKUP YOUR DATABASE BEFORE RUNNING THIS!

DELETE FROM core_config_data WHERE scope_id != 1 AND scope = 'stores';

 if issue solved,Click Kudos & Accept as Solution