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:
- create database
- download drupal & language pack
- create log directory (apparently not a showstopper on ubuntu but it used to be on windows)
- create settings.php file
- download modules and themes
- 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
thank you!
thank you!
On Gentoo: Same problem, different solution
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
Thank you :) Thanks to your
Thank you :)
Thanks to your comment, solution of my problem was 30 minutes faster :)
Miroušek
Thank you !
Thank you !
In my case, I had this error
In my case, I had this error because I tried to implement a hook_init().
Commenting this function removed all Drush errors.
HTH.