I cd /var/www/html/directory which is the drupal multi site installation I am modifying a Bartik theme
drush dl themes and modules works well but drush en modulename and drush cc produces error below; What needs to be done to fix this please? google is not much help here. Thanks Roger
Command cache-clear needs a higher bootstrap level to run - you will [error] need invoke drush from a more functional Drupal environment to run this command. The drush command 'cc' 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.8 Site URI : http://default Default theme : garland Administration theme: garland PHP configuration : /etc/php.ini Drush version : 4.5 Drush configuration: Drush alias files : Drupal root : /var/www/html/directory Site path : sites/default Modules path : sites/all/modules Themes path : sites/all/themes 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.
Have you tried changing directories to /sites/{multisite}/ and then running "crush cc all" instead of being in the root directory?
Todd
On 14 Sep 2011, at 22:12, Roger wrote:
I cd /var/www/html/directory which is the drupal multi site installation I am modifying a Bartik theme
drush dl themes and modules works well but drush en modulename and drush cc produces error below; What needs to be done to fix this please? google is not much help here. Thanks Roger
Command cache-clear needs a higher bootstrap level to run - you will [error] need invoke drush from a more functional Drupal environment to run this command. The drush command 'cc' 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.8 Site URI : http://default Default theme : garland Administration theme: garland PHP configuration : /etc/php.ini Drush version : 4.5 Drush configuration: Drush alias files : Drupal root : /var/www/html/directory Site path : sites/default Modules path : sites/all/modules Themes path : sites/all/themes 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.
-- [ Drupal support list | http://lists.drupal.org/ ]
I 2nd this opinion - drush isn't sure which of your multi-sites you are trying to target. You'll either need to set up drush aliases or 'cd' to the specific multi-site you want to affect.
-Benj http://dtek.net
On Wed, Sep 14, 2011 at 8:15 PM, Todd todd@savagevenus.net wrote:
Have you tried changing directories to /sites/{multisite}/ and then running "crush cc all" instead of being in the root directory?
Todd
On 14 Sep 2011, at 22:12, Roger wrote:
I cd /var/www/html/directory which is the drupal multi site installation I am modifying a Bartik theme
drush dl themes and modules works well but drush en modulename and drush cc produces error below; What needs to be done to fix this please? google is not much help here. Thanks Roger
Command cache-clear needs a higher bootstrap level to run - you will
[error]
need invoke drush from a more functional Drupal environment to run this command. The drush command 'cc' 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.8 Site URI : http://default Default theme : garland Administration theme: garland PHP configuration : /etc/php.ini Drush version : 4.5 Drush configuration: Drush alias files : Drupal root : /var/www/html/directory Site path : sites/default Modules path : sites/all/modules Themes path : sites/all/themes 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.
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
Have you tried doing that manually?
Nancy Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
From: Roger arelem@bigpond.com To: support@drupal.org Sent: Wednesday, September 14, 2011 10:12 PM Subject: [support] Drush problem
I cd /var/www/html/directory which is the drupal multi site installation I am modifying a Bartik theme
drush dl themes and modules works well but drush en modulename and drush cc produces error below; What needs to be done to fix this please? google is not much help here. Thanks Roger
Command cache-clear needs a higher bootstrap level to run - you will [error] need invoke drush from a more functional Drupal environment to run this command. The drush command 'cc' 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.8 Site URI : http://default Default theme : garland Administration theme: garland PHP configuration : /etc/php.ini Drush version : 4.5 Drush configuration: Drush alias files : Drupal root : /var/www/html/directory Site path : sites/default Modules path : sites/all/modules Themes path : sites/all/themes 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.
-- [ Drupal support list | http://lists.drupal.org/ ]