Last month my pc and notebook died and i took the opportunity to strengthen my setup.
A couple of weeks were spent on learning (ubuntu) linux to create a portable server on virtualbox. I had to be able to patch and i wanted to learn to use drush to minimize the time spent on downloading and updating.
Although I am not yet at the stage where i can patch, I am finalizing a multisite setup.

My installation steps have always been:

  1. create database
  2. download drupal & language pack
  3. create log directory (apparently not a showstopper on ubuntu but it used to be on windows)
  4. create settings.php file
  5. download modules and themes
  6. run install

Doing that, I ran into the following error at step 5 while using drush dl cck:

Drush command could not be completed.

Just before, Drush had been working fine. I was already looking at my apache settings when it occurred to me that i had just created a new (empty) settings.php file (touch sites/default/settings.php).
Doing that kills Drush.

The easy solution is to switch step 4 and 5.
After installing your site (6), Drush should be okay again.

Comments

rossmerriam’s picture

thank you!

goechsler’s picture

I had this error message on a fresh install on a gentoo box.
Solution: compile php with the use flag simplexml enabled.
This is a gentoo specific php issue, but it might save some of your time...
see http://php.net/manual/en/simplexml.installation.php

mirousek’s picture

Thank you :)
Thanks to your comment, solution of my problem was 30 minutes faster :)

Miroušek

julien verkest’s picture

Thank you !

cotasson’s picture

In my case, I had this error because I tried to implement a hook_init().
Commenting this function removed all Drush errors.

HTH.