Magento 2: Requested store is not foundcannot read property 'section loadurl' of undefinedMagento 2.3.0 - The store that was requested wasn't foundRequested store is not foundRequested store not foundMultistore - Magento 2 SetupConfigurable product does not have sub-products magento 2Magento 2: ACL Permission Call Manually for Logged In AdminMagento Upgrade to 2.1.3 Module Disable ErrorMagento 2: Captcha overwrite fatal error on PHP 7Found error when customer tried to login inPDOException: SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost'Magento2.2.4 : Uninstall a theme throw exceptions?Magento 2: Requested store is not found in productError after upgraded to 2.3.0
Why can my keyboard only digest 6 keypresses at a time?
1980s live-action movie where individually-coloured nations on clouds fight
Pre-1972 sci-fi short story or novel: alien(?) tunnel where people try new moves and get destroyed if they're not the correct ones
How to hide rifle during medieval town entrance inspection?
Is it expected that a reader will skip parts of what you write?
Soft question: Examples where lack of mathematical rigour cause security breaches?
Is it possible to have a wealthy country without a middle class?
Arriving at the same result with the opposite hypotheses
Fixing obscure 8080 emulator bug?
Electricity free spaceship
How to handle self harm scars on the arm in work environment?
Active low-pass filters --- good to what frequencies?
Rebus with 20 song titles
Were Alexander the Great and Hephaestion lovers?
What makes Ada the language of choice for the ISS's safety-critical systems?
How did old MS-DOS games utilize various graphic cards?
Cascading Switches. Will it affect performance?
Extreme flexible working hours: how to control people and activities?
Why didn't Voldemort recognize that Dumbledore was affected by his curse?
Wooden cooking layout
Jargon request: "Canonical Form" of a word
Playing a Character as Unobtrusive and Subservient, Yet Not Passive
How can this tool find out registered domains from an IP?
Bent Peugeot Carbolite 103 Frame
Magento 2: Requested store is not found
cannot read property 'section loadurl' of undefinedMagento 2.3.0 - The store that was requested wasn't foundRequested store is not foundRequested store not foundMultistore - Magento 2 SetupConfigurable product does not have sub-products magento 2Magento 2: ACL Permission Call Manually for Logged In AdminMagento Upgrade to 2.1.3 Module Disable ErrorMagento 2: Captcha overwrite fatal error on PHP 7Found error when customer tried to login inPDOException: SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost'Magento2.2.4 : Uninstall a theme throw exceptions?Magento 2: Requested store is not found in productError after upgraded to 2.3.0
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I had two websites with different store and storeviews. I just deleted one website which is not the default one. After deleting it the admin panel page and also the front page shows this error
exception 'MagentoFrameworkExceptionNoSuchEntityException' with message 'Requested store is not found' in C:wampwwwmagentovendormagentomodule-storeModelStoreRepository.php:111 Stack trace: #0
C:wampwwwmagentovendormagentomodule-storeModelStoreManager.php(164): MagentoStoreModelStoreRepository->getById('2') #1 C:wampwwwmagentovargenerationMagentoStoreModelStoreManagerInterfaceProxy.php(119): MagentoStoreModelStoreManager->getStore('2') #2 C:wampwwwmagentovendormagentomodule-storeModelResolverStore.php(29): MagentoStoreModelStoreManagerInterfaceProxy->getStore('2') #3 C:wampwwwmagentovendormagentoframeworkAppConfigScopeCodeResolver.php(49): MagentoStoreModelResolverStore->getScope('2') #4 C:wampwwwmagentovendormagentomodule-configAppConfigSourceRuntimeConfigSource.php(82): MagentoFrameworkAppConfigScopeCodeResolver->resolve('stores', '2') #5 C:wampwwwmagentovendormagentomodule-configAppConfigSourceRuntimeConfigSource.php(58): MagentoConfigAppConfigSourceRuntimeConfigSource->loadConfig() #6 C:wampwwwmagentovendormagentoframeworkAppConfigConfigSourceAggregated.php(40): MagentoConfigAppConfigSourceRuntimeConfigSource->get('') #7 C:wampwwwmagentovargenerationMagentoFrameworkAppConfigConfigSourceAggregatedProxy.php(95): MagentoFrameworkAppConfigConfigSourceAggregated->get('') #8 C:wampwwwmagentovendormagentomodule-configAppConfigTypeSystem.php(98): MagentoFrameworkAppConfigConfigSourceAggregatedProxy->get() #9 C:wampwwwmagentovendormagentoframeworkAppConfig.php(139): MagentoConfigAppConfigTypeSystem->get('default/web/sec...') #10 C:wampwwwmagentovendormagentoframeworkAppConfig.php(90): MagentoFrameworkAppConfig->get('system', 'default/web/sec...') #11 C:wampwwwmagentovendormagentoframeworkAppConfig.php(103): MagentoFrameworkAppConfig->getValue('web/secure/use_...', 'default', NULL) #12 C:wampwwwmagentovendormagentomodule-storeModelHeaderProviderHsts.php(48): MagentoFrameworkAppConfig->isSetFlag('web/secure/use_...') #13 C:wampwwwmagentovendormagentoframeworkAppResponseHeaderManager.php(41): MagentoStoreModelHeaderProviderHsts->canApply() #14 C:wampwwwmagentovendormagentoframeworkInterceptionInterceptor.php(123): MagentoFrameworkAppResponseHeaderManager->beforeSendResponse(Object(MagentoFrameworkAppResponseHttpInterceptor)) #15 C:wampwwwmagentovargenerationMagentoFrameworkAppResponseHttpInterceptor.php(117): MagentoFrameworkAppResponseHttpInterceptor->___callPlugins('sendResponse', Array, Array) #16 C:wampwwwmagentovendormagentoframeworkAppHttp.php(185): MagentoFrameworkAppResponseHttpInterceptor->sendResponse() #17 C:wampwwwmagentovendormagentoframeworkAppHttp.php(156): MagentoFrameworkAppHttp->handleDeveloperMode(Object(MagentoFrameworkAppBootstrap), Object(MagentoFrameworkExceptionNoSuchEntityException)) #18 C:wampwwwmagentovendormagentoframeworkAppBootstrap.php(263): MagentoFrameworkAppHttp->catchException(Object(MagentoFrameworkAppBootstrap), Object(MagentoFrameworkExceptionNoSuchEntityException)) #19 C:wampwwwmagentoindex.php(39): MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttp)) #20 main
What should I do now? I tried
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
php bin/magento indexer:reindex
from command prompt. But it shows the same error in command prompt also. The cmd error is :
C:wampbinphpphp5.6.30>php C:wampwwwmagentobinmagento indexer:reindex
Xdebug requires Zend Engine API version 220121212.
The Zend Engine API version 220131226 which is installed, is newer.
Contact Derick Rethans at http://xdebug.org/docs/faq#api for a later version of Xdebug.
[MagentoFrameworkExceptionNoSuchEntityException]
Requested store is not found
indexer:reindex [index1] ... [indexN]
websites exception stores magento-2.1.3
add a comment |
I had two websites with different store and storeviews. I just deleted one website which is not the default one. After deleting it the admin panel page and also the front page shows this error
exception 'MagentoFrameworkExceptionNoSuchEntityException' with message 'Requested store is not found' in C:wampwwwmagentovendormagentomodule-storeModelStoreRepository.php:111 Stack trace: #0
C:wampwwwmagentovendormagentomodule-storeModelStoreManager.php(164): MagentoStoreModelStoreRepository->getById('2') #1 C:wampwwwmagentovargenerationMagentoStoreModelStoreManagerInterfaceProxy.php(119): MagentoStoreModelStoreManager->getStore('2') #2 C:wampwwwmagentovendormagentomodule-storeModelResolverStore.php(29): MagentoStoreModelStoreManagerInterfaceProxy->getStore('2') #3 C:wampwwwmagentovendormagentoframeworkAppConfigScopeCodeResolver.php(49): MagentoStoreModelResolverStore->getScope('2') #4 C:wampwwwmagentovendormagentomodule-configAppConfigSourceRuntimeConfigSource.php(82): MagentoFrameworkAppConfigScopeCodeResolver->resolve('stores', '2') #5 C:wampwwwmagentovendormagentomodule-configAppConfigSourceRuntimeConfigSource.php(58): MagentoConfigAppConfigSourceRuntimeConfigSource->loadConfig() #6 C:wampwwwmagentovendormagentoframeworkAppConfigConfigSourceAggregated.php(40): MagentoConfigAppConfigSourceRuntimeConfigSource->get('') #7 C:wampwwwmagentovargenerationMagentoFrameworkAppConfigConfigSourceAggregatedProxy.php(95): MagentoFrameworkAppConfigConfigSourceAggregated->get('') #8 C:wampwwwmagentovendormagentomodule-configAppConfigTypeSystem.php(98): MagentoFrameworkAppConfigConfigSourceAggregatedProxy->get() #9 C:wampwwwmagentovendormagentoframeworkAppConfig.php(139): MagentoConfigAppConfigTypeSystem->get('default/web/sec...') #10 C:wampwwwmagentovendormagentoframeworkAppConfig.php(90): MagentoFrameworkAppConfig->get('system', 'default/web/sec...') #11 C:wampwwwmagentovendormagentoframeworkAppConfig.php(103): MagentoFrameworkAppConfig->getValue('web/secure/use_...', 'default', NULL) #12 C:wampwwwmagentovendormagentomodule-storeModelHeaderProviderHsts.php(48): MagentoFrameworkAppConfig->isSetFlag('web/secure/use_...') #13 C:wampwwwmagentovendormagentoframeworkAppResponseHeaderManager.php(41): MagentoStoreModelHeaderProviderHsts->canApply() #14 C:wampwwwmagentovendormagentoframeworkInterceptionInterceptor.php(123): MagentoFrameworkAppResponseHeaderManager->beforeSendResponse(Object(MagentoFrameworkAppResponseHttpInterceptor)) #15 C:wampwwwmagentovargenerationMagentoFrameworkAppResponseHttpInterceptor.php(117): MagentoFrameworkAppResponseHttpInterceptor->___callPlugins('sendResponse', Array, Array) #16 C:wampwwwmagentovendormagentoframeworkAppHttp.php(185): MagentoFrameworkAppResponseHttpInterceptor->sendResponse() #17 C:wampwwwmagentovendormagentoframeworkAppHttp.php(156): MagentoFrameworkAppHttp->handleDeveloperMode(Object(MagentoFrameworkAppBootstrap), Object(MagentoFrameworkExceptionNoSuchEntityException)) #18 C:wampwwwmagentovendormagentoframeworkAppBootstrap.php(263): MagentoFrameworkAppHttp->catchException(Object(MagentoFrameworkAppBootstrap), Object(MagentoFrameworkExceptionNoSuchEntityException)) #19 C:wampwwwmagentoindex.php(39): MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttp)) #20 main
What should I do now? I tried
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
php bin/magento indexer:reindex
from command prompt. But it shows the same error in command prompt also. The cmd error is :
C:wampbinphpphp5.6.30>php C:wampwwwmagentobinmagento indexer:reindex
Xdebug requires Zend Engine API version 220121212.
The Zend Engine API version 220131226 which is installed, is newer.
Contact Derick Rethans at http://xdebug.org/docs/faq#api for a later version of Xdebug.
[MagentoFrameworkExceptionNoSuchEntityException]
Requested store is not found
indexer:reindex [index1] ... [indexN]
websites exception stores magento-2.1.3
Remove var folder and check it again.
– Suresh Chikani
Jan 24 '17 at 10:33
share the error which command promt show to you.
– Dhiren Vasoya
Jan 25 '17 at 3:04
@DhirenVasoya : Added the error in question
– Zammuuz
Jan 25 '17 at 4:22
add a comment |
I had two websites with different store and storeviews. I just deleted one website which is not the default one. After deleting it the admin panel page and also the front page shows this error
exception 'MagentoFrameworkExceptionNoSuchEntityException' with message 'Requested store is not found' in C:wampwwwmagentovendormagentomodule-storeModelStoreRepository.php:111 Stack trace: #0
C:wampwwwmagentovendormagentomodule-storeModelStoreManager.php(164): MagentoStoreModelStoreRepository->getById('2') #1 C:wampwwwmagentovargenerationMagentoStoreModelStoreManagerInterfaceProxy.php(119): MagentoStoreModelStoreManager->getStore('2') #2 C:wampwwwmagentovendormagentomodule-storeModelResolverStore.php(29): MagentoStoreModelStoreManagerInterfaceProxy->getStore('2') #3 C:wampwwwmagentovendormagentoframeworkAppConfigScopeCodeResolver.php(49): MagentoStoreModelResolverStore->getScope('2') #4 C:wampwwwmagentovendormagentomodule-configAppConfigSourceRuntimeConfigSource.php(82): MagentoFrameworkAppConfigScopeCodeResolver->resolve('stores', '2') #5 C:wampwwwmagentovendormagentomodule-configAppConfigSourceRuntimeConfigSource.php(58): MagentoConfigAppConfigSourceRuntimeConfigSource->loadConfig() #6 C:wampwwwmagentovendormagentoframeworkAppConfigConfigSourceAggregated.php(40): MagentoConfigAppConfigSourceRuntimeConfigSource->get('') #7 C:wampwwwmagentovargenerationMagentoFrameworkAppConfigConfigSourceAggregatedProxy.php(95): MagentoFrameworkAppConfigConfigSourceAggregated->get('') #8 C:wampwwwmagentovendormagentomodule-configAppConfigTypeSystem.php(98): MagentoFrameworkAppConfigConfigSourceAggregatedProxy->get() #9 C:wampwwwmagentovendormagentoframeworkAppConfig.php(139): MagentoConfigAppConfigTypeSystem->get('default/web/sec...') #10 C:wampwwwmagentovendormagentoframeworkAppConfig.php(90): MagentoFrameworkAppConfig->get('system', 'default/web/sec...') #11 C:wampwwwmagentovendormagentoframeworkAppConfig.php(103): MagentoFrameworkAppConfig->getValue('web/secure/use_...', 'default', NULL) #12 C:wampwwwmagentovendormagentomodule-storeModelHeaderProviderHsts.php(48): MagentoFrameworkAppConfig->isSetFlag('web/secure/use_...') #13 C:wampwwwmagentovendormagentoframeworkAppResponseHeaderManager.php(41): MagentoStoreModelHeaderProviderHsts->canApply() #14 C:wampwwwmagentovendormagentoframeworkInterceptionInterceptor.php(123): MagentoFrameworkAppResponseHeaderManager->beforeSendResponse(Object(MagentoFrameworkAppResponseHttpInterceptor)) #15 C:wampwwwmagentovargenerationMagentoFrameworkAppResponseHttpInterceptor.php(117): MagentoFrameworkAppResponseHttpInterceptor->___callPlugins('sendResponse', Array, Array) #16 C:wampwwwmagentovendormagentoframeworkAppHttp.php(185): MagentoFrameworkAppResponseHttpInterceptor->sendResponse() #17 C:wampwwwmagentovendormagentoframeworkAppHttp.php(156): MagentoFrameworkAppHttp->handleDeveloperMode(Object(MagentoFrameworkAppBootstrap), Object(MagentoFrameworkExceptionNoSuchEntityException)) #18 C:wampwwwmagentovendormagentoframeworkAppBootstrap.php(263): MagentoFrameworkAppHttp->catchException(Object(MagentoFrameworkAppBootstrap), Object(MagentoFrameworkExceptionNoSuchEntityException)) #19 C:wampwwwmagentoindex.php(39): MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttp)) #20 main
What should I do now? I tried
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
php bin/magento indexer:reindex
from command prompt. But it shows the same error in command prompt also. The cmd error is :
C:wampbinphpphp5.6.30>php C:wampwwwmagentobinmagento indexer:reindex
Xdebug requires Zend Engine API version 220121212.
The Zend Engine API version 220131226 which is installed, is newer.
Contact Derick Rethans at http://xdebug.org/docs/faq#api for a later version of Xdebug.
[MagentoFrameworkExceptionNoSuchEntityException]
Requested store is not found
indexer:reindex [index1] ... [indexN]
websites exception stores magento-2.1.3
I had two websites with different store and storeviews. I just deleted one website which is not the default one. After deleting it the admin panel page and also the front page shows this error
exception 'MagentoFrameworkExceptionNoSuchEntityException' with message 'Requested store is not found' in C:wampwwwmagentovendormagentomodule-storeModelStoreRepository.php:111 Stack trace: #0
C:wampwwwmagentovendormagentomodule-storeModelStoreManager.php(164): MagentoStoreModelStoreRepository->getById('2') #1 C:wampwwwmagentovargenerationMagentoStoreModelStoreManagerInterfaceProxy.php(119): MagentoStoreModelStoreManager->getStore('2') #2 C:wampwwwmagentovendormagentomodule-storeModelResolverStore.php(29): MagentoStoreModelStoreManagerInterfaceProxy->getStore('2') #3 C:wampwwwmagentovendormagentoframeworkAppConfigScopeCodeResolver.php(49): MagentoStoreModelResolverStore->getScope('2') #4 C:wampwwwmagentovendormagentomodule-configAppConfigSourceRuntimeConfigSource.php(82): MagentoFrameworkAppConfigScopeCodeResolver->resolve('stores', '2') #5 C:wampwwwmagentovendormagentomodule-configAppConfigSourceRuntimeConfigSource.php(58): MagentoConfigAppConfigSourceRuntimeConfigSource->loadConfig() #6 C:wampwwwmagentovendormagentoframeworkAppConfigConfigSourceAggregated.php(40): MagentoConfigAppConfigSourceRuntimeConfigSource->get('') #7 C:wampwwwmagentovargenerationMagentoFrameworkAppConfigConfigSourceAggregatedProxy.php(95): MagentoFrameworkAppConfigConfigSourceAggregated->get('') #8 C:wampwwwmagentovendormagentomodule-configAppConfigTypeSystem.php(98): MagentoFrameworkAppConfigConfigSourceAggregatedProxy->get() #9 C:wampwwwmagentovendormagentoframeworkAppConfig.php(139): MagentoConfigAppConfigTypeSystem->get('default/web/sec...') #10 C:wampwwwmagentovendormagentoframeworkAppConfig.php(90): MagentoFrameworkAppConfig->get('system', 'default/web/sec...') #11 C:wampwwwmagentovendormagentoframeworkAppConfig.php(103): MagentoFrameworkAppConfig->getValue('web/secure/use_...', 'default', NULL) #12 C:wampwwwmagentovendormagentomodule-storeModelHeaderProviderHsts.php(48): MagentoFrameworkAppConfig->isSetFlag('web/secure/use_...') #13 C:wampwwwmagentovendormagentoframeworkAppResponseHeaderManager.php(41): MagentoStoreModelHeaderProviderHsts->canApply() #14 C:wampwwwmagentovendormagentoframeworkInterceptionInterceptor.php(123): MagentoFrameworkAppResponseHeaderManager->beforeSendResponse(Object(MagentoFrameworkAppResponseHttpInterceptor)) #15 C:wampwwwmagentovargenerationMagentoFrameworkAppResponseHttpInterceptor.php(117): MagentoFrameworkAppResponseHttpInterceptor->___callPlugins('sendResponse', Array, Array) #16 C:wampwwwmagentovendormagentoframeworkAppHttp.php(185): MagentoFrameworkAppResponseHttpInterceptor->sendResponse() #17 C:wampwwwmagentovendormagentoframeworkAppHttp.php(156): MagentoFrameworkAppHttp->handleDeveloperMode(Object(MagentoFrameworkAppBootstrap), Object(MagentoFrameworkExceptionNoSuchEntityException)) #18 C:wampwwwmagentovendormagentoframeworkAppBootstrap.php(263): MagentoFrameworkAppHttp->catchException(Object(MagentoFrameworkAppBootstrap), Object(MagentoFrameworkExceptionNoSuchEntityException)) #19 C:wampwwwmagentoindex.php(39): MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttp)) #20 main
What should I do now? I tried
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
php bin/magento indexer:reindex
from command prompt. But it shows the same error in command prompt also. The cmd error is :
C:wampbinphpphp5.6.30>php C:wampwwwmagentobinmagento indexer:reindex
Xdebug requires Zend Engine API version 220121212.
The Zend Engine API version 220131226 which is installed, is newer.
Contact Derick Rethans at http://xdebug.org/docs/faq#api for a later version of Xdebug.
[MagentoFrameworkExceptionNoSuchEntityException]
Requested store is not found
indexer:reindex [index1] ... [indexN]
websites exception stores magento-2.1.3
websites exception stores magento-2.1.3
edited Jul 20 '17 at 18:34
Rafael Corrêa Gomes
4,88523367
4,88523367
asked Jan 24 '17 at 10:25
ZammuuzZammuuz
2121314
2121314
Remove var folder and check it again.
– Suresh Chikani
Jan 24 '17 at 10:33
share the error which command promt show to you.
– Dhiren Vasoya
Jan 25 '17 at 3:04
@DhirenVasoya : Added the error in question
– Zammuuz
Jan 25 '17 at 4:22
add a comment |
Remove var folder and check it again.
– Suresh Chikani
Jan 24 '17 at 10:33
share the error which command promt show to you.
– Dhiren Vasoya
Jan 25 '17 at 3:04
@DhirenVasoya : Added the error in question
– Zammuuz
Jan 25 '17 at 4:22
Remove var folder and check it again.
– Suresh Chikani
Jan 24 '17 at 10:33
Remove var folder and check it again.
– Suresh Chikani
Jan 24 '17 at 10:33
share the error which command promt show to you.
– Dhiren Vasoya
Jan 25 '17 at 3:04
share the error which command promt show to you.
– Dhiren Vasoya
Jan 25 '17 at 3:04
@DhirenVasoya : Added the error in question
– Zammuuz
Jan 25 '17 at 4:22
@DhirenVasoya : Added the error in question
– Zammuuz
Jan 25 '17 at 4:22
add a comment |
8 Answers
8
active
oldest
votes
I just recently came across this same situation after migrating from Magento 1.6.1.0 to 2.1.4 and hope my answer can be of assistance. The problem came from deleting multiple stores 96 of them to be exact. I tried all the other answers here but was still getting the same error.
The fix for me was removing 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';
I re-installed my magento and now this issue is not coming. Thanks for your help :) . Now i'm facing another issue. Can you plz look into this question magento.stackexchange.com/questions/160707/…
– Zammuuz
Feb 21 '17 at 5:36
add a comment |
You need to run following query in your database, and then try to open website.
SET FOREIGN_KEY_CHECKS=0;
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';
SET FOREIGN_KEY_CHECKS=1;
No this didn't solved the issue. :(
– Zammuuz
Jan 25 '17 at 2:17
This is the only thing that worked for me!
– Wildcard27
Apr 29 '17 at 2:18
Thank you very much Dhiren Vasoya, it worked for me to. Tested on Magento 2.2
– Andhi Irawan
Jan 24 '18 at 13:09
@Dhiren Vasoya what this command actually do ?
– ephemeral
Feb 8 '18 at 12:09
Some times dua to some reason, default store_id may be changes, So above command set it default again, and magento working fine.
– Dhiren Vasoya
Feb 8 '18 at 14:09
|
show 1 more comment
In this case, I have to restore that tables store, store_group, store_website. As it was before the migration Magento 2
add a comment |
The error occurred for me during a reindex of Catalog Search while using the Elasticsearch engine. Magento 2.0.0 Commerce (and possibly other versions) have a bug resolved by the following patch.
diff --git a/vendor/magento/module-elasticsearch/Model/Adapter/BatchDataMapper/PriceFieldsProvider.php b/vendor/magento/module-elasticsearch/Model/Adapter/BatchDataMapper/PriceFieldsProvider.php
index aa89657..f5e8a23 100644
--- a/vendor/magento/module-elasticsearch/Model/Adapter/BatchDataMapper/PriceFieldsProvider.php
+++ b/vendor/magento/module-elasticsearch/Model/Adapter/BatchDataMapper/PriceFieldsProvider.php
@@ -50,9 +50,8 @@ class PriceFieldsProvider implements AdditionalFieldsProviderInterface
*/
public function getFields(array $productIds, $storeId)
{
- $websiteId = $this->storeManager->getStore($storeId)->getWebsiteId();
$priceData = $this->dataProvider->getSearchableAttribute('price')
- ? $this->resourceIndex->getPriceIndexData($productIds, $websiteId)
+ ? $this->resourceIndex->getPriceIndexData($productIds, $storeId)
: [];
$fields = [];
add a comment |
Confirm your store id and delete all the records of store which doesn't exist 'cms_page_store' & 'cms_block_store'...
add a comment |
in my case , magento 1.9 upgrade to magento 2.3
I re-added the store item.
add a comment |
It's a bug in Magento 2 already fixed in develop.
All query results to tables store
, store_group
, store_websites
are being cached. The problem occurs because cache isn't cleaned properly after store, store group or website is added/deleted.
To get a fix see changes in app/code/Magento/Store/etc/di.xml
and app/code/Magento/Store/Model/StoreManager.php
.
It must resolve the issue.
What does "To get a fix see changes in..." mean?
– Adam Lavery
Dec 15 '17 at 9:26
add a comment |
If anyone faces this similar issue. Run the following commands in your 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';
7
@Dhiren provided this answer months prior to you accepting it as your own solution.
– themanwhoknowstheman
Nov 12 '17 at 17:33
add a comment |
protected by Community♦ Sep 28 '17 at 12:49
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
8 Answers
8
active
oldest
votes
8 Answers
8
active
oldest
votes
active
oldest
votes
active
oldest
votes
I just recently came across this same situation after migrating from Magento 1.6.1.0 to 2.1.4 and hope my answer can be of assistance. The problem came from deleting multiple stores 96 of them to be exact. I tried all the other answers here but was still getting the same error.
The fix for me was removing 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';
I re-installed my magento and now this issue is not coming. Thanks for your help :) . Now i'm facing another issue. Can you plz look into this question magento.stackexchange.com/questions/160707/…
– Zammuuz
Feb 21 '17 at 5:36
add a comment |
I just recently came across this same situation after migrating from Magento 1.6.1.0 to 2.1.4 and hope my answer can be of assistance. The problem came from deleting multiple stores 96 of them to be exact. I tried all the other answers here but was still getting the same error.
The fix for me was removing 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';
I re-installed my magento and now this issue is not coming. Thanks for your help :) . Now i'm facing another issue. Can you plz look into this question magento.stackexchange.com/questions/160707/…
– Zammuuz
Feb 21 '17 at 5:36
add a comment |
I just recently came across this same situation after migrating from Magento 1.6.1.0 to 2.1.4 and hope my answer can be of assistance. The problem came from deleting multiple stores 96 of them to be exact. I tried all the other answers here but was still getting the same error.
The fix for me was removing 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';
I just recently came across this same situation after migrating from Magento 1.6.1.0 to 2.1.4 and hope my answer can be of assistance. The problem came from deleting multiple stores 96 of them to be exact. I tried all the other answers here but was still getting the same error.
The fix for me was removing 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';
answered Feb 21 '17 at 5:09
Yamaha32088Yamaha32088
227414
227414
I re-installed my magento and now this issue is not coming. Thanks for your help :) . Now i'm facing another issue. Can you plz look into this question magento.stackexchange.com/questions/160707/…
– Zammuuz
Feb 21 '17 at 5:36
add a comment |
I re-installed my magento and now this issue is not coming. Thanks for your help :) . Now i'm facing another issue. Can you plz look into this question magento.stackexchange.com/questions/160707/…
– Zammuuz
Feb 21 '17 at 5:36
I re-installed my magento and now this issue is not coming. Thanks for your help :) . Now i'm facing another issue. Can you plz look into this question magento.stackexchange.com/questions/160707/…
– Zammuuz
Feb 21 '17 at 5:36
I re-installed my magento and now this issue is not coming. Thanks for your help :) . Now i'm facing another issue. Can you plz look into this question magento.stackexchange.com/questions/160707/…
– Zammuuz
Feb 21 '17 at 5:36
add a comment |
You need to run following query in your database, and then try to open website.
SET FOREIGN_KEY_CHECKS=0;
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';
SET FOREIGN_KEY_CHECKS=1;
No this didn't solved the issue. :(
– Zammuuz
Jan 25 '17 at 2:17
This is the only thing that worked for me!
– Wildcard27
Apr 29 '17 at 2:18
Thank you very much Dhiren Vasoya, it worked for me to. Tested on Magento 2.2
– Andhi Irawan
Jan 24 '18 at 13:09
@Dhiren Vasoya what this command actually do ?
– ephemeral
Feb 8 '18 at 12:09
Some times dua to some reason, default store_id may be changes, So above command set it default again, and magento working fine.
– Dhiren Vasoya
Feb 8 '18 at 14:09
|
show 1 more comment
You need to run following query in your database, and then try to open website.
SET FOREIGN_KEY_CHECKS=0;
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';
SET FOREIGN_KEY_CHECKS=1;
No this didn't solved the issue. :(
– Zammuuz
Jan 25 '17 at 2:17
This is the only thing that worked for me!
– Wildcard27
Apr 29 '17 at 2:18
Thank you very much Dhiren Vasoya, it worked for me to. Tested on Magento 2.2
– Andhi Irawan
Jan 24 '18 at 13:09
@Dhiren Vasoya what this command actually do ?
– ephemeral
Feb 8 '18 at 12:09
Some times dua to some reason, default store_id may be changes, So above command set it default again, and magento working fine.
– Dhiren Vasoya
Feb 8 '18 at 14:09
|
show 1 more comment
You need to run following query in your database, and then try to open website.
SET FOREIGN_KEY_CHECKS=0;
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';
SET FOREIGN_KEY_CHECKS=1;
You need to run following query in your database, and then try to open website.
SET FOREIGN_KEY_CHECKS=0;
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';
SET FOREIGN_KEY_CHECKS=1;
answered Jan 24 '17 at 11:41
Dhiren VasoyaDhiren Vasoya
4,74051946
4,74051946
No this didn't solved the issue. :(
– Zammuuz
Jan 25 '17 at 2:17
This is the only thing that worked for me!
– Wildcard27
Apr 29 '17 at 2:18
Thank you very much Dhiren Vasoya, it worked for me to. Tested on Magento 2.2
– Andhi Irawan
Jan 24 '18 at 13:09
@Dhiren Vasoya what this command actually do ?
– ephemeral
Feb 8 '18 at 12:09
Some times dua to some reason, default store_id may be changes, So above command set it default again, and magento working fine.
– Dhiren Vasoya
Feb 8 '18 at 14:09
|
show 1 more comment
No this didn't solved the issue. :(
– Zammuuz
Jan 25 '17 at 2:17
This is the only thing that worked for me!
– Wildcard27
Apr 29 '17 at 2:18
Thank you very much Dhiren Vasoya, it worked for me to. Tested on Magento 2.2
– Andhi Irawan
Jan 24 '18 at 13:09
@Dhiren Vasoya what this command actually do ?
– ephemeral
Feb 8 '18 at 12:09
Some times dua to some reason, default store_id may be changes, So above command set it default again, and magento working fine.
– Dhiren Vasoya
Feb 8 '18 at 14:09
No this didn't solved the issue. :(
– Zammuuz
Jan 25 '17 at 2:17
No this didn't solved the issue. :(
– Zammuuz
Jan 25 '17 at 2:17
This is the only thing that worked for me!
– Wildcard27
Apr 29 '17 at 2:18
This is the only thing that worked for me!
– Wildcard27
Apr 29 '17 at 2:18
Thank you very much Dhiren Vasoya, it worked for me to. Tested on Magento 2.2
– Andhi Irawan
Jan 24 '18 at 13:09
Thank you very much Dhiren Vasoya, it worked for me to. Tested on Magento 2.2
– Andhi Irawan
Jan 24 '18 at 13:09
@Dhiren Vasoya what this command actually do ?
– ephemeral
Feb 8 '18 at 12:09
@Dhiren Vasoya what this command actually do ?
– ephemeral
Feb 8 '18 at 12:09
Some times dua to some reason, default store_id may be changes, So above command set it default again, and magento working fine.
– Dhiren Vasoya
Feb 8 '18 at 14:09
Some times dua to some reason, default store_id may be changes, So above command set it default again, and magento working fine.
– Dhiren Vasoya
Feb 8 '18 at 14:09
|
show 1 more comment
In this case, I have to restore that tables store, store_group, store_website. As it was before the migration Magento 2
add a comment |
In this case, I have to restore that tables store, store_group, store_website. As it was before the migration Magento 2
add a comment |
In this case, I have to restore that tables store, store_group, store_website. As it was before the migration Magento 2
In this case, I have to restore that tables store, store_group, store_website. As it was before the migration Magento 2
edited Jul 20 '17 at 18:33
Rafael Corrêa Gomes
4,88523367
4,88523367
answered Jul 20 '17 at 18:32
Israel GuidoIsrael Guido
2318
2318
add a comment |
add a comment |
The error occurred for me during a reindex of Catalog Search while using the Elasticsearch engine. Magento 2.0.0 Commerce (and possibly other versions) have a bug resolved by the following patch.
diff --git a/vendor/magento/module-elasticsearch/Model/Adapter/BatchDataMapper/PriceFieldsProvider.php b/vendor/magento/module-elasticsearch/Model/Adapter/BatchDataMapper/PriceFieldsProvider.php
index aa89657..f5e8a23 100644
--- a/vendor/magento/module-elasticsearch/Model/Adapter/BatchDataMapper/PriceFieldsProvider.php
+++ b/vendor/magento/module-elasticsearch/Model/Adapter/BatchDataMapper/PriceFieldsProvider.php
@@ -50,9 +50,8 @@ class PriceFieldsProvider implements AdditionalFieldsProviderInterface
*/
public function getFields(array $productIds, $storeId)
{
- $websiteId = $this->storeManager->getStore($storeId)->getWebsiteId();
$priceData = $this->dataProvider->getSearchableAttribute('price')
- ? $this->resourceIndex->getPriceIndexData($productIds, $websiteId)
+ ? $this->resourceIndex->getPriceIndexData($productIds, $storeId)
: [];
$fields = [];
add a comment |
The error occurred for me during a reindex of Catalog Search while using the Elasticsearch engine. Magento 2.0.0 Commerce (and possibly other versions) have a bug resolved by the following patch.
diff --git a/vendor/magento/module-elasticsearch/Model/Adapter/BatchDataMapper/PriceFieldsProvider.php b/vendor/magento/module-elasticsearch/Model/Adapter/BatchDataMapper/PriceFieldsProvider.php
index aa89657..f5e8a23 100644
--- a/vendor/magento/module-elasticsearch/Model/Adapter/BatchDataMapper/PriceFieldsProvider.php
+++ b/vendor/magento/module-elasticsearch/Model/Adapter/BatchDataMapper/PriceFieldsProvider.php
@@ -50,9 +50,8 @@ class PriceFieldsProvider implements AdditionalFieldsProviderInterface
*/
public function getFields(array $productIds, $storeId)
{
- $websiteId = $this->storeManager->getStore($storeId)->getWebsiteId();
$priceData = $this->dataProvider->getSearchableAttribute('price')
- ? $this->resourceIndex->getPriceIndexData($productIds, $websiteId)
+ ? $this->resourceIndex->getPriceIndexData($productIds, $storeId)
: [];
$fields = [];
add a comment |
The error occurred for me during a reindex of Catalog Search while using the Elasticsearch engine. Magento 2.0.0 Commerce (and possibly other versions) have a bug resolved by the following patch.
diff --git a/vendor/magento/module-elasticsearch/Model/Adapter/BatchDataMapper/PriceFieldsProvider.php b/vendor/magento/module-elasticsearch/Model/Adapter/BatchDataMapper/PriceFieldsProvider.php
index aa89657..f5e8a23 100644
--- a/vendor/magento/module-elasticsearch/Model/Adapter/BatchDataMapper/PriceFieldsProvider.php
+++ b/vendor/magento/module-elasticsearch/Model/Adapter/BatchDataMapper/PriceFieldsProvider.php
@@ -50,9 +50,8 @@ class PriceFieldsProvider implements AdditionalFieldsProviderInterface
*/
public function getFields(array $productIds, $storeId)
{
- $websiteId = $this->storeManager->getStore($storeId)->getWebsiteId();
$priceData = $this->dataProvider->getSearchableAttribute('price')
- ? $this->resourceIndex->getPriceIndexData($productIds, $websiteId)
+ ? $this->resourceIndex->getPriceIndexData($productIds, $storeId)
: [];
$fields = [];
The error occurred for me during a reindex of Catalog Search while using the Elasticsearch engine. Magento 2.0.0 Commerce (and possibly other versions) have a bug resolved by the following patch.
diff --git a/vendor/magento/module-elasticsearch/Model/Adapter/BatchDataMapper/PriceFieldsProvider.php b/vendor/magento/module-elasticsearch/Model/Adapter/BatchDataMapper/PriceFieldsProvider.php
index aa89657..f5e8a23 100644
--- a/vendor/magento/module-elasticsearch/Model/Adapter/BatchDataMapper/PriceFieldsProvider.php
+++ b/vendor/magento/module-elasticsearch/Model/Adapter/BatchDataMapper/PriceFieldsProvider.php
@@ -50,9 +50,8 @@ class PriceFieldsProvider implements AdditionalFieldsProviderInterface
*/
public function getFields(array $productIds, $storeId)
{
- $websiteId = $this->storeManager->getStore($storeId)->getWebsiteId();
$priceData = $this->dataProvider->getSearchableAttribute('price')
- ? $this->resourceIndex->getPriceIndexData($productIds, $websiteId)
+ ? $this->resourceIndex->getPriceIndexData($productIds, $storeId)
: [];
$fields = [];
answered May 18 '18 at 22:36
Joe SheltonJoe Shelton
386
386
add a comment |
add a comment |
Confirm your store id and delete all the records of store which doesn't exist 'cms_page_store' & 'cms_block_store'...
add a comment |
Confirm your store id and delete all the records of store which doesn't exist 'cms_page_store' & 'cms_block_store'...
add a comment |
Confirm your store id and delete all the records of store which doesn't exist 'cms_page_store' & 'cms_block_store'...
Confirm your store id and delete all the records of store which doesn't exist 'cms_page_store' & 'cms_block_store'...
answered Mar 18 at 9:29
Arvind HathiyaArvind Hathiya
325
325
add a comment |
add a comment |
in my case , magento 1.9 upgrade to magento 2.3
I re-added the store item.
add a comment |
in my case , magento 1.9 upgrade to magento 2.3
I re-added the store item.
add a comment |
in my case , magento 1.9 upgrade to magento 2.3
I re-added the store item.
in my case , magento 1.9 upgrade to magento 2.3
I re-added the store item.
answered May 31 at 10:26
Patrick-PengPatrick-Peng
6610
6610
add a comment |
add a comment |
It's a bug in Magento 2 already fixed in develop.
All query results to tables store
, store_group
, store_websites
are being cached. The problem occurs because cache isn't cleaned properly after store, store group or website is added/deleted.
To get a fix see changes in app/code/Magento/Store/etc/di.xml
and app/code/Magento/Store/Model/StoreManager.php
.
It must resolve the issue.
What does "To get a fix see changes in..." mean?
– Adam Lavery
Dec 15 '17 at 9:26
add a comment |
It's a bug in Magento 2 already fixed in develop.
All query results to tables store
, store_group
, store_websites
are being cached. The problem occurs because cache isn't cleaned properly after store, store group or website is added/deleted.
To get a fix see changes in app/code/Magento/Store/etc/di.xml
and app/code/Magento/Store/Model/StoreManager.php
.
It must resolve the issue.
What does "To get a fix see changes in..." mean?
– Adam Lavery
Dec 15 '17 at 9:26
add a comment |
It's a bug in Magento 2 already fixed in develop.
All query results to tables store
, store_group
, store_websites
are being cached. The problem occurs because cache isn't cleaned properly after store, store group or website is added/deleted.
To get a fix see changes in app/code/Magento/Store/etc/di.xml
and app/code/Magento/Store/Model/StoreManager.php
.
It must resolve the issue.
It's a bug in Magento 2 already fixed in develop.
All query results to tables store
, store_group
, store_websites
are being cached. The problem occurs because cache isn't cleaned properly after store, store group or website is added/deleted.
To get a fix see changes in app/code/Magento/Store/etc/di.xml
and app/code/Magento/Store/Model/StoreManager.php
.
It must resolve the issue.
edited Feb 13 '17 at 10:35
answered Feb 13 '17 at 10:29
yaronishyaronish
62223
62223
What does "To get a fix see changes in..." mean?
– Adam Lavery
Dec 15 '17 at 9:26
add a comment |
What does "To get a fix see changes in..." mean?
– Adam Lavery
Dec 15 '17 at 9:26
What does "To get a fix see changes in..." mean?
– Adam Lavery
Dec 15 '17 at 9:26
What does "To get a fix see changes in..." mean?
– Adam Lavery
Dec 15 '17 at 9:26
add a comment |
If anyone faces this similar issue. Run the following commands in your 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';
7
@Dhiren provided this answer months prior to you accepting it as your own solution.
– themanwhoknowstheman
Nov 12 '17 at 17:33
add a comment |
If anyone faces this similar issue. Run the following commands in your 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';
7
@Dhiren provided this answer months prior to you accepting it as your own solution.
– themanwhoknowstheman
Nov 12 '17 at 17:33
add a comment |
If anyone faces this similar issue. Run the following commands in your 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';
If anyone faces this similar issue. Run the following commands in your 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';
answered Jun 21 '17 at 5:17
ZammuuzZammuuz
2121314
2121314
7
@Dhiren provided this answer months prior to you accepting it as your own solution.
– themanwhoknowstheman
Nov 12 '17 at 17:33
add a comment |
7
@Dhiren provided this answer months prior to you accepting it as your own solution.
– themanwhoknowstheman
Nov 12 '17 at 17:33
7
7
@Dhiren provided this answer months prior to you accepting it as your own solution.
– themanwhoknowstheman
Nov 12 '17 at 17:33
@Dhiren provided this answer months prior to you accepting it as your own solution.
– themanwhoknowstheman
Nov 12 '17 at 17:33
add a comment |
protected by Community♦ Sep 28 '17 at 12:49
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
Remove var folder and check it again.
– Suresh Chikani
Jan 24 '17 at 10:33
share the error which command promt show to you.
– Dhiren Vasoya
Jan 25 '17 at 3:04
@DhirenVasoya : Added the error in question
– Zammuuz
Jan 25 '17 at 4:22