Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Error on config:export:content:type #2857

Closed
psampaz opened this issue Oct 29, 2016 · 1 comment
Closed

Error on config:export:content:type #2857

psampaz opened this issue Oct 29, 2016 · 1 comment

Comments

@psampaz
Copy link

psampaz commented Oct 29, 2016

I have a clean installation of drupal 8.2.1 on PHP 7.0.12 and I installed drupal console 1.0.0-rc6 locally using composer (console lives in drupal's vendor folder).

I have run drupal init --override --no-interaction without any problems and drupal list works perfectly.

The problem is that whenever i try to run config:export:content:type I get the following message

Error: Call to a member function discoverModules() on null in Drupal\Console\Command\Config\ExportContentTypeCommand->moduleQuestion() (line 26 of /home/sshlmserver/public_html/or/vendor/drupal/console/src/Command/Shared/ModuleTrait.php).

If I pass the --module option in the command (like --module=node) in order not to trigger the module question i get the following error

Error: Call to undefined method Drupal\Console\Command\Config\ExportContentTypeCommand::getDrupalService() in Drupal\Console\Command\Config\ExportContentTypeCommand->interact() (line 90 of /home/sshlmserver/public_html/or/vendor/drupal/console/src/Command/Config/ExportContentTypeCommand.php).

any ideas?

@psampaz
Copy link
Author

psampaz commented Nov 2, 2016

This is was fixed on 1.0.0-rc7 with #2870

closing this, thanks

@psampaz psampaz closed this as completed Nov 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant