Hi everyone,

this is my first issue on drupal, sorry about that. I installed on my Mac OS X Server, drupal 7.20, XAMMP 1.7.3, and drush 5.8 without errors. I downloaded the views_ui module without problem but when I tried to enable it with drush en views_ui command I got the following message :

omega:d7dev admin$ drush en views_ui
Command pm-enable needs a higher bootstrap level to run - you will need to invoke drush from a more functional [error]
Drupal environment to run this command.
The drush command 'en views_ui' could not be executed. [error]
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.

Drush was attempting to connect to:
Drupal version : 7.20
Site URI : http://default
Database driver : mysql
Database hostname : 127.0.0.1
Database username : root
Database name : d7dev
Default theme : garland
Administration theme: garland
PHP configuration : /private/etc/php.ini /Users/admin/.drush/php.ini /Users/admin/.drush/drush.ini
Drush version : 5.8
Drush configuration:
Drupal root : /Applications/XAMPP/htdocs/d7dev
Site path : sites/default
Modules path : sites/all/modules
Themes path : sites/all/themes
File directory path: sites/default/files
%paths : Array

I removed and re-installed XAMMP and drush !
I browsed this site and internet but I did not find any working suggestion.

There is someone that can help me ?

Thanks in advance

John

Comments

cfusch’s picture

Same here. (ubuntu 12.04) Drush seems to work on other commands, but chokes on pm-enable and en. I get the same error. The only difference is that when I do a drush status and drush does not provide the PHP configuration or the Drush configuration. I've cruised all over the internet and forum and find a lot of noise about the problem, but no solutions. Here's my status:

Drupal version : 7.21
Site URI : http://default
Database driver : mysql
Database hostname : localhost
Database username : test_user
Database name : test
Default theme : garland
Administration theme : garland
PHP configuration :
Drush version : 4.5
Drush configuration :
Drush alias files :
Drupal root : /opt/lampp/htdocs/test
Site path : sites/default
File directory path : sites/default/files

greg.1.anderson’s picture

Version: 5.x-1.1 » 8.x-6.x-dev
Status: Active » Closed (won't fix)
Issue tags: +Needs migration

This issue was marked closed (won't fix) because Drush has moved to Github.

If you still need help, please ask your question again on Drupal Answers and then post a link here to the new question. Please also change the status of this issue to closed (duplicate).

Use our Github project for contributing code, or reporting bugs, or requesting features.