Closed (won't fix)
Project:
Drush
Version:
8.x-6.x-dev
Component:
PM (dl, en, up ...)
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
22 Dec 2010 at 19:01 UTC
Updated:
11 Sep 2013 at 04:58 UTC
Trying to download userpoints_contrib in Drupal 7 causes an unrecoverable error:
$ drush dl userpoints_contrib
No release history available for userpoints_contrib [error]
7.x.
PHP Fatal error: Call to a member function xpath() on a non-object in /home/mikechelen/drush/commands/pm/pm.drush.inc on line 1967
Drush command terminated abnormally due to an [error]
unrecoverable error.
Error: Call to a member function xpath() on a
non-object in
/home/mikechelen/drush/commands/pm/pm.drush.inc, line
1967Full output of: drush -vd dl userpoints_contrib
Bootstrap to phase 0. [0.04 sec, 1.46 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.04 sec, 1.6 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [bootstrap]
[0.06 sec, 3.35 MB]
Initialized Drupal 7.0-dev root directory at [notice]
/home/mikechelen/drupal-7.x-dev [0.08 sec, 4.31 MB]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [bootstrap]
[0.08 sec, 4.31 MB]
Initialized Drupal site test.mikechelen.com at [notice]
sites/test.mikechelen.com [0.08 sec, 4.31 MB]
Drush bootstrap phase : [bootstrap]
_drush_bootstrap_drupal_configuration() [0.08 sec, 4.31
MB]
Drush bootstrap phase : [bootstrap]
_drush_bootstrap_drupal_database() [0.09 sec, 4.32 MB]
Successfully connected to the Drupal database. [0.09 [bootstrap]
sec, 4.32 MB]
Drush bootstrap phase : _drush_bootstrap_drupal_full() [bootstrap]
[0.09 sec, 4.79 MB]
Drush bootstrap phase : _drush_bootstrap_drupal_login()[bootstrap]
[0.31 sec, 15.23 MB]
Successfully logged into Drupal as Anonymous (uid=0) [bootstrap]
[0.31 sec, 15.4 MB]
Found command: pm-download (commandfile=pm) [0.31 sec, [bootstrap]
15.4 MB]
Initializing drush commandfile: user [0.31 sec, 15.4 [bootstrap]
MB]
Downloading release history from [notice]
http://updates.drupal.org/release-history/userpoints_contrib/7.x
[0.31 sec, 15.43 MB]
No release history available for userpoints_contrib [31;40m[1m[error][0m
7.x. [0.64 sec, 15.44 MB]
Drush command terminated abnormally due to an [31;40m[1m[error][0m
unrecoverable error.
Error: Call to a member function xpath() on a
non-object in
/home/mikechelen/drush/commands/pm/pm.drush.inc, line
1967 [0.64 sec, 15.44 MB]
PHP Fatal error: Call to a member function xpath() on a non-object in /home/mikechelen/drush/commands/pm/pm.drush.inc on line 1967
Comments
Comment #1
jonhattanUnable to reproduce. Once drush print "No release history available ..." it return FALSE so it doesn't run the next lines calling xpath(). Try with latest rc or HEAD. Perhaps it was a bug between rc3 and rc4.
Comment #2
George_OConnor commenteddrush -vd pm-download cck
Found command: pm-download (commandfile=pm) [0.04 sec, 2.62 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.04 sec, 2.63 MB] [bootstrap]
Initialized Drupal root directory at /var/www/d619/sites/MYWEBSITE.com [0.04 sec, 2.8 MB] [notice]
Downloading release history from http://updates.drupal.org/release-history/cck/.x [0.05 sec, 2.82 MB] [notice]
No release history available for cck .x. [0.22 sec, 2.83 MB] [error]
An error occurred at function : drush_pm_download [0.22 sec, 2.82 MB] [error]
Command dispatch complete [0.22 sec, 2.81 MB] [notice]
Peak memory usage was 2.84 MB [0.22 sec, 2.81 MB] [memory]
Comment #3
moshe weitzman commentedThe URL it is incomplete. See http://updates.drupal.org/release-history/cck/.x. That should be 6..x, not .x
The line above shows a drupal root which looks a lot like a site dir and not a drupal root. maybe you have setup a site alias improperly for this site. please paste in the command the directory where you are issueing it.
Comment #4
greg.1.anderson commentedThis issue was marked
closed (won't fix)because Drush has moved to Github.If desired, you may copy this bug to our Github project and then post a link here to the new issue. Please also change the status of this issue to
closed (duplicate).Please ask support questions on Drupal Answers.