I have created multiple stores with multiple domains but when I select a store from frontend than giving below error.

I have attached the screenshot of the error.

enter image description here

Store Cookies does not set on multiple domains

I have debugged and checked the code and print($fromStoreCode) but give blank. Magento\Store\Controller\Store\SwitchAction.php

$fromStoreCode = $this->_request->getParam(
echo "<pre>";

The store that was requested wasn't found. Verify the store and try again.

Thanks in advance.

  • Please check my attached screenshot. Commented Jan 24, 2020 at 8:59

1 Answer 1


ìs the store activated in the backend?

if yes, try this query in the database:

UPDATE `store` SET store_id = 0 WHERE code='admin';
UPDATE `store_group` SET group_id = 0 WHERE name='Default';
UPDATE `store_website` SET website_id = 0 WHERE code='admin';
UPDATE `customer_group` SET customer_group_id = 0 WHERE customer_group_code='NOT LOGGED IN';
  • I have updated my question please check once more time. I have also checked your answer but does not work for me. Commented Jan 27, 2020 at 13:09

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.