no commands defined in the “setup” namespace. in Magento2 The 2019 Stack Overflow Developer Survey Results Are InThere are no commands defined in the “setup” namespace : Magento 2bin/magento setup:upgrade not runningMagento 2 - There are no commands defined in the “setup” namespace on windowsApply code changes in module without removing static dataError when running bin/magento setup:upgrade after creating Module on Magento 2Autoload Error: Module has been already definedCannot install module in Magento 2Child theme does not load menu or parent theme componentsArea Code not set when Model is used while using Upgrade Data ScriptSSH Command Line Error on fresh install of Magento 2.2.5 on BitnamiCant access setup(or any files) of magento2 in browser
Why couldn't they take pictures of a closer black hole?
Did any laptop computers have a built-in 5 1/4 inch floppy drive?
Why don't hard Brexiteers insist on a hard border to prevent illegal immigration after Brexit?
Loose spokes after only a few rides
What to do when moving next to a bird sanctuary with a loosely-domesticated cat?
Did Scotland spend $250,000 for the slogan "Welcome to Scotland"?
Why can't devices on different VLANs, but on the same subnet, communicate?
What is this sharp, curved notch on my knife for?
How to display lines in a file like ls displays files in a directory?
Can there be female White Walkers?
Is bread bad for ducks?
Can withdrawing asylum be illegal?
Is it ethical to upload a automatically generated paper to a non peer-reviewed site as part of a larger research?
Computing the expectation of the number of balls in a box
How to notate time signature switching consistently every measure
Will it cause any balance problems to have PCs level up and gain the benefits of a long rest mid-fight?
Pokemon Turn Based battle (Python)
Can a rogue use sneak attack with weapons that have the thrown property even if they are not thrown?
What is the meaning of Triage in Cybersec world?
Accepted by European university, rejected by all American ones I applied to? Possible reasons?
How to charge AirPods to keep battery healthy?
Why doesn't shell automatically fix "useless use of cat"?
Compute the product of 3 dictionaries and concatenate keys and values
Cooking pasta in a water boiler
no commands defined in the “setup” namespace. in Magento2
The 2019 Stack Overflow Developer Survey Results Are InThere are no commands defined in the “setup” namespace : Magento 2bin/magento setup:upgrade not runningMagento 2 - There are no commands defined in the “setup” namespace on windowsApply code changes in module without removing static dataError when running bin/magento setup:upgrade after creating Module on Magento 2Autoload Error: Module has been already definedCannot install module in Magento 2Child theme does not load menu or parent theme componentsArea Code not set when Model is used while using Upgrade Data ScriptSSH Command Line Error on fresh install of Magento 2.2.5 on BitnamiCant access setup(or any files) of magento2 in browser
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have problem when I run this command:
When running this commond after making custom modules.
php bin/magento setup:upgrade
I also try running the command.
sudo chmod -R 777 var pub
sudo php bin/magento setup:upgrade
But still gives same error.

magento-2.1 error setup-upgrade
add a comment |
I have problem when I run this command:
When running this commond after making custom modules.
php bin/magento setup:upgrade
I also try running the command.
sudo chmod -R 777 var pub
sudo php bin/magento setup:upgrade
But still gives same error.

magento-2.1 error setup-upgrade
share a screenshot of the command you are entering to get an idea of the location and exactly what you are trying.
– Dharam
Nov 14 '17 at 9:11
Please update the error you're getting
– Vivek Kumar
Nov 14 '17 at 9:13
I shared screnshot of my terminal.Hope you will getting exact bug.
– Anikesh Shahi
Nov 14 '17 at 9:23
add a comment |
I have problem when I run this command:
When running this commond after making custom modules.
php bin/magento setup:upgrade
I also try running the command.
sudo chmod -R 777 var pub
sudo php bin/magento setup:upgrade
But still gives same error.

magento-2.1 error setup-upgrade
I have problem when I run this command:
When running this commond after making custom modules.
php bin/magento setup:upgrade
I also try running the command.
sudo chmod -R 777 var pub
sudo php bin/magento setup:upgrade
But still gives same error.

magento-2.1 error setup-upgrade
magento-2.1 error setup-upgrade
edited Nov 14 '17 at 12:11
Prince Patel
14.6k65481
14.6k65481
asked Nov 14 '17 at 7:05
Anikesh ShahiAnikesh Shahi
152215
152215
share a screenshot of the command you are entering to get an idea of the location and exactly what you are trying.
– Dharam
Nov 14 '17 at 9:11
Please update the error you're getting
– Vivek Kumar
Nov 14 '17 at 9:13
I shared screnshot of my terminal.Hope you will getting exact bug.
– Anikesh Shahi
Nov 14 '17 at 9:23
add a comment |
share a screenshot of the command you are entering to get an idea of the location and exactly what you are trying.
– Dharam
Nov 14 '17 at 9:11
Please update the error you're getting
– Vivek Kumar
Nov 14 '17 at 9:13
I shared screnshot of my terminal.Hope you will getting exact bug.
– Anikesh Shahi
Nov 14 '17 at 9:23
share a screenshot of the command you are entering to get an idea of the location and exactly what you are trying.
– Dharam
Nov 14 '17 at 9:11
share a screenshot of the command you are entering to get an idea of the location and exactly what you are trying.
– Dharam
Nov 14 '17 at 9:11
Please update the error you're getting
– Vivek Kumar
Nov 14 '17 at 9:13
Please update the error you're getting
– Vivek Kumar
Nov 14 '17 at 9:13
I shared screnshot of my terminal.Hope you will getting exact bug.
– Anikesh Shahi
Nov 14 '17 at 9:23
I shared screnshot of my terminal.Hope you will getting exact bug.
– Anikesh Shahi
Nov 14 '17 at 9:23
add a comment |
5 Answers
5
active
oldest
votes
Run php bin/magento list command. It will listed all the magento 2 commands interface if everything working correctly. If something is going wrong, this will also give you error message that why it is failing.
You can check with https://magento.stackexchange.com/a/91696/1905 also.
I already apply this step.which are mentioned from previous occurs query .
– Anikesh Shahi
Nov 14 '17 at 7:28
It may be due to folder permission of var and pub. Also checkchownpermission.
– zed Blackbeard
Nov 14 '17 at 7:30
add a comment |
Try this one :
php -f bin/magento setup:upgrade
Same error occurs, not changes something .
– Anikesh Shahi
Nov 14 '17 at 7:31
add a comment |
Please check the path of command you entered.
Also please try this
sudo php bin/magento setup:upgrade
path is correct,that is magento root directory.
– Anikesh Shahi
Nov 14 '17 at 7:30
add a comment |
empty var/generation and var/di. clear the cache.
check folder permissions and then run magento list.
if that gives a list of commands you can run setup:upgrade.
otherwise it should give an error you can post here.
add a comment |
I got this error for all commands in cli (not just setup) when I had a custom module that I was working on that didn't have a module.xml file. (More precisely, it did have one but I put it in the wrong place. :-/ )
If you're getting this while actively working on a module, check to see if your module's etc/module.xml is missing or unreadable or otherwise incorrect.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f201369%2fno-commands-defined-in-the-setup-namespace-in-magento2%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
5 Answers
5
active
oldest
votes
5 Answers
5
active
oldest
votes
active
oldest
votes
active
oldest
votes
Run php bin/magento list command. It will listed all the magento 2 commands interface if everything working correctly. If something is going wrong, this will also give you error message that why it is failing.
You can check with https://magento.stackexchange.com/a/91696/1905 also.
I already apply this step.which are mentioned from previous occurs query .
– Anikesh Shahi
Nov 14 '17 at 7:28
It may be due to folder permission of var and pub. Also checkchownpermission.
– zed Blackbeard
Nov 14 '17 at 7:30
add a comment |
Run php bin/magento list command. It will listed all the magento 2 commands interface if everything working correctly. If something is going wrong, this will also give you error message that why it is failing.
You can check with https://magento.stackexchange.com/a/91696/1905 also.
I already apply this step.which are mentioned from previous occurs query .
– Anikesh Shahi
Nov 14 '17 at 7:28
It may be due to folder permission of var and pub. Also checkchownpermission.
– zed Blackbeard
Nov 14 '17 at 7:30
add a comment |
Run php bin/magento list command. It will listed all the magento 2 commands interface if everything working correctly. If something is going wrong, this will also give you error message that why it is failing.
You can check with https://magento.stackexchange.com/a/91696/1905 also.
Run php bin/magento list command. It will listed all the magento 2 commands interface if everything working correctly. If something is going wrong, this will also give you error message that why it is failing.
You can check with https://magento.stackexchange.com/a/91696/1905 also.
answered Nov 14 '17 at 7:23
zed Blackbeardzed Blackbeard
1,61231441
1,61231441
I already apply this step.which are mentioned from previous occurs query .
– Anikesh Shahi
Nov 14 '17 at 7:28
It may be due to folder permission of var and pub. Also checkchownpermission.
– zed Blackbeard
Nov 14 '17 at 7:30
add a comment |
I already apply this step.which are mentioned from previous occurs query .
– Anikesh Shahi
Nov 14 '17 at 7:28
It may be due to folder permission of var and pub. Also checkchownpermission.
– zed Blackbeard
Nov 14 '17 at 7:30
I already apply this step.which are mentioned from previous occurs query .
– Anikesh Shahi
Nov 14 '17 at 7:28
I already apply this step.which are mentioned from previous occurs query .
– Anikesh Shahi
Nov 14 '17 at 7:28
It may be due to folder permission of var and pub. Also check
chown permission.– zed Blackbeard
Nov 14 '17 at 7:30
It may be due to folder permission of var and pub. Also check
chown permission.– zed Blackbeard
Nov 14 '17 at 7:30
add a comment |
Try this one :
php -f bin/magento setup:upgrade
Same error occurs, not changes something .
– Anikesh Shahi
Nov 14 '17 at 7:31
add a comment |
Try this one :
php -f bin/magento setup:upgrade
Same error occurs, not changes something .
– Anikesh Shahi
Nov 14 '17 at 7:31
add a comment |
Try this one :
php -f bin/magento setup:upgrade
Try this one :
php -f bin/magento setup:upgrade
answered Nov 14 '17 at 7:12
VerduVerdu
1,075523
1,075523
Same error occurs, not changes something .
– Anikesh Shahi
Nov 14 '17 at 7:31
add a comment |
Same error occurs, not changes something .
– Anikesh Shahi
Nov 14 '17 at 7:31
Same error occurs, not changes something .
– Anikesh Shahi
Nov 14 '17 at 7:31
Same error occurs, not changes something .
– Anikesh Shahi
Nov 14 '17 at 7:31
add a comment |
Please check the path of command you entered.
Also please try this
sudo php bin/magento setup:upgrade
path is correct,that is magento root directory.
– Anikesh Shahi
Nov 14 '17 at 7:30
add a comment |
Please check the path of command you entered.
Also please try this
sudo php bin/magento setup:upgrade
path is correct,that is magento root directory.
– Anikesh Shahi
Nov 14 '17 at 7:30
add a comment |
Please check the path of command you entered.
Also please try this
sudo php bin/magento setup:upgrade
Please check the path of command you entered.
Also please try this
sudo php bin/magento setup:upgrade
answered Nov 14 '17 at 7:21
amsams
137
137
path is correct,that is magento root directory.
– Anikesh Shahi
Nov 14 '17 at 7:30
add a comment |
path is correct,that is magento root directory.
– Anikesh Shahi
Nov 14 '17 at 7:30
path is correct,that is magento root directory.
– Anikesh Shahi
Nov 14 '17 at 7:30
path is correct,that is magento root directory.
– Anikesh Shahi
Nov 14 '17 at 7:30
add a comment |
empty var/generation and var/di. clear the cache.
check folder permissions and then run magento list.
if that gives a list of commands you can run setup:upgrade.
otherwise it should give an error you can post here.
add a comment |
empty var/generation and var/di. clear the cache.
check folder permissions and then run magento list.
if that gives a list of commands you can run setup:upgrade.
otherwise it should give an error you can post here.
add a comment |
empty var/generation and var/di. clear the cache.
check folder permissions and then run magento list.
if that gives a list of commands you can run setup:upgrade.
otherwise it should give an error you can post here.
empty var/generation and var/di. clear the cache.
check folder permissions and then run magento list.
if that gives a list of commands you can run setup:upgrade.
otherwise it should give an error you can post here.
answered Nov 14 '17 at 12:16
sterossteros
859730
859730
add a comment |
add a comment |
I got this error for all commands in cli (not just setup) when I had a custom module that I was working on that didn't have a module.xml file. (More precisely, it did have one but I put it in the wrong place. :-/ )
If you're getting this while actively working on a module, check to see if your module's etc/module.xml is missing or unreadable or otherwise incorrect.
add a comment |
I got this error for all commands in cli (not just setup) when I had a custom module that I was working on that didn't have a module.xml file. (More precisely, it did have one but I put it in the wrong place. :-/ )
If you're getting this while actively working on a module, check to see if your module's etc/module.xml is missing or unreadable or otherwise incorrect.
add a comment |
I got this error for all commands in cli (not just setup) when I had a custom module that I was working on that didn't have a module.xml file. (More precisely, it did have one but I put it in the wrong place. :-/ )
If you're getting this while actively working on a module, check to see if your module's etc/module.xml is missing or unreadable or otherwise incorrect.
I got this error for all commands in cli (not just setup) when I had a custom module that I was working on that didn't have a module.xml file. (More precisely, it did have one but I put it in the wrong place. :-/ )
If you're getting this while actively working on a module, check to see if your module's etc/module.xml is missing or unreadable or otherwise incorrect.
answered 6 mins ago
S AdamsonS Adamson
818
818
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f201369%2fno-commands-defined-in-the-setup-namespace-in-magento2%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
share a screenshot of the command you are entering to get an idea of the location and exactly what you are trying.
– Dharam
Nov 14 '17 at 9:11
Please update the error you're getting
– Vivek Kumar
Nov 14 '17 at 9:13
I shared screnshot of my terminal.Hope you will getting exact bug.
– Anikesh Shahi
Nov 14 '17 at 9:23