Description of problem: A user on the forums reported that installing modules on the latest Drupal quickstart app fails: https://openshift.redhat.com/community/forums/openshift/newbie-trying-to-add-a-module-to-drupal-install-and-it-fails#comment-27498 I reported this today using the same modules. This worked in the past so figure it's a bug in the way Drupal is installed.
I'll leave my test app running: https://drupal2-macdomain.rhcloud.com (default username/password).
Correction on first comment. I "reproduced" this today. Not "reported" this today :)
I can't reproduce this easily, can you provide some more info about what modules are failing?
I was able to install wysiwyg to that app.
I need a reproduction or I'm going to have to close this as WORKSFORME. It's *possible* that something has gotten screwed up, but without more details I have no idea.
Test this bug on devenv_2845 I create Drupal quickstart app follow: https://github.com/openshift/drupal-quickstart I can install wysiwyg to my app in the drupal admin UI. I tried pathauto module in drush and got: [drupaltest-wsundev2845.dev.rhcloud.com php]\> which drush /usr/bin/drush [drupaltest-wsundev2845.dev.rhcloud.com php]\> /usr/bin/drush pm-download pathauto Project pathauto (7.x-1.2) downloaded to [success] /var/lib/openshift/512703fdb18c3ab537000001/app-root/runtime/repo/php/sites/all/modules/pathauto. [drupaltest-wsundev2845.dev.rhcloud.com php]\> /usr/bin/drush pm-enable pathauto Command pm-enable needs a higher bootstrap level to run - you will need invoke drush from a more functional Drupal environment to [error] run this command. The drush command 'pm-enable pathauto' could not be executed. [error] Drush was not able to start (bootstrap) the Drupal database. [error] Hint: This error often occurs when Drush is trying to bootstrap a site that has not been installed or does not have a configured database. Drush was attempting to connect to : Drupal version : 7.7 Site URI : http://default Database driver : mysql Database hostname : Database username : Database name : Default theme : garland Administration theme: garland PHP configuration : /etc/php.ini Drush version : 4.1 Drush configuration: Drush alias files : Drupal root : /var/lib/openshift/512703fdb18c3ab537000001/app-root/runtime/repo/php Site path : sites/default Modules path : sites/all/modules Themes path : sites/all/themes File directory path: sites/default/files Private file directory path: sites/default/files %paths : Array You can select another site with a working database setup by specifying the URI to use with the --uri parameter on the command line or $options['uri'] in your drushrc.php file.
This error is because of the location you ran drush from. You either need to be in the PHP dir, or pass --uri /var/lib/openshift/512703fdb18c3ab537000001/app-root/runtime/repo/php Please give that a try. You should also be able to install the module from the UI after login.
Created attachment 701034 [details] error During installing Pathauto in UI,I met error as attachment.But after that, continue to install,and prompt me that install successfully. And then,I find I can not enable Pathauto , please refer to attachment.
Created attachment 701035 [details] cannot enable
You're running on drupal 7.7 which means you're using the old quickstart (the one in quickstarts.json hasn't been updated yet). You need to configure your devenv to set COMMUNITY_QUICKSTART_URL to https://<host of devenv>:8118/api
Verified on devenv_2853. Step: 1.install new modules in UI 2.install new modules in drush Result: 1.Installation was completed successfully. 2.[drupalt-wsundev2853.dev.rhcloud.com ~]\> cd app-root/repo/php/ [drupalt-wsundev2853.dev.rhcloud.com php]\> ../../bin/drush pm-download pathauto Project pathauto (7.x-1.2) downloaded to [success] /var/lib/openshift/512ad198da0a61399e000006/app-root/data/downloads/drupal-7.20/sites/all/modules/pathauto. [drupalt-wsundev2853.dev.rhcloud.com php]\> ../../bin/drush pm-enable pathauto The following projects have unmet dependencies: pathauto requires token Would you like to download them? (y/n): y Project token (7.x-1.5) downloaded to [success] /var/lib/openshift/512ad198da0a61399e000006/app-root/data/downloads/drupal-7.20/sites/all/modules/token. The following extensions will be enabled: pathauto, token Do you really want to continue? (y/n): y token was enabled successfully. [ok] pathauto was enabled successfully.
(In reply to comment #5) > I need a reproduction or I'm going to have to close this as WORKSFORME. > It's *possible* that something has gotten screwed up, but without more > details I have no idea. It's working for me now as well (through the admin UI). Not exactly sure what the issue was outside of the error messages thrown at the time.