There are no commands defined in the “cache” namespace Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manaraconfiguration for DB connection is absentI made clone of Magento 2.2.4 Enterprise edition from Integration branch but gives error There are no commands defined in the “cache” namespaceno commands defined in the “setup” namespaceCategory ids, where are they defined in the admin?There are no commands defined in the “setup” namespace : Magento 2Magento 2 - There are no commands defined in the “setup” namespace on windowsWhat are the best practices for Magento CRON (& cache cleaning)?Cache Types are invalidatedThere are no commands defined in the “setup:static-content” namespaceMagento 2: Checkout Success Page not loading if payment option is cash or wire transferMagento 2 admin panel not logged inI made clone of Magento 2.2.4 Enterprise edition from Integration branch but gives error There are no commands defined in the “cache” namespaceSome modules use code versions newer or older than the database. First update the module code, then run 'setup:upgrade'

Is there any hidden 'W' sound after 'comment' in : Comment est-elle?

Seek and ye shall find

A strange hotel

Why did C use the -> operator instead of reusing the . operator?

Why does the Cisco show run command not show the full version, while the show version command does?

Multiple fireplaces in an apartment building?

Raising a bilingual kid. When should we introduce the majority language?

Why do games have consumables?

A faster way to compute the largest prime factor

How long after the last departure shall the airport stay open for an emergency return?

Is accepting an invalid credit card number a security issue?

I preordered a game on my Xbox while on the home screen of my friend's account. Which of us owns the game?

Can you stand up from being prone using Skirmisher outside of your turn?

What's the difference between using dependency injection with a container and using a service locator?

What is this word supposed to be?

Protagonist's race is hidden - should I reveal it?

What do you call the part of a novel that is not dialog?

A Paper Record is What I Hamper

All ASCII characters with a given bit count

finding a tangent line to a parabola

c++ diamond problem - How to call base method only once

Prove the alternating sum of a decreasing sequence converging to 0 is Cauchy.

How to get even lighting when using flash for group photos near wall?

What is it called when you ride around on your front wheel?



There are no commands defined in the “cache” namespace



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manaraconfiguration for DB connection is absentI made clone of Magento 2.2.4 Enterprise edition from Integration branch but gives error There are no commands defined in the “cache” namespaceno commands defined in the “setup” namespaceCategory ids, where are they defined in the admin?There are no commands defined in the “setup” namespace : Magento 2Magento 2 - There are no commands defined in the “setup” namespace on windowsWhat are the best practices for Magento CRON (& cache cleaning)?Cache Types are invalidatedThere are no commands defined in the “setup:static-content” namespaceMagento 2: Checkout Success Page not loading if payment option is cash or wire transferMagento 2 admin panel not logged inI made clone of Magento 2.2.4 Enterprise edition from Integration branch but gives error There are no commands defined in the “cache” namespaceSome modules use code versions newer or older than the database. First update the module code, then run 'setup:upgrade'



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








14















Update



Everything is working now but There are no commands defined in the "cache" namespace is still there. I tried chmod 777 -R var/generation, didn't fix a thing. AFAIK no module is enabled



 public_html]# bin/magento module:status
List of enabled modules:
Nosto_Tagging

List of disabled modules:
Magento_Store
Magento_AdvancedPricingImportExport
Magento_Directory
Magento_Theme
Magento_Backend
Magento_Backup
Magento_Eav
Magento_Customer
Magento_BundleImportExport
Magento_AdminNotification
Magento_CacheInvalidate
Magento_Indexer
Magento_Cms
Magento_CatalogImportExport
Magento_Catalog
Magento_Rule
Magento_Msrp
Magento_Search
Magento_Bundle
Magento_Quote
Magento_CatalogUrlRewrite
Magento_Widget
Magento_SalesSequence
Magento_CheckoutAgreements
Magento_Payment
Magento_Downloadable
Magento_CmsUrlRewrite
Magento_Config
Magento_ConfigurableImportExport
Magento_CatalogInventory
Magento_SampleData
Magento_Contact
Magento_Cookie
Magento_Cron
Magento_CurrencySymbol
Magento_CatalogSearch
Magento_CustomerImportExport
Magento_CustomerSampleData
Magento_Deploy
Magento_Developer
Magento_Dhl
Magento_Authorization
Magento_User
Magento_ImportExport
Magento_Sales
Magento_CatalogRule
Magento_Email
Magento_EncryptionKey
Magento_Fedex
Magento_GiftMessage
Magento_Checkout
Magento_GoogleAnalytics
Magento_GoogleOptimizer
Magento_GroupedImportExport
Magento_GroupedProduct
Magento_Tax
Magento_DownloadableImportExport
Magento_Braintree
Magento_Integration
Magento_LayeredNavigation
Magento_Marketplace
Magento_MediaStorage
Magento_ConfigurableProduct
Magento_MsrpSampleData
Magento_Multishipping
Magento_NewRelicReporting
Magento_Newsletter
Magento_OfflinePayments
Magento_SalesRule
Magento_OfflineShipping
Magento_PageCache
Magento_Captcha
Magento_Paypal
Magento_Persistent
Magento_ProductAlert
Magento_Weee
Magento_ProductVideo
Magento_CatalogSampleData
Magento_Reports
Magento_RequireJs
Magento_Review
Magento_BundleSampleData
Magento_Rss
Magento_DownloadableSampleData
Magento_Authorizenet
Magento_OfflineShippingSampleData
Magento_ConfigurableSampleData
Magento_SalesSampleData
Magento_ProductLinksSampleData
Magento_ThemeSampleData
Magento_ReviewSampleData
Magento_SendFriend
Magento_Ui
Magento_Sitemap
Magento_CatalogRuleConfigurable
Magento_Swagger
Magento_Swatches
Magento_SwatchesSampleData
Magento_GroupedProductSampleData
Magento_TaxImportExport
Magento_TaxSampleData
Magento_GoogleAdwords
Magento_CmsSampleData
Magento_Translation
Magento_Shipping
Magento_Ups
Magento_UrlRewrite
Magento_CatalogRuleSampleData
Magento_Usps
Magento_Variable
Magento_Version
Magento_Webapi
Magento_WebapiSecurity
Magento_SalesRuleSampleData
Magento_CatalogWidget
Magento_WidgetSampleData
Magento_Wishlist
Magento_WishlistSampleData
Sm_BasicProducts
Sm_Categories
Sm_Deals
Sm_ImageSlider
Sm_ListingTabs
Sm_Market
Sm_MegaMenu
Sm_QuickView


The issue was there long before I installed nosto, I initially installed SM quickstart then upgraded it the latest magento version. if I clear the cache from admin area, I see no error. I need to fix it otherwise I'll never be able to install any module or fix this



Update now I disabled nosto.










share|improve this question
























  • if the images are too big, please remove them and just leave a link to imgur instead

    – Lynob
    Jun 23 '16 at 21:03











  • @ProxiBlue no I havent, will try it this weekend and let u know, thanks for the info, i believe your solution will solve it

    – Lynob
    Jun 27 '16 at 14:09











  • I have had this issue, or variations of the same, many times whilst coding my first m2 module. In all instances, it was caused by my own code, usualky some issue in the module.xml. Considering that, i would venture some 3rd part moduke is havibg an issue. May need an update. Figure you will have to systematically disable 3rd party modules to find the culprit(s)

    – ProxiBlue
    Jun 27 '16 at 14:12











  • Sorry. Accidentalky deleted my comment. So just reposred.

    – ProxiBlue
    Jun 27 '16 at 14:13











  • @ProxiBlue thats fine and if a module can cause that then the error is definitely caused by a module since i'm using a custom magento version backed by SM market, it has its own theme and a trillion extension i don't know what for, seems i have to disable them 1 by 1

    – Lynob
    Jun 27 '16 at 14:17

















14















Update



Everything is working now but There are no commands defined in the "cache" namespace is still there. I tried chmod 777 -R var/generation, didn't fix a thing. AFAIK no module is enabled



 public_html]# bin/magento module:status
List of enabled modules:
Nosto_Tagging

List of disabled modules:
Magento_Store
Magento_AdvancedPricingImportExport
Magento_Directory
Magento_Theme
Magento_Backend
Magento_Backup
Magento_Eav
Magento_Customer
Magento_BundleImportExport
Magento_AdminNotification
Magento_CacheInvalidate
Magento_Indexer
Magento_Cms
Magento_CatalogImportExport
Magento_Catalog
Magento_Rule
Magento_Msrp
Magento_Search
Magento_Bundle
Magento_Quote
Magento_CatalogUrlRewrite
Magento_Widget
Magento_SalesSequence
Magento_CheckoutAgreements
Magento_Payment
Magento_Downloadable
Magento_CmsUrlRewrite
Magento_Config
Magento_ConfigurableImportExport
Magento_CatalogInventory
Magento_SampleData
Magento_Contact
Magento_Cookie
Magento_Cron
Magento_CurrencySymbol
Magento_CatalogSearch
Magento_CustomerImportExport
Magento_CustomerSampleData
Magento_Deploy
Magento_Developer
Magento_Dhl
Magento_Authorization
Magento_User
Magento_ImportExport
Magento_Sales
Magento_CatalogRule
Magento_Email
Magento_EncryptionKey
Magento_Fedex
Magento_GiftMessage
Magento_Checkout
Magento_GoogleAnalytics
Magento_GoogleOptimizer
Magento_GroupedImportExport
Magento_GroupedProduct
Magento_Tax
Magento_DownloadableImportExport
Magento_Braintree
Magento_Integration
Magento_LayeredNavigation
Magento_Marketplace
Magento_MediaStorage
Magento_ConfigurableProduct
Magento_MsrpSampleData
Magento_Multishipping
Magento_NewRelicReporting
Magento_Newsletter
Magento_OfflinePayments
Magento_SalesRule
Magento_OfflineShipping
Magento_PageCache
Magento_Captcha
Magento_Paypal
Magento_Persistent
Magento_ProductAlert
Magento_Weee
Magento_ProductVideo
Magento_CatalogSampleData
Magento_Reports
Magento_RequireJs
Magento_Review
Magento_BundleSampleData
Magento_Rss
Magento_DownloadableSampleData
Magento_Authorizenet
Magento_OfflineShippingSampleData
Magento_ConfigurableSampleData
Magento_SalesSampleData
Magento_ProductLinksSampleData
Magento_ThemeSampleData
Magento_ReviewSampleData
Magento_SendFriend
Magento_Ui
Magento_Sitemap
Magento_CatalogRuleConfigurable
Magento_Swagger
Magento_Swatches
Magento_SwatchesSampleData
Magento_GroupedProductSampleData
Magento_TaxImportExport
Magento_TaxSampleData
Magento_GoogleAdwords
Magento_CmsSampleData
Magento_Translation
Magento_Shipping
Magento_Ups
Magento_UrlRewrite
Magento_CatalogRuleSampleData
Magento_Usps
Magento_Variable
Magento_Version
Magento_Webapi
Magento_WebapiSecurity
Magento_SalesRuleSampleData
Magento_CatalogWidget
Magento_WidgetSampleData
Magento_Wishlist
Magento_WishlistSampleData
Sm_BasicProducts
Sm_Categories
Sm_Deals
Sm_ImageSlider
Sm_ListingTabs
Sm_Market
Sm_MegaMenu
Sm_QuickView


The issue was there long before I installed nosto, I initially installed SM quickstart then upgraded it the latest magento version. if I clear the cache from admin area, I see no error. I need to fix it otherwise I'll never be able to install any module or fix this



Update now I disabled nosto.










share|improve this question
























  • if the images are too big, please remove them and just leave a link to imgur instead

    – Lynob
    Jun 23 '16 at 21:03











  • @ProxiBlue no I havent, will try it this weekend and let u know, thanks for the info, i believe your solution will solve it

    – Lynob
    Jun 27 '16 at 14:09











  • I have had this issue, or variations of the same, many times whilst coding my first m2 module. In all instances, it was caused by my own code, usualky some issue in the module.xml. Considering that, i would venture some 3rd part moduke is havibg an issue. May need an update. Figure you will have to systematically disable 3rd party modules to find the culprit(s)

    – ProxiBlue
    Jun 27 '16 at 14:12











  • Sorry. Accidentalky deleted my comment. So just reposred.

    – ProxiBlue
    Jun 27 '16 at 14:13











  • @ProxiBlue thats fine and if a module can cause that then the error is definitely caused by a module since i'm using a custom magento version backed by SM market, it has its own theme and a trillion extension i don't know what for, seems i have to disable them 1 by 1

    – Lynob
    Jun 27 '16 at 14:17













14












14








14


2






Update



Everything is working now but There are no commands defined in the "cache" namespace is still there. I tried chmod 777 -R var/generation, didn't fix a thing. AFAIK no module is enabled



 public_html]# bin/magento module:status
List of enabled modules:
Nosto_Tagging

List of disabled modules:
Magento_Store
Magento_AdvancedPricingImportExport
Magento_Directory
Magento_Theme
Magento_Backend
Magento_Backup
Magento_Eav
Magento_Customer
Magento_BundleImportExport
Magento_AdminNotification
Magento_CacheInvalidate
Magento_Indexer
Magento_Cms
Magento_CatalogImportExport
Magento_Catalog
Magento_Rule
Magento_Msrp
Magento_Search
Magento_Bundle
Magento_Quote
Magento_CatalogUrlRewrite
Magento_Widget
Magento_SalesSequence
Magento_CheckoutAgreements
Magento_Payment
Magento_Downloadable
Magento_CmsUrlRewrite
Magento_Config
Magento_ConfigurableImportExport
Magento_CatalogInventory
Magento_SampleData
Magento_Contact
Magento_Cookie
Magento_Cron
Magento_CurrencySymbol
Magento_CatalogSearch
Magento_CustomerImportExport
Magento_CustomerSampleData
Magento_Deploy
Magento_Developer
Magento_Dhl
Magento_Authorization
Magento_User
Magento_ImportExport
Magento_Sales
Magento_CatalogRule
Magento_Email
Magento_EncryptionKey
Magento_Fedex
Magento_GiftMessage
Magento_Checkout
Magento_GoogleAnalytics
Magento_GoogleOptimizer
Magento_GroupedImportExport
Magento_GroupedProduct
Magento_Tax
Magento_DownloadableImportExport
Magento_Braintree
Magento_Integration
Magento_LayeredNavigation
Magento_Marketplace
Magento_MediaStorage
Magento_ConfigurableProduct
Magento_MsrpSampleData
Magento_Multishipping
Magento_NewRelicReporting
Magento_Newsletter
Magento_OfflinePayments
Magento_SalesRule
Magento_OfflineShipping
Magento_PageCache
Magento_Captcha
Magento_Paypal
Magento_Persistent
Magento_ProductAlert
Magento_Weee
Magento_ProductVideo
Magento_CatalogSampleData
Magento_Reports
Magento_RequireJs
Magento_Review
Magento_BundleSampleData
Magento_Rss
Magento_DownloadableSampleData
Magento_Authorizenet
Magento_OfflineShippingSampleData
Magento_ConfigurableSampleData
Magento_SalesSampleData
Magento_ProductLinksSampleData
Magento_ThemeSampleData
Magento_ReviewSampleData
Magento_SendFriend
Magento_Ui
Magento_Sitemap
Magento_CatalogRuleConfigurable
Magento_Swagger
Magento_Swatches
Magento_SwatchesSampleData
Magento_GroupedProductSampleData
Magento_TaxImportExport
Magento_TaxSampleData
Magento_GoogleAdwords
Magento_CmsSampleData
Magento_Translation
Magento_Shipping
Magento_Ups
Magento_UrlRewrite
Magento_CatalogRuleSampleData
Magento_Usps
Magento_Variable
Magento_Version
Magento_Webapi
Magento_WebapiSecurity
Magento_SalesRuleSampleData
Magento_CatalogWidget
Magento_WidgetSampleData
Magento_Wishlist
Magento_WishlistSampleData
Sm_BasicProducts
Sm_Categories
Sm_Deals
Sm_ImageSlider
Sm_ListingTabs
Sm_Market
Sm_MegaMenu
Sm_QuickView


The issue was there long before I installed nosto, I initially installed SM quickstart then upgraded it the latest magento version. if I clear the cache from admin area, I see no error. I need to fix it otherwise I'll never be able to install any module or fix this



Update now I disabled nosto.










share|improve this question
















Update



Everything is working now but There are no commands defined in the "cache" namespace is still there. I tried chmod 777 -R var/generation, didn't fix a thing. AFAIK no module is enabled



 public_html]# bin/magento module:status
List of enabled modules:
Nosto_Tagging

List of disabled modules:
Magento_Store
Magento_AdvancedPricingImportExport
Magento_Directory
Magento_Theme
Magento_Backend
Magento_Backup
Magento_Eav
Magento_Customer
Magento_BundleImportExport
Magento_AdminNotification
Magento_CacheInvalidate
Magento_Indexer
Magento_Cms
Magento_CatalogImportExport
Magento_Catalog
Magento_Rule
Magento_Msrp
Magento_Search
Magento_Bundle
Magento_Quote
Magento_CatalogUrlRewrite
Magento_Widget
Magento_SalesSequence
Magento_CheckoutAgreements
Magento_Payment
Magento_Downloadable
Magento_CmsUrlRewrite
Magento_Config
Magento_ConfigurableImportExport
Magento_CatalogInventory
Magento_SampleData
Magento_Contact
Magento_Cookie
Magento_Cron
Magento_CurrencySymbol
Magento_CatalogSearch
Magento_CustomerImportExport
Magento_CustomerSampleData
Magento_Deploy
Magento_Developer
Magento_Dhl
Magento_Authorization
Magento_User
Magento_ImportExport
Magento_Sales
Magento_CatalogRule
Magento_Email
Magento_EncryptionKey
Magento_Fedex
Magento_GiftMessage
Magento_Checkout
Magento_GoogleAnalytics
Magento_GoogleOptimizer
Magento_GroupedImportExport
Magento_GroupedProduct
Magento_Tax
Magento_DownloadableImportExport
Magento_Braintree
Magento_Integration
Magento_LayeredNavigation
Magento_Marketplace
Magento_MediaStorage
Magento_ConfigurableProduct
Magento_MsrpSampleData
Magento_Multishipping
Magento_NewRelicReporting
Magento_Newsletter
Magento_OfflinePayments
Magento_SalesRule
Magento_OfflineShipping
Magento_PageCache
Magento_Captcha
Magento_Paypal
Magento_Persistent
Magento_ProductAlert
Magento_Weee
Magento_ProductVideo
Magento_CatalogSampleData
Magento_Reports
Magento_RequireJs
Magento_Review
Magento_BundleSampleData
Magento_Rss
Magento_DownloadableSampleData
Magento_Authorizenet
Magento_OfflineShippingSampleData
Magento_ConfigurableSampleData
Magento_SalesSampleData
Magento_ProductLinksSampleData
Magento_ThemeSampleData
Magento_ReviewSampleData
Magento_SendFriend
Magento_Ui
Magento_Sitemap
Magento_CatalogRuleConfigurable
Magento_Swagger
Magento_Swatches
Magento_SwatchesSampleData
Magento_GroupedProductSampleData
Magento_TaxImportExport
Magento_TaxSampleData
Magento_GoogleAdwords
Magento_CmsSampleData
Magento_Translation
Magento_Shipping
Magento_Ups
Magento_UrlRewrite
Magento_CatalogRuleSampleData
Magento_Usps
Magento_Variable
Magento_Version
Magento_Webapi
Magento_WebapiSecurity
Magento_SalesRuleSampleData
Magento_CatalogWidget
Magento_WidgetSampleData
Magento_Wishlist
Magento_WishlistSampleData
Sm_BasicProducts
Sm_Categories
Sm_Deals
Sm_ImageSlider
Sm_ListingTabs
Sm_Market
Sm_MegaMenu
Sm_QuickView


The issue was there long before I installed nosto, I initially installed SM quickstart then upgraded it the latest magento version. if I clear the cache from admin area, I see no error. I need to fix it otherwise I'll never be able to install any module or fix this



Update now I disabled nosto.







magento2 admin cache upgrade






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 13 '17 at 12:54









Community

1




1










asked Jun 23 '16 at 21:01









LynobLynob

2072416




2072416












  • if the images are too big, please remove them and just leave a link to imgur instead

    – Lynob
    Jun 23 '16 at 21:03











  • @ProxiBlue no I havent, will try it this weekend and let u know, thanks for the info, i believe your solution will solve it

    – Lynob
    Jun 27 '16 at 14:09











  • I have had this issue, or variations of the same, many times whilst coding my first m2 module. In all instances, it was caused by my own code, usualky some issue in the module.xml. Considering that, i would venture some 3rd part moduke is havibg an issue. May need an update. Figure you will have to systematically disable 3rd party modules to find the culprit(s)

    – ProxiBlue
    Jun 27 '16 at 14:12











  • Sorry. Accidentalky deleted my comment. So just reposred.

    – ProxiBlue
    Jun 27 '16 at 14:13











  • @ProxiBlue thats fine and if a module can cause that then the error is definitely caused by a module since i'm using a custom magento version backed by SM market, it has its own theme and a trillion extension i don't know what for, seems i have to disable them 1 by 1

    – Lynob
    Jun 27 '16 at 14:17

















  • if the images are too big, please remove them and just leave a link to imgur instead

    – Lynob
    Jun 23 '16 at 21:03











  • @ProxiBlue no I havent, will try it this weekend and let u know, thanks for the info, i believe your solution will solve it

    – Lynob
    Jun 27 '16 at 14:09











  • I have had this issue, or variations of the same, many times whilst coding my first m2 module. In all instances, it was caused by my own code, usualky some issue in the module.xml. Considering that, i would venture some 3rd part moduke is havibg an issue. May need an update. Figure you will have to systematically disable 3rd party modules to find the culprit(s)

    – ProxiBlue
    Jun 27 '16 at 14:12











  • Sorry. Accidentalky deleted my comment. So just reposred.

    – ProxiBlue
    Jun 27 '16 at 14:13











  • @ProxiBlue thats fine and if a module can cause that then the error is definitely caused by a module since i'm using a custom magento version backed by SM market, it has its own theme and a trillion extension i don't know what for, seems i have to disable them 1 by 1

    – Lynob
    Jun 27 '16 at 14:17
















if the images are too big, please remove them and just leave a link to imgur instead

– Lynob
Jun 23 '16 at 21:03





if the images are too big, please remove them and just leave a link to imgur instead

– Lynob
Jun 23 '16 at 21:03













@ProxiBlue no I havent, will try it this weekend and let u know, thanks for the info, i believe your solution will solve it

– Lynob
Jun 27 '16 at 14:09





@ProxiBlue no I havent, will try it this weekend and let u know, thanks for the info, i believe your solution will solve it

– Lynob
Jun 27 '16 at 14:09













I have had this issue, or variations of the same, many times whilst coding my first m2 module. In all instances, it was caused by my own code, usualky some issue in the module.xml. Considering that, i would venture some 3rd part moduke is havibg an issue. May need an update. Figure you will have to systematically disable 3rd party modules to find the culprit(s)

– ProxiBlue
Jun 27 '16 at 14:12





I have had this issue, or variations of the same, many times whilst coding my first m2 module. In all instances, it was caused by my own code, usualky some issue in the module.xml. Considering that, i would venture some 3rd part moduke is havibg an issue. May need an update. Figure you will have to systematically disable 3rd party modules to find the culprit(s)

– ProxiBlue
Jun 27 '16 at 14:12













Sorry. Accidentalky deleted my comment. So just reposred.

– ProxiBlue
Jun 27 '16 at 14:13





Sorry. Accidentalky deleted my comment. So just reposred.

– ProxiBlue
Jun 27 '16 at 14:13













@ProxiBlue thats fine and if a module can cause that then the error is definitely caused by a module since i'm using a custom magento version backed by SM market, it has its own theme and a trillion extension i don't know what for, seems i have to disable them 1 by 1

– Lynob
Jun 27 '16 at 14:17





@ProxiBlue thats fine and if a module can cause that then the error is definitely caused by a module since i'm using a custom magento version backed by SM market, it has its own theme and a trillion extension i don't know what for, seems i have to disable them 1 by 1

– Lynob
Jun 27 '16 at 14:17










11 Answers
11






active

oldest

votes


















18














That error comes up when a module does not correctly declare its commands. It just stops Magento from correctly reading the wole commands list.



Unless you have broken third party modules, you probably have something left in your cache or generation folder preventing you to correctly run Magento commands.



From your Magento root:



rm -Rf var/cache/*
rm -Rf generated/* (or rm -Rf var/generation/* depending on your Magento version)


Then try again:



php bin/magento cache:flush


If it does not work just try to run:



php bin/magento


And see what is the last shown command.






share|improve this answer

























  • no it did not work and heres the output of php bin/magento pastebin.com/AknS0gV9

    – Lynob
    Jun 23 '16 at 23:48











  • Did you turn on display_errors on CLI?

    – Phoenix128_RiccardoT
    Jun 24 '16 at 7:31











  • php -d display_errors bin/magento >log.txt no strage errors

    – Lynob
    Jun 24 '16 at 8:07











  • should i turn it on from php.ini? should i use magento verbose?

    – Lynob
    Jun 24 '16 at 8:08











  • Uhm... any 3rd part modules?

    – Phoenix128_RiccardoT
    Jun 27 '16 at 21:13


















16














I have gone through the same problem. I have done same as you delete pub/static content but after re-deploying I didn't get the solutions. Again I installed fresh Magento. After some time again I face this issue but this time, I used the best approach. Hope this will work for you :
Use the following command from your magento root directory



Step 1 - sudo rm -rf var/di/* var/generation/* var/cache/* var/page_cache/* var/view_preprocessed/* var/composer_home/cache/*
Step 2 - sudo chmod 777 var -R
Step 3 - sudo chmod 777 pub -R
Step 4 - sudo php bin/magento setup:static-content:deploy
Repeat step 2 & 3.


Please avoid 777 on the production server, but provide read and write permission for Magento.






share|improve this answer

























  • Thanks Lynob. Please can you paste your error here ?

    – Manish
    Jun 27 '16 at 14:16






  • 1





    same error, the steps didn't fix it, i guess some sort of a custom module is causing the issue

    – Lynob
    Jun 27 '16 at 14:28











  • Downvoted for 777 as a solution.

    – Vicary
    Nov 21 '17 at 18:28


















10














$ bin/magento module:enable --all






share|improve this answer























  • This command will generate the app/etc/config.php file which contains all installed module and there activation status.

    – Cyclonecode
    Jan 13 at 16:49


















6














it got same problem . i have been resolve by run this command :



php bin/magento



after done, it display the errors like as "Circular sequence reference ..." . With this errors,we only remove :




in etc/module.xml, because the module name already defined in module tag.






share|improve this answer
































    3














    I had this issue once as well. Mine happened because I was doing a clean refresh



    php bin/magento setup:upgrade
    php bin/magento setup:di:compile
    php bin/magento setup:static-content:deploy
    php bin/magento indexer:reindex
    php bin/magento cache:clean



    how I broke mine was I was rushed at work to go home and continue working not completing the steps thinking I could just ssh back into the server and finish. sure enough, I had to clear var/cache/* var/page_cache/* var/di/* var/generation/* and then run the process over again and everything worked fine.



    just sharing my experience. hope it helps you in your troubleshooting.






    share|improve this answer






























      2














      Try this,



      • sudo chmod -R 777 var

      • sudo chmod -R 777 pub

      • sudo php bin/magento setup:upgrade





      share|improve this answer























      • while this may help giving write permission to anything and everyone is NOT the way to go. Set the permissions correctly so that the correct use can write to these folders.

        – Andy
        Jul 19 '18 at 8:45


















      1














      2nd answer after you updated your post:



      According to your module:status output you have all the Magento core modules disabled. I've never seen this and I do not know how your admin is still working!



      Anyway open your app/etc/config.php file and set all the modules starting with Magento_ to 1.



      Example:



      ...
      return array (
      'modules' =>
      array (
      ...
      'Magento_Store' => 1,
      'Magento_AdvancedPricingImportExport' => 1,
      'Magento_Directory' => 1,
      ...
      ...


      After this, from you Magento root run:



      rm -Rf var/cache/*
      rm -Rf var/generation/*


      And try again.






      share|improve this answer






























        1














        I struggled with this for a while, not finding any information on these forums, until I finally figured it out. I had a 3rd party module that was not properly defined. I had the registration.php file in place, but I didn't have the etcmodule.xml file. Instead of gracefully erroring out or ignoring the mis-configured module, it kills the entire Magento engine, including the CLI. I couldn't even run bin/magento module:status without it throwing the same error.



        So, if this happens to you, and all other solutions fail, check that you don't have a misconfigured extension.






        share|improve this answer






























          1














          I got same issue




          [SymfonyComponentConsoleExceptionCommandNotFoundException]

          There are no commands defined in the "cache" namespace.




          I checked in my source lost file etc/evn.php. Push on source and it be fixed.






          share|improve this answer






























            0














            I apply all the answer But not work.
            Then i start to check my code, in env.php file i found problem there.
            So please carefully to apply all the answer .






            share|improve this answer


















            • 1





              Check module.xml file of your last installed extension. This error generally because of this file only

              – zuber bandi
              24 mins ago


















            0














            Check module.xml file of your last installed extension. This error generally because of this file only






            share|improve this answer























            • This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - From Review

              – Jai
              8 mins ago









            protected by Community Apr 4 '18 at 5:06



            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?














            11 Answers
            11






            active

            oldest

            votes








            11 Answers
            11






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            18














            That error comes up when a module does not correctly declare its commands. It just stops Magento from correctly reading the wole commands list.



            Unless you have broken third party modules, you probably have something left in your cache or generation folder preventing you to correctly run Magento commands.



            From your Magento root:



            rm -Rf var/cache/*
            rm -Rf generated/* (or rm -Rf var/generation/* depending on your Magento version)


            Then try again:



            php bin/magento cache:flush


            If it does not work just try to run:



            php bin/magento


            And see what is the last shown command.






            share|improve this answer

























            • no it did not work and heres the output of php bin/magento pastebin.com/AknS0gV9

              – Lynob
              Jun 23 '16 at 23:48











            • Did you turn on display_errors on CLI?

              – Phoenix128_RiccardoT
              Jun 24 '16 at 7:31











            • php -d display_errors bin/magento >log.txt no strage errors

              – Lynob
              Jun 24 '16 at 8:07











            • should i turn it on from php.ini? should i use magento verbose?

              – Lynob
              Jun 24 '16 at 8:08











            • Uhm... any 3rd part modules?

              – Phoenix128_RiccardoT
              Jun 27 '16 at 21:13















            18














            That error comes up when a module does not correctly declare its commands. It just stops Magento from correctly reading the wole commands list.



            Unless you have broken third party modules, you probably have something left in your cache or generation folder preventing you to correctly run Magento commands.



            From your Magento root:



            rm -Rf var/cache/*
            rm -Rf generated/* (or rm -Rf var/generation/* depending on your Magento version)


            Then try again:



            php bin/magento cache:flush


            If it does not work just try to run:



            php bin/magento


            And see what is the last shown command.






            share|improve this answer

























            • no it did not work and heres the output of php bin/magento pastebin.com/AknS0gV9

              – Lynob
              Jun 23 '16 at 23:48











            • Did you turn on display_errors on CLI?

              – Phoenix128_RiccardoT
              Jun 24 '16 at 7:31











            • php -d display_errors bin/magento >log.txt no strage errors

              – Lynob
              Jun 24 '16 at 8:07











            • should i turn it on from php.ini? should i use magento verbose?

              – Lynob
              Jun 24 '16 at 8:08











            • Uhm... any 3rd part modules?

              – Phoenix128_RiccardoT
              Jun 27 '16 at 21:13













            18












            18








            18







            That error comes up when a module does not correctly declare its commands. It just stops Magento from correctly reading the wole commands list.



            Unless you have broken third party modules, you probably have something left in your cache or generation folder preventing you to correctly run Magento commands.



            From your Magento root:



            rm -Rf var/cache/*
            rm -Rf generated/* (or rm -Rf var/generation/* depending on your Magento version)


            Then try again:



            php bin/magento cache:flush


            If it does not work just try to run:



            php bin/magento


            And see what is the last shown command.






            share|improve this answer















            That error comes up when a module does not correctly declare its commands. It just stops Magento from correctly reading the wole commands list.



            Unless you have broken third party modules, you probably have something left in your cache or generation folder preventing you to correctly run Magento commands.



            From your Magento root:



            rm -Rf var/cache/*
            rm -Rf generated/* (or rm -Rf var/generation/* depending on your Magento version)


            Then try again:



            php bin/magento cache:flush


            If it does not work just try to run:



            php bin/magento


            And see what is the last shown command.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Nov 9 '18 at 10:21

























            answered Jun 23 '16 at 21:22









            Phoenix128_RiccardoTPhoenix128_RiccardoT

            5,40721231




            5,40721231












            • no it did not work and heres the output of php bin/magento pastebin.com/AknS0gV9

              – Lynob
              Jun 23 '16 at 23:48











            • Did you turn on display_errors on CLI?

              – Phoenix128_RiccardoT
              Jun 24 '16 at 7:31











            • php -d display_errors bin/magento >log.txt no strage errors

              – Lynob
              Jun 24 '16 at 8:07











            • should i turn it on from php.ini? should i use magento verbose?

              – Lynob
              Jun 24 '16 at 8:08











            • Uhm... any 3rd part modules?

              – Phoenix128_RiccardoT
              Jun 27 '16 at 21:13

















            • no it did not work and heres the output of php bin/magento pastebin.com/AknS0gV9

              – Lynob
              Jun 23 '16 at 23:48











            • Did you turn on display_errors on CLI?

              – Phoenix128_RiccardoT
              Jun 24 '16 at 7:31











            • php -d display_errors bin/magento >log.txt no strage errors

              – Lynob
              Jun 24 '16 at 8:07











            • should i turn it on from php.ini? should i use magento verbose?

              – Lynob
              Jun 24 '16 at 8:08











            • Uhm... any 3rd part modules?

              – Phoenix128_RiccardoT
              Jun 27 '16 at 21:13
















            no it did not work and heres the output of php bin/magento pastebin.com/AknS0gV9

            – Lynob
            Jun 23 '16 at 23:48





            no it did not work and heres the output of php bin/magento pastebin.com/AknS0gV9

            – Lynob
            Jun 23 '16 at 23:48













            Did you turn on display_errors on CLI?

            – Phoenix128_RiccardoT
            Jun 24 '16 at 7:31





            Did you turn on display_errors on CLI?

            – Phoenix128_RiccardoT
            Jun 24 '16 at 7:31













            php -d display_errors bin/magento >log.txt no strage errors

            – Lynob
            Jun 24 '16 at 8:07





            php -d display_errors bin/magento >log.txt no strage errors

            – Lynob
            Jun 24 '16 at 8:07













            should i turn it on from php.ini? should i use magento verbose?

            – Lynob
            Jun 24 '16 at 8:08





            should i turn it on from php.ini? should i use magento verbose?

            – Lynob
            Jun 24 '16 at 8:08













            Uhm... any 3rd part modules?

            – Phoenix128_RiccardoT
            Jun 27 '16 at 21:13





            Uhm... any 3rd part modules?

            – Phoenix128_RiccardoT
            Jun 27 '16 at 21:13













            16














            I have gone through the same problem. I have done same as you delete pub/static content but after re-deploying I didn't get the solutions. Again I installed fresh Magento. After some time again I face this issue but this time, I used the best approach. Hope this will work for you :
            Use the following command from your magento root directory



            Step 1 - sudo rm -rf var/di/* var/generation/* var/cache/* var/page_cache/* var/view_preprocessed/* var/composer_home/cache/*
            Step 2 - sudo chmod 777 var -R
            Step 3 - sudo chmod 777 pub -R
            Step 4 - sudo php bin/magento setup:static-content:deploy
            Repeat step 2 & 3.


            Please avoid 777 on the production server, but provide read and write permission for Magento.






            share|improve this answer

























            • Thanks Lynob. Please can you paste your error here ?

              – Manish
              Jun 27 '16 at 14:16






            • 1





              same error, the steps didn't fix it, i guess some sort of a custom module is causing the issue

              – Lynob
              Jun 27 '16 at 14:28











            • Downvoted for 777 as a solution.

              – Vicary
              Nov 21 '17 at 18:28















            16














            I have gone through the same problem. I have done same as you delete pub/static content but after re-deploying I didn't get the solutions. Again I installed fresh Magento. After some time again I face this issue but this time, I used the best approach. Hope this will work for you :
            Use the following command from your magento root directory



            Step 1 - sudo rm -rf var/di/* var/generation/* var/cache/* var/page_cache/* var/view_preprocessed/* var/composer_home/cache/*
            Step 2 - sudo chmod 777 var -R
            Step 3 - sudo chmod 777 pub -R
            Step 4 - sudo php bin/magento setup:static-content:deploy
            Repeat step 2 & 3.


            Please avoid 777 on the production server, but provide read and write permission for Magento.






            share|improve this answer

























            • Thanks Lynob. Please can you paste your error here ?

              – Manish
              Jun 27 '16 at 14:16






            • 1





              same error, the steps didn't fix it, i guess some sort of a custom module is causing the issue

              – Lynob
              Jun 27 '16 at 14:28











            • Downvoted for 777 as a solution.

              – Vicary
              Nov 21 '17 at 18:28













            16












            16








            16







            I have gone through the same problem. I have done same as you delete pub/static content but after re-deploying I didn't get the solutions. Again I installed fresh Magento. After some time again I face this issue but this time, I used the best approach. Hope this will work for you :
            Use the following command from your magento root directory



            Step 1 - sudo rm -rf var/di/* var/generation/* var/cache/* var/page_cache/* var/view_preprocessed/* var/composer_home/cache/*
            Step 2 - sudo chmod 777 var -R
            Step 3 - sudo chmod 777 pub -R
            Step 4 - sudo php bin/magento setup:static-content:deploy
            Repeat step 2 & 3.


            Please avoid 777 on the production server, but provide read and write permission for Magento.






            share|improve this answer















            I have gone through the same problem. I have done same as you delete pub/static content but after re-deploying I didn't get the solutions. Again I installed fresh Magento. After some time again I face this issue but this time, I used the best approach. Hope this will work for you :
            Use the following command from your magento root directory



            Step 1 - sudo rm -rf var/di/* var/generation/* var/cache/* var/page_cache/* var/view_preprocessed/* var/composer_home/cache/*
            Step 2 - sudo chmod 777 var -R
            Step 3 - sudo chmod 777 pub -R
            Step 4 - sudo php bin/magento setup:static-content:deploy
            Repeat step 2 & 3.


            Please avoid 777 on the production server, but provide read and write permission for Magento.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Nov 22 '17 at 7:27

























            answered Jun 27 '16 at 13:41









            ManishManish

            2,02931840




            2,02931840












            • Thanks Lynob. Please can you paste your error here ?

              – Manish
              Jun 27 '16 at 14:16






            • 1





              same error, the steps didn't fix it, i guess some sort of a custom module is causing the issue

              – Lynob
              Jun 27 '16 at 14:28











            • Downvoted for 777 as a solution.

              – Vicary
              Nov 21 '17 at 18:28

















            • Thanks Lynob. Please can you paste your error here ?

              – Manish
              Jun 27 '16 at 14:16






            • 1





              same error, the steps didn't fix it, i guess some sort of a custom module is causing the issue

              – Lynob
              Jun 27 '16 at 14:28











            • Downvoted for 777 as a solution.

              – Vicary
              Nov 21 '17 at 18:28
















            Thanks Lynob. Please can you paste your error here ?

            – Manish
            Jun 27 '16 at 14:16





            Thanks Lynob. Please can you paste your error here ?

            – Manish
            Jun 27 '16 at 14:16




            1




            1





            same error, the steps didn't fix it, i guess some sort of a custom module is causing the issue

            – Lynob
            Jun 27 '16 at 14:28





            same error, the steps didn't fix it, i guess some sort of a custom module is causing the issue

            – Lynob
            Jun 27 '16 at 14:28













            Downvoted for 777 as a solution.

            – Vicary
            Nov 21 '17 at 18:28





            Downvoted for 777 as a solution.

            – Vicary
            Nov 21 '17 at 18:28











            10














            $ bin/magento module:enable --all






            share|improve this answer























            • This command will generate the app/etc/config.php file which contains all installed module and there activation status.

              – Cyclonecode
              Jan 13 at 16:49















            10














            $ bin/magento module:enable --all






            share|improve this answer























            • This command will generate the app/etc/config.php file which contains all installed module and there activation status.

              – Cyclonecode
              Jan 13 at 16:49













            10












            10








            10







            $ bin/magento module:enable --all






            share|improve this answer













            $ bin/magento module:enable --all







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 7 '16 at 12:38









            muhsinmuhsin

            12113




            12113












            • This command will generate the app/etc/config.php file which contains all installed module and there activation status.

              – Cyclonecode
              Jan 13 at 16:49

















            • This command will generate the app/etc/config.php file which contains all installed module and there activation status.

              – Cyclonecode
              Jan 13 at 16:49
















            This command will generate the app/etc/config.php file which contains all installed module and there activation status.

            – Cyclonecode
            Jan 13 at 16:49





            This command will generate the app/etc/config.php file which contains all installed module and there activation status.

            – Cyclonecode
            Jan 13 at 16:49











            6














            it got same problem . i have been resolve by run this command :



            php bin/magento



            after done, it display the errors like as "Circular sequence reference ..." . With this errors,we only remove :




            in etc/module.xml, because the module name already defined in module tag.






            share|improve this answer





























              6














              it got same problem . i have been resolve by run this command :



              php bin/magento



              after done, it display the errors like as "Circular sequence reference ..." . With this errors,we only remove :




              in etc/module.xml, because the module name already defined in module tag.






              share|improve this answer



























                6












                6








                6







                it got same problem . i have been resolve by run this command :



                php bin/magento



                after done, it display the errors like as "Circular sequence reference ..." . With this errors,we only remove :




                in etc/module.xml, because the module name already defined in module tag.






                share|improve this answer















                it got same problem . i have been resolve by run this command :



                php bin/magento



                after done, it display the errors like as "Circular sequence reference ..." . With this errors,we only remove :




                in etc/module.xml, because the module name already defined in module tag.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Jan 30 at 10:40









                Teja Bhagavan Kollepara

                2,99241950




                2,99241950










                answered Oct 12 '16 at 3:34









                Vu AnhVu Anh

                78669




                78669





















                    3














                    I had this issue once as well. Mine happened because I was doing a clean refresh



                    php bin/magento setup:upgrade
                    php bin/magento setup:di:compile
                    php bin/magento setup:static-content:deploy
                    php bin/magento indexer:reindex
                    php bin/magento cache:clean



                    how I broke mine was I was rushed at work to go home and continue working not completing the steps thinking I could just ssh back into the server and finish. sure enough, I had to clear var/cache/* var/page_cache/* var/di/* var/generation/* and then run the process over again and everything worked fine.



                    just sharing my experience. hope it helps you in your troubleshooting.






                    share|improve this answer



























                      3














                      I had this issue once as well. Mine happened because I was doing a clean refresh



                      php bin/magento setup:upgrade
                      php bin/magento setup:di:compile
                      php bin/magento setup:static-content:deploy
                      php bin/magento indexer:reindex
                      php bin/magento cache:clean



                      how I broke mine was I was rushed at work to go home and continue working not completing the steps thinking I could just ssh back into the server and finish. sure enough, I had to clear var/cache/* var/page_cache/* var/di/* var/generation/* and then run the process over again and everything worked fine.



                      just sharing my experience. hope it helps you in your troubleshooting.






                      share|improve this answer

























                        3












                        3








                        3







                        I had this issue once as well. Mine happened because I was doing a clean refresh



                        php bin/magento setup:upgrade
                        php bin/magento setup:di:compile
                        php bin/magento setup:static-content:deploy
                        php bin/magento indexer:reindex
                        php bin/magento cache:clean



                        how I broke mine was I was rushed at work to go home and continue working not completing the steps thinking I could just ssh back into the server and finish. sure enough, I had to clear var/cache/* var/page_cache/* var/di/* var/generation/* and then run the process over again and everything worked fine.



                        just sharing my experience. hope it helps you in your troubleshooting.






                        share|improve this answer













                        I had this issue once as well. Mine happened because I was doing a clean refresh



                        php bin/magento setup:upgrade
                        php bin/magento setup:di:compile
                        php bin/magento setup:static-content:deploy
                        php bin/magento indexer:reindex
                        php bin/magento cache:clean



                        how I broke mine was I was rushed at work to go home and continue working not completing the steps thinking I could just ssh back into the server and finish. sure enough, I had to clear var/cache/* var/page_cache/* var/di/* var/generation/* and then run the process over again and everything worked fine.



                        just sharing my experience. hope it helps you in your troubleshooting.







                        share|improve this answer












                        share|improve this answer



                        share|improve this answer










                        answered Sep 21 '17 at 1:55









                        gx2ggx2g

                        9310




                        9310





















                            2














                            Try this,



                            • sudo chmod -R 777 var

                            • sudo chmod -R 777 pub

                            • sudo php bin/magento setup:upgrade





                            share|improve this answer























                            • while this may help giving write permission to anything and everyone is NOT the way to go. Set the permissions correctly so that the correct use can write to these folders.

                              – Andy
                              Jul 19 '18 at 8:45















                            2














                            Try this,



                            • sudo chmod -R 777 var

                            • sudo chmod -R 777 pub

                            • sudo php bin/magento setup:upgrade





                            share|improve this answer























                            • while this may help giving write permission to anything and everyone is NOT the way to go. Set the permissions correctly so that the correct use can write to these folders.

                              – Andy
                              Jul 19 '18 at 8:45













                            2












                            2








                            2







                            Try this,



                            • sudo chmod -R 777 var

                            • sudo chmod -R 777 pub

                            • sudo php bin/magento setup:upgrade





                            share|improve this answer













                            Try this,



                            • sudo chmod -R 777 var

                            • sudo chmod -R 777 pub

                            • sudo php bin/magento setup:upgrade






                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Oct 12 '16 at 4:14









                            SukeshiniSukeshini

                            6,5851457115




                            6,5851457115












                            • while this may help giving write permission to anything and everyone is NOT the way to go. Set the permissions correctly so that the correct use can write to these folders.

                              – Andy
                              Jul 19 '18 at 8:45

















                            • while this may help giving write permission to anything and everyone is NOT the way to go. Set the permissions correctly so that the correct use can write to these folders.

                              – Andy
                              Jul 19 '18 at 8:45
















                            while this may help giving write permission to anything and everyone is NOT the way to go. Set the permissions correctly so that the correct use can write to these folders.

                            – Andy
                            Jul 19 '18 at 8:45





                            while this may help giving write permission to anything and everyone is NOT the way to go. Set the permissions correctly so that the correct use can write to these folders.

                            – Andy
                            Jul 19 '18 at 8:45











                            1














                            2nd answer after you updated your post:



                            According to your module:status output you have all the Magento core modules disabled. I've never seen this and I do not know how your admin is still working!



                            Anyway open your app/etc/config.php file and set all the modules starting with Magento_ to 1.



                            Example:



                            ...
                            return array (
                            'modules' =>
                            array (
                            ...
                            'Magento_Store' => 1,
                            'Magento_AdvancedPricingImportExport' => 1,
                            'Magento_Directory' => 1,
                            ...
                            ...


                            After this, from you Magento root run:



                            rm -Rf var/cache/*
                            rm -Rf var/generation/*


                            And try again.






                            share|improve this answer



























                              1














                              2nd answer after you updated your post:



                              According to your module:status output you have all the Magento core modules disabled. I've never seen this and I do not know how your admin is still working!



                              Anyway open your app/etc/config.php file and set all the modules starting with Magento_ to 1.



                              Example:



                              ...
                              return array (
                              'modules' =>
                              array (
                              ...
                              'Magento_Store' => 1,
                              'Magento_AdvancedPricingImportExport' => 1,
                              'Magento_Directory' => 1,
                              ...
                              ...


                              After this, from you Magento root run:



                              rm -Rf var/cache/*
                              rm -Rf var/generation/*


                              And try again.






                              share|improve this answer

























                                1












                                1








                                1







                                2nd answer after you updated your post:



                                According to your module:status output you have all the Magento core modules disabled. I've never seen this and I do not know how your admin is still working!



                                Anyway open your app/etc/config.php file and set all the modules starting with Magento_ to 1.



                                Example:



                                ...
                                return array (
                                'modules' =>
                                array (
                                ...
                                'Magento_Store' => 1,
                                'Magento_AdvancedPricingImportExport' => 1,
                                'Magento_Directory' => 1,
                                ...
                                ...


                                After this, from you Magento root run:



                                rm -Rf var/cache/*
                                rm -Rf var/generation/*


                                And try again.






                                share|improve this answer













                                2nd answer after you updated your post:



                                According to your module:status output you have all the Magento core modules disabled. I've never seen this and I do not know how your admin is still working!



                                Anyway open your app/etc/config.php file and set all the modules starting with Magento_ to 1.



                                Example:



                                ...
                                return array (
                                'modules' =>
                                array (
                                ...
                                'Magento_Store' => 1,
                                'Magento_AdvancedPricingImportExport' => 1,
                                'Magento_Directory' => 1,
                                ...
                                ...


                                After this, from you Magento root run:



                                rm -Rf var/cache/*
                                rm -Rf var/generation/*


                                And try again.







                                share|improve this answer












                                share|improve this answer



                                share|improve this answer










                                answered Jul 5 '16 at 15:17









                                Phoenix128_RiccardoTPhoenix128_RiccardoT

                                5,40721231




                                5,40721231





















                                    1














                                    I struggled with this for a while, not finding any information on these forums, until I finally figured it out. I had a 3rd party module that was not properly defined. I had the registration.php file in place, but I didn't have the etcmodule.xml file. Instead of gracefully erroring out or ignoring the mis-configured module, it kills the entire Magento engine, including the CLI. I couldn't even run bin/magento module:status without it throwing the same error.



                                    So, if this happens to you, and all other solutions fail, check that you don't have a misconfigured extension.






                                    share|improve this answer



























                                      1














                                      I struggled with this for a while, not finding any information on these forums, until I finally figured it out. I had a 3rd party module that was not properly defined. I had the registration.php file in place, but I didn't have the etcmodule.xml file. Instead of gracefully erroring out or ignoring the mis-configured module, it kills the entire Magento engine, including the CLI. I couldn't even run bin/magento module:status without it throwing the same error.



                                      So, if this happens to you, and all other solutions fail, check that you don't have a misconfigured extension.






                                      share|improve this answer

























                                        1












                                        1








                                        1







                                        I struggled with this for a while, not finding any information on these forums, until I finally figured it out. I had a 3rd party module that was not properly defined. I had the registration.php file in place, but I didn't have the etcmodule.xml file. Instead of gracefully erroring out or ignoring the mis-configured module, it kills the entire Magento engine, including the CLI. I couldn't even run bin/magento module:status without it throwing the same error.



                                        So, if this happens to you, and all other solutions fail, check that you don't have a misconfigured extension.






                                        share|improve this answer













                                        I struggled with this for a while, not finding any information on these forums, until I finally figured it out. I had a 3rd party module that was not properly defined. I had the registration.php file in place, but I didn't have the etcmodule.xml file. Instead of gracefully erroring out or ignoring the mis-configured module, it kills the entire Magento engine, including the CLI. I couldn't even run bin/magento module:status without it throwing the same error.



                                        So, if this happens to you, and all other solutions fail, check that you don't have a misconfigured extension.







                                        share|improve this answer












                                        share|improve this answer



                                        share|improve this answer










                                        answered Jun 1 '18 at 21:43









                                        BrianVPSBrianVPS

                                        348214




                                        348214





















                                            1














                                            I got same issue




                                            [SymfonyComponentConsoleExceptionCommandNotFoundException]

                                            There are no commands defined in the "cache" namespace.




                                            I checked in my source lost file etc/evn.php. Push on source and it be fixed.






                                            share|improve this answer



























                                              1














                                              I got same issue




                                              [SymfonyComponentConsoleExceptionCommandNotFoundException]

                                              There are no commands defined in the "cache" namespace.




                                              I checked in my source lost file etc/evn.php. Push on source and it be fixed.






                                              share|improve this answer

























                                                1












                                                1








                                                1







                                                I got same issue




                                                [SymfonyComponentConsoleExceptionCommandNotFoundException]

                                                There are no commands defined in the "cache" namespace.




                                                I checked in my source lost file etc/evn.php. Push on source and it be fixed.






                                                share|improve this answer













                                                I got same issue




                                                [SymfonyComponentConsoleExceptionCommandNotFoundException]

                                                There are no commands defined in the "cache" namespace.




                                                I checked in my source lost file etc/evn.php. Push on source and it be fixed.







                                                share|improve this answer












                                                share|improve this answer



                                                share|improve this answer










                                                answered Dec 3 '18 at 19:41









                                                xankaxanka

                                                1,03331950




                                                1,03331950





















                                                    0














                                                    I apply all the answer But not work.
                                                    Then i start to check my code, in env.php file i found problem there.
                                                    So please carefully to apply all the answer .






                                                    share|improve this answer


















                                                    • 1





                                                      Check module.xml file of your last installed extension. This error generally because of this file only

                                                      – zuber bandi
                                                      24 mins ago















                                                    0














                                                    I apply all the answer But not work.
                                                    Then i start to check my code, in env.php file i found problem there.
                                                    So please carefully to apply all the answer .






                                                    share|improve this answer


















                                                    • 1





                                                      Check module.xml file of your last installed extension. This error generally because of this file only

                                                      – zuber bandi
                                                      24 mins ago













                                                    0












                                                    0








                                                    0







                                                    I apply all the answer But not work.
                                                    Then i start to check my code, in env.php file i found problem there.
                                                    So please carefully to apply all the answer .






                                                    share|improve this answer













                                                    I apply all the answer But not work.
                                                    Then i start to check my code, in env.php file i found problem there.
                                                    So please carefully to apply all the answer .







                                                    share|improve this answer












                                                    share|improve this answer



                                                    share|improve this answer










                                                    answered Mar 11 at 10:31









                                                    HaFiz UmerHaFiz Umer

                                                    45811




                                                    45811







                                                    • 1





                                                      Check module.xml file of your last installed extension. This error generally because of this file only

                                                      – zuber bandi
                                                      24 mins ago












                                                    • 1





                                                      Check module.xml file of your last installed extension. This error generally because of this file only

                                                      – zuber bandi
                                                      24 mins ago







                                                    1




                                                    1





                                                    Check module.xml file of your last installed extension. This error generally because of this file only

                                                    – zuber bandi
                                                    24 mins ago





                                                    Check module.xml file of your last installed extension. This error generally because of this file only

                                                    – zuber bandi
                                                    24 mins ago











                                                    0














                                                    Check module.xml file of your last installed extension. This error generally because of this file only






                                                    share|improve this answer























                                                    • This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - From Review

                                                      – Jai
                                                      8 mins ago















                                                    0














                                                    Check module.xml file of your last installed extension. This error generally because of this file only






                                                    share|improve this answer























                                                    • This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - From Review

                                                      – Jai
                                                      8 mins ago













                                                    0












                                                    0








                                                    0







                                                    Check module.xml file of your last installed extension. This error generally because of this file only






                                                    share|improve this answer













                                                    Check module.xml file of your last installed extension. This error generally because of this file only







                                                    share|improve this answer












                                                    share|improve this answer



                                                    share|improve this answer










                                                    answered 25 mins ago









                                                    zuber bandizuber bandi

                                                    15415




                                                    15415












                                                    • This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - From Review

                                                      – Jai
                                                      8 mins ago

















                                                    • This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - From Review

                                                      – Jai
                                                      8 mins ago
















                                                    This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - From Review

                                                    – Jai
                                                    8 mins ago





                                                    This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - From Review

                                                    – Jai
                                                    8 mins ago





                                                    protected by Community Apr 4 '18 at 5:06



                                                    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?



                                                    Popular posts from this blog

                                                    یوتیوب محتویات پیشینه[ویرایش] فناوری‌های ویدئویی[ویرایش] شوخی‌های آوریل[ویرایش] سانسور و فیلترینگ[ویرایش] آمار و ارقامی از یوتیوب[ویرایش] تأثیر اجتماعی[ویرایش] سیاست اجتماعی[ویرایش] نمودارها[ویرایش] یادداشت‌ها[ویرایش] پانویس[ویرایش] پیوند به بیرون[ویرایش] منوی ناوبریبررسی شده‌استYouTube.com[بروزرسانی]"Youtube.com Site Info""زبان‌های یوتیوب""Surprise! There's a third YouTube co-founder"سایت یوتیوب برای چندمین بار در ایران فیلتر شدنسخهٔ اصلیسالار کمانگر جوان آمریکایی ایرانی الاصل مدیر سایت یوتیوب شدنسخهٔ اصلیVideo websites pop up, invite postingsthe originalthe originalYouTube: Overnight success has sparked a backlashthe original"Me at the zoo"YouTube serves up 100 million videos a day onlinethe originalcomScore Releases May 2010 U.S. Online Video Rankingsthe originalYouTube hits 4 billion daily video viewsthe originalYouTube users uploading two days of video every minutethe originalEric Schmidt, Princeton Colloquium on Public & Int'l Affairsthe original«Streaming Dreams»نسخهٔ اصلیAlexa Traffic Rank for YouTube (three month average)the originalHelp! YouTube is killing my business!the originalUtube sues YouTubethe originalGoogle closes $A2b YouTube dealthe originalFlash moves on to smart phonesthe originalYouTube HTML5 Video Playerنسخهٔ اصلیYouTube HTML5 Video Playerthe originalGoogle tries freeing Web video with WebMthe originalVideo length for uploadingthe originalYouTube caps video lengths to reduce infringementthe originalAccount Types: Longer videosthe originalYouTube bumps video limit to 15 minutesthe originalUploading large files and resumable uploadingthe originalVideo Formats: File formatsthe originalGetting Started: File formatsthe originalThe quest for a new video codec in Flash 8the originalAdobe Flash Video File Format Specification Version 10.1the originalYouTube Mobile goes livethe originalYouTube videos go HD with a simple hackthe originalYouTube now supports 4k-resolution videosthe originalYouTube to get high-def 1080p playerthe original«Approximate YouTube Bitrates»نسخهٔ اصلی«Bigger and Better: Encoding for YouTube 720p HD»نسخهٔ اصلی«YouTube's 1080p – Failure Depends on How You Look At It»نسخهٔ اصلیYouTube in 3Dthe originalYouTube in 3D?the originalYouTube 3D Videosthe originalYouTube adds a dimension, 3D goggles not includedthe originalYouTube Adds Stereoscopic 3D Video Support (And 3D Vision Support, Too)the original«Sharing YouTube Videos»نسخهٔ اصلی«Downloading videos from YouTube is not supported, except for one instance when it is permitted.»نسخهٔ اصلی«Terms of Use, 5.B»نسخهٔ اصلی«Some YouTube videos get download option»نسخهٔ اصلی«YouTube looks out for content owners, disables video ripping»«Downloading videos from YouTube is not supported, except for one instance when it is permitted.»نسخهٔ اصلی«YouTube Hopes To Boost Revenue With Video Downloads»نسخهٔ اصلی«YouTube Mobile»نسخهٔ اصلی«YouTube Live on Apple TV Today; Coming to iPhone on June 29»نسخهٔ اصلی«Goodbye Flash: YouTube mobile goes HTML5 on iPhone and Android»نسخهٔ اصلی«YouTube Mobile Goes HTML5, Video Quality Beats Native Apps Hands Down»نسخهٔ اصلی«TiVo Getting YouTube Streaming Today»نسخهٔ اصلی«YouTube video comes to Wii and PlayStation 3 game consoles»نسخهٔ اصلی«Coming Up Next... YouTube on Your TV»نسخهٔ اصلی«Experience YouTube XL on the Big Screen»نسخهٔ اصلی«Xbox Live Getting Live TV, YouTube & Bing Voice Search»نسخهٔ اصلی«YouTube content locations»نسخهٔ اصلی«April fools: YouTube turns the world up-side-down»نسخهٔ اصلی«YouTube goes back to 1911 for April Fools' Day»نسخهٔ اصلی«Simon Cowell's bromance, the self-driving Nascar and Hungry Hippos for iPad... the best April Fools' gags»نسخهٔ اصلی"YouTube Announces It Will Shut Down""YouTube Adds Darude 'Sandstorm' Button To Its Videos For April Fools' Day"«Censorship fears rise as Iran blocks access to top websites»نسخهٔ اصلی«China 'blocks YouTube video site'»نسخهٔ اصلی«YouTube shut down in Morocco»نسخهٔ اصلی«Thailand blocks access to YouTube»نسخهٔ اصلی«Ban on YouTube lifted after deal»نسخهٔ اصلی«Google's Gatekeepers»نسخهٔ اصلی«Turkey goes into battle with Google»نسخهٔ اصلی«Turkey lifts two-year ban on YouTube»نسخهٔ اصلیسانسور در ترکیه به یوتیوب رسیدلغو فیلترینگ یوتیوب در ترکیه«Pakistan blocks YouTube website»نسخهٔ اصلی«Pakistan lifts the ban on YouTube»نسخهٔ اصلی«Pakistan blocks access to YouTube in internet crackdown»نسخهٔ اصلی«Watchdog urges Libya to stop blocking websites»نسخهٔ اصلی«YouTube»نسخهٔ اصلی«Due to abuses of religion, customs Emirates, YouTube is blocked in the UAE»نسخهٔ اصلی«Google Conquered The Web - An Ultimate Winner»نسخهٔ اصلی«100 million videos are viewed daily on YouTube»نسخهٔ اصلی«Harry and Charlie Davies-Carr: Web gets taste for biting baby»نسخهٔ اصلی«Meet YouTube's 224 million girl, Natalie Tran»نسخهٔ اصلی«YouTube to Double Down on Its 'Channel' Experiment»نسخهٔ اصلی«13 Some Media Companies Choose to Profit From Pirated YouTube Clips»نسخهٔ اصلی«Irate HK man unlikely Web hero»نسخهٔ اصلی«Web Guitar Wizard Revealed at Last»نسخهٔ اصلی«Charlie bit my finger – again!»نسخهٔ اصلی«Lowered Expectations: Web Redefines 'Quality'»نسخهٔ اصلی«YouTube's 50 Greatest Viral Videos»نسخهٔ اصلیYouTube Community Guidelinesthe original«Why did my YouTube account get closed down?»نسخهٔ اصلی«Why do I have a sanction on my account?»نسخهٔ اصلی«Is YouTube's three-strike rule fair to users?»نسخهٔ اصلی«Viacom will sue YouTube for $1bn»نسخهٔ اصلی«Mediaset Files EUR500 Million Suit Vs Google's YouTube»نسخهٔ اصلی«Premier League to take action against YouTube»نسخهٔ اصلی«YouTube law fight 'threatens net'»نسخهٔ اصلی«Google must divulge YouTube log»نسخهٔ اصلی«Google Told to Turn Over User Data of YouTube»نسخهٔ اصلی«US judge tosses out Viacom copyright suit against YouTube»نسخهٔ اصلی«Google and Viacom: YouTube copyright lawsuit back on»نسخهٔ اصلی«Woman can sue over YouTube clip de-posting»نسخهٔ اصلی«YouTube loses court battle over music clips»نسخهٔ اصلیYouTube to Test Software To Ease Licensing Fightsthe original«Press Statistics»نسخهٔ اصلی«Testing YouTube's Audio Content ID System»نسخهٔ اصلی«Content ID disputes»نسخهٔ اصلیYouTube Community Guidelinesthe originalYouTube criticized in Germany over anti-Semitic Nazi videosthe originalFury as YouTube carries sick Hillsboro video insultthe originalYouTube attacked by MPs over sex and violence footagethe originalAl-Awlaki's YouTube Videos Targeted by Rep. Weinerthe originalYouTube Withdraws Cleric's Videosthe originalYouTube is letting users decide on terrorism-related videosthe original«Time's Person of the Year: You»نسخهٔ اصلی«Our top 10 funniest YouTube comments – what are yours?»نسخهٔ اصلی«YouTube's worst comments blocked by filter»نسخهٔ اصلی«Site Info YouTube»نسخهٔ اصلیوبگاه YouTubeوبگاه موبایل YouTubeوووووو

                                                    Magento 2 - Auto login with specific URL Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Customer can't login - Page refreshes but nothing happensCustom Login page redirectURL to login with redirect URL after completionCustomer login is case sensitiveLogin with phone number or email address - Magento 1.9Magento 2: Set Customer Account Confirmation StatusCustomer auto connect from URLHow to call customer login form in the custom module action magento 2?Change of customer login error message magento2Referrer URL in modal login form

                                                    Rest API with Magento using PHP with example. Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?How to update product using magento client library for PHP?Oauth Error while extending Magento Rest APINot showing my custom api in wsdl(url) and web service list?Using Magento API(REST) via IXMLHTTPRequest COM ObjectHow to login in Magento website using REST APIREST api call for Guest userMagento API calling using HTML and javascriptUse API rest media management by storeView code (admin)Magento REST API Example ErrorsHow to log all rest api calls in magento2?How to update product using magento client library for PHP?