Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requested store id was not found #689

Closed
Naberdz opened this issue May 21, 2019 · 1 comment
Closed

Requested store id was not found #689

Naberdz opened this issue May 21, 2019 · 1 comment
Labels

Comments

@Naberdz
Copy link

Naberdz commented May 21, 2019

found similar issue here: #63
but accepted solution didn't work for me.

old magento store was a multistore : english store id 1 and dutch store id 10, later english store was deleted so only one store is remaining 10.

but after we migrate data we get error : The store that was requested wasn't found. Verify the store and try again.

here is report:

array (
0 => 'The store that was requested wasn't found. Verify the store and try again.',
1 => '
#1 Magento\Store\Model\StoreRepository->getActiveStoreById(1) called at [vendor/magento/module-store/Model/StoreResolver.php:181]
#2 Magento\Store\Model\StoreResolver->getDefaultStoreById(1) called at [vendor/magento/module-store/Model/StoreResolver.php:126]
#3 Magento\Store\Model\StoreResolver->getCurrentStoreId() called at [vendor/magento/module-store/Model/StoreManager.php:160]
#4 Magento\Store\Model\StoreManager->getStore(NULL) called at [generated/code/Magento/Store/Model/StoreManagerInterface/Proxy.php:119]
#5 Magento\Store\Model\StoreManagerInterface\Proxy->getStore(NULL) called at [vendor/magento/module-store/Model/Resolver/Store.php:30]
#6 Magento\Store\Model\Resolver\Store->getScope(NULL) called at [vendor/magento/framework/App/Config/ScopeCodeResolver.php:49]
#7 Magento\Framework\App\Config\ScopeCodeResolver->resolve('stores', NULL) called at [vendor/magento/framework/App/Config.php:69]
#8 Magento\Framework\App\Config->getValue('web/cookie/cooki...', 'stores') called at [vendor/magento/framework/Session/Config.php:155]
#9 Magento\Framework\Session\Config->__construct(&Magento\Framework\ValidatorFactory#000000001ae16a77000000001ae74a53#, &Magento\Framework\App\Config#000000001ae16bdd000000001ae74a53#, &Magento\Framework\Stdlib\StringUtils#000000001ae16be2000000001ae74a53#, &Magento\Framework\App\Request\Http#000000001ae16be4000000001ae74a53#, &Magento\Framework\Filesystem#000000001ae16b5b000000001ae74a53#, &Magento\Framework\App\DeploymentConfig#000000001ae16b71000000001ae74a53#, 'store', 'web/cookie/cooki...') called at [vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:116]
#10 Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\Framewor...', array(&Magento\Framework\ValidatorFactory#000000001ae16a77000000001ae74a53#, &Magento\Framework\App\Config#000000001ae16bdd000000001ae74a53#, &Magento\Framework\Stdlib\StringUtils#000000001ae16be2000000001ae74a53#, &Magento\Framework\App\Request\Http#000000001ae16be4000000001ae74a53#, &Magento\Framework\Filesystem#000000001ae16b5b000000001ae74a53#, &Magento\Framework\App\DeploymentConfig#000000001ae16b71000000001ae74a53#, 'store', 'web/cookie/cooki...')) called at [vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:66]
#11 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\Framewor...') called at [vendor/magento/framework/ObjectManager/ObjectManager.php:70]
#12 Magento\Framework\ObjectManager\ObjectManager->get('Magento\Framewor...') called at [vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:160]
#13 Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(array('instance' => 'Magento\Framewor...'), 'Magento\Framewor...', NULL, 'sessionConfig', 'Magento\Framewor...') called at [vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:246]
#14 Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime('Magento\Framewor...', array(array('request', 'Magento\Framewor...', true, NULL), array('sidResolver', 'Magento\Framewor...', true, NULL), array('sessionConfig', 'Magento\Framewor...', true, NULL), array('saveHandler', 'Magento\Framewor...', true, NULL), array('validator', 'Magento\Framewor...', true, NULL), array('storage', 'Magento\Framewor...', true, NULL), array('cookieManager', 'Magento\Framewor...', true, NULL), array('cookieMetadataFa...', 'Magento\Framewor...', true, NULL), array('appState', 'Magento\Framewor...', true, NULL), array('sessionStartChec...', 'Magento\Framewor...', false, NULL)), array()) called at [vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:34]
#15 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments('Magento\Framewor...', array(array('request', 'Magento\Framewor...', true, NULL), array('sidResolver', 'Magento\Framewor...', true, NULL), array('sessionConfig', 'Magento\Framewor...', true, NULL), array('saveHandler', 'Magento\Framewor...', true, NULL), array('validator', 'Magento\Framewor...', true, NULL), array('storage', 'Magento\Framewor...', true, NULL), array('cookieManager', 'Magento\Framewor...', true, NULL), array('cookieMetadataFa...', 'Magento\Framewor...', true, NULL), array('appState', 'Magento\Framewor...', true, NULL), array('sessionStartChec...', 'Magento\Framewor...', false, NULL)), array()) called at [vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:59]
#16 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\Framewor...') called at [vendor/magento/framework/ObjectManager/ObjectManager.php:70]
#17 Magento\Framework\ObjectManager\ObjectManager->get('Magento\Framewor...') called at [vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:160]
#18 Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(array('instance' => 'Magento\Framewor...'), 'Magento\Framewor...', NULL, 'session', 'Magento\Framewor...') called at [vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:246]
#19 Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime('Magento\Framewor...', array(array('mathRandom', 'Magento\Framewor...', true, NULL), array('session', 'Magento\Framewor...', true, NULL), array('escaper', 'Magento\Framewor...', true, NULL)), array()) called at [vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:34]
#20 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments('Magento\Framewor...', array(array('mathRandom', 'Magento\Framewor...', true, NULL), array('session', 'Magento\Framewor...', true, NULL), array('escaper', 'Magento\Framewor...', true, NULL)), array()) called at [vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:59]
#21 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\Framewor...') called at [vendor/magento/framework/ObjectManager/ObjectManager.php:70]
#22 Magento\Framework\ObjectManager\ObjectManager->get('Magento\Framewor...') called at [vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:160]
#23 Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(array('instance' => 'Magento\Framewor...'), 'Magento\Framewor...', NULL, 'formKey', 'Magento\Framewor...') called at [vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:246]
#24 Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime('Magento\Framewor...', array(array('formKey', 'Magento\Framewor...', true, NULL)), array()) called at [vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:34]
#25 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments('Magento\Framewor...', array(array('formKey', 'Magento\Framewor...', true, NULL)), array()) called at [vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:59]
#26 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\Framewor...') called at [vendor/magento/framework/ObjectManager/ObjectManager.php:70]
#27 Magento\Framework\ObjectManager\ObjectManager->get('Magento\Framewor...') called at [vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:160]
#28 Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(array('instance' => 'Magento\Framewor...'), 'Magento\Framewor...', NULL, 'formKeyValidator', 'CsrfRequestValid...') called at [vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:246]
#29 Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime('CsrfRequestValid...', array(array('formKeyValidator', 'Magento\Framewor...', true, NULL), array('redirectFactory', 'Magento\Framewor...', true, NULL), array('appState', 'Magento\Framewor...', true, NULL)), array()) called at [vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:34]
#30 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments('CsrfRequestValid...', array(array('formKeyValidator', 'Magento\Framewor...', true, NULL), array('redirectFactory', 'Magento\Framewor...', true, NULL), array('appState', 'Magento\Framewor...', true, NULL)), array()) called at [vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:59]
#31 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('CsrfRequestValid...') called at [vendor/magento/framework/ObjectManager/ObjectManager.php:70]
#32 Magento\Framework\ObjectManager\ObjectManager->get('CsrfRequestValid...') called at [vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:196]
#33 Magento\Framework\ObjectManager\Factory\AbstractFactory->parseArray(array('csrf_validator' => array('instance' => 'CsrfRequestValid...'), 'http_method_vali...' => array('instance' => 'Magento\Framewor...'))) called at [vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:172]
#34 Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(array('csrf_validator' => array('instance' => 'CsrfRequestValid...'), 'http_method_vali...' => array('instance' => 'Magento\Framewor...')), NULL, NULL, 'validators', 'RequestValidator') called at [vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:246]
#35 Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime('RequestValidator', array(array('validators', NULL, true, NULL)), array('validators' => array('csrf_validator' => array('instance' => 'CsrfRequestValid...'), 'http_method_vali...' => array('instance' => 'Magento\Framewor...')))) called at [vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:34]
#36 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments('RequestValidator', array(array('validators', NULL, true, NULL)), array('validators' => array('csrf_validator' => array('instance' => 'CsrfRequestValid...'), 'http_method_vali...' => array('instance' => 'Magento\Framewor...')))) called at [vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:59]
#37 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('RequestValidator') called at [vendor/magento/framework/ObjectManager/ObjectManager.php:70]
#38 Magento\Framework\ObjectManager\ObjectManager->get('RequestValidator') called at [vendor/magento/framework/App/FrontController.php:71]
#39 Magento\Framework\App\FrontController->__construct(&Magento\Framework\App\RouterList#000000001ae16a75000000001ae74a53#, &Magento\Framework\App\Response\Http\Interceptor#000000001ae16ba4000000001ae74a53#, NULL, NULL, NULL) called at [generated/code/Magento/Framework/App/FrontController/Interceptor.php:14]
#40 Magento\Framework\App\FrontController\Interceptor->__construct(&Magento\Framework\App\RouterList#000000001ae16a75000000001ae74a53#, &Magento\Framework\App\Response\Http\Interceptor#000000001ae16ba4000000001ae74a53#, NULL, NULL, NULL) called at [vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:116]
#41 Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\Framewor...', array(&Magento\Framework\App\RouterList#000000001ae16a75000000001ae74a53#, &Magento\Framework\App\Response\Http\Interceptor#000000001ae16ba4000000001ae74a53#, NULL, NULL, NULL)) called at [vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:66]
#42 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\Framewor...') called at [vendor/magento/framework/ObjectManager/ObjectManager.php:70]
#43 Magento\Framework\ObjectManager\ObjectManager->get('Magento\Framewor...') called at [vendor/magento/framework/App/Http.php:135]
#44 Magento\Framework\App\Http->launch() called at [generated/code/Magento/Framework/App/Http/Interceptor.php:24]
#45 Magento\Framework\App\Http\Interceptor->launch() called at [vendor/magento/framework/App/Bootstrap.php:258]
#46 Magento\Framework\App\Bootstrap->run(&Magento\Framework\App\Http\Interceptor#000000001ae16ba6000000001ae74a53#) called at [index.php:39]
',
'url' => '/',
'script_name' => '/index.php',
)

any idea on how to solve this issue ?

@Naberdz
Copy link
Author

Naberdz commented May 21, 2019

Solved my issue by disabling store id 10 in database and setting correct category id in default store with id 0, afterwards was able to login in magento backend. reenabled my store in magento and set it to be default and everything worked just fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants