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

Can't get Omega Wizard to work, nor getting contact with database #1575

Closed
seiteom opened this issue Aug 27, 2015 · 4 comments
Closed

Can't get Omega Wizard to work, nor getting contact with database #1575

seiteom opened this issue Aug 27, 2015 · 4 comments

Comments

@seiteom
Copy link

seiteom commented Aug 27, 2015

Hi!

I'm fairly new to Drupal and particularly to Drush.

Having the idea to create a subtheme of Omega with Drush, I proceeded to install Drush using these instructions: https://www.youtube.com/watch?v=x3-OlfI3bAI.

I soon became aware that you now need to install Drush using Composer, so I did that. I deleted the previous installation, but want to mention that in case the subsequent problem might have anything to do with that.

Anyway, I just can't get anything to work. When I write "drush help --filter:omega", the software shows all commands (including, in fact, the Omega commands).

When I write "drush omega-wizard", the following error message is given:

The drush command 'omega-wizard' could not be found. Run drush [error] cache-clear drush to clear the commandfile cache if you have
installed new extensions.
Drush was not able to start (bootstrap) the Drupal database. [error]
Hint: This may occur when Drush is trying to:

  • bootstrap a site that has not been installed or does not have a
    configured database. In this case you can select another site with a
    working database setup by specifying the URI to use with the --uri
    parameter on the command line. See drush topic docs-aliases for
    details.
  • connect the database through a socket. The socket file may be
    wrong or the php-cli may have no access to it in a jailed shell. See
    http://drupal.org/node/1428638 for details.
    I guess that means that Drush cannot connect to the database either (of course, my Drupal installation has no problem doing that).

I am running Drush from the home catalogue of my Drupal installation (it's on a server). I have tried emptying the cache several times. I have tried replacing localhost with 127.0.0.1. The setting.php-file is in the /sites/default catalogue, so no problems there. I have also tried going back to Drush 7.0 without any change.

So what am I doing wrong? Might I be better off uninstalling and reinstalling Drush? Could anyone give me a hint on how to do that?

Thank you! /Andreas

@discipolo
Copy link

@weitzman
Copy link
Member

weitzman commented Sep 8, 2015

In the future, please ask support questions on Drupal Answers and contribute code or report bugs on Github.

@weitzman weitzman closed this as completed Sep 8, 2015
@C13L0
Copy link

C13L0 commented Sep 10, 2015

This is actually a bug which has something to do with drush version 8. In order to use the Omega 4 drush commands, you will need to switch your drush version.

$ cd .composer/vendor/drush/drush
$ git checkout remotes/origin/7.x
$ drush cc drush

You will now be able to run the command: $ drush omega-wizard
Changing drush version also works to export your theme.info file: $ drush omega-export themename --revert

To switch back to master (drush 8)
$ cd .composer/vendor/drush/drush
$ git checkout master
$ drush cc drush

@weitzman
Copy link
Member

See #1878

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

4 participants