Unable to download to /modules: "warning: SimpleXMLElement::xpath(): Invalid expression"

bigmack83 - June 25, 2009 - 20:01
Project:Drush
Version:All-Versions-HEAD
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

I recently updated my all versions drush to a newer version, i still had the first release of it. Anywho, when i tried the 'dl' command

drushs dl backlinks talk interwiki

I got this in return:

Unable to download  to /var/www/dev-shamce/public/sites/all/modules/ from                           [error]
Project talk (6.x-1.5) downloaded to /var/www/dev-shamce/public/sites/all/modules/.                 [success]
Project interwiki (6.x-1.x-dev) downloaded to /var/www/dev-shamce/public/sites/all/modules/.        [success]
warning: SimpleXMLElement::xpath(): Invalid expression in                                           [warning]
/var/www/drupal-files/drush/commands/pm/pm.drush.inc on line 802.
warning: SimpleXMLElement::xpath(): xmlXPathEval: evaluation failed in                              [warning]
/var/www/drupal-files/drush/commands/pm/pm.drush.inc on line 802.
An error occurred at function : drush_pm_dl                                                         [error]

Thoug it still seems to work now and then with some modules. I currently have a mulitsite setup with my directories laid out as follows:

/var/www/drupal-files/drush
/var/www/drupal-files/sites/all/modules
/var/www/drupal-files/sites/all/themes
/var/www/drupal-files/sites/all/libraries
/var/www/drupal-site1
/var/www/drupal-site2

the all/* folders are symlinks from /var/www/drupal-site*/sites/all/* to the /var/www/drupal-files/sites/all/* dirs which has worked for me for a while until now. Like this i can have one modules/themes/libraries dir for all the common modules on the sites to help the maintenance and to help keep track of hacked/patched modules

Im just not sure where to start to try and figure out how to fix this. Any help is greatly appreciated

#1

rsvelko - August 28, 2009 - 19:58
Status:active» postponed (maintainer needs more info)

This would be the 3rd issue I know of dealing with drush and symlink problems...

My advice N1 is that you move drush out of the drupal root.

I personally do not use the symlink module maintenance method because although it makes the update itself easy on say 20 sites - you still have to manually test them and do it fast if they are live sites...
(of course - for important projects we have test (for editors) and dev(for developers) sites ...)

So I sacrificed speed for flexibility - every site is completely separate and I update the site when I decide that it needs urgent updates and only the modules I consider urgent...

And since drush updates fast after all It is not so much speed I sacrificed but I rather chose to deal with things one site at a time - each site has its personality :) I fight smaller battles :)

After you move drush out of the drupal dir we can try do debug the error msg above... Please report back if the problem persists still.

#2

bigmack83 - August 28, 2009 - 21:29
Status:postponed (maintainer needs more info)» closed

after i moved around some files and found a few permissions issues with some files, and moved drush out of root i do not have the problem anymore. So im not sure if it was a permissions thing or a drush being in the site folder. but either way i no longer have this problem. marking as closed.

 
 

Drupal is a registered trademark of Dries Buytaert.