Running on Ubuntu 12.04. There is a drupal 7.17 update in the wings for my site, but for the past couple of weeks I've been getting this issue when I run drush:

Obtaining release notes for above projects...
PHP Fatal error: Call to a member function asXML() on a non-object in /usr/share/php/drush/commands/pm/release_info/updatexml.inc on line 218
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Call to a member function asXML() on a non-object in
/usr/share/php/drush/commands/pm/release_info/updatexml.inc, line 218

At which point the core update aborts.

Would really like to get to the bottom of this.

CommentFileSizeAuthor
#3 drush-1839378.patch6.74 KBjonhattan
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

MentalFS’s picture

I'm having the same problem. Updating a Drupal 6 sites works fine, though.

Here is the output with --verbose --debug:

Obtaining release notes for above projects...
Downloading release history from http://updates.drupal.org/release-history/drupal/7.x [2.31 sec, 18.38 MB]      [notice]
Executing: which wget
  /usr/bin/wget
Executing: wget -q --timeout=30 -O /tmp/download_fileTROYHr http://updates.drupal.org/release-history/drupal/7.x
Calling drush_delete_dir(/tmp/drupalmjCvZn, 1) [3.34 sec, 18.38 MB]                                              [debug]
Calling is_readable(/tmp/download_fileTROYHr) [3.34 sec, 18.38 MB]                                               [debug]
Calling is_writable(/tmp) [3.34 sec, 18.38 MB]                                                                   [debug]
Calling rename(/tmp/download_fileTROYHr, /tmp/drupalmjCvZn) [3.34 sec, 18.38 MB]                                 [debug]
Release link for drupal (7.16) project was found. [3.4 sec, 18.45 MB]                                           [notice]
Successfully parsed and loaded the HTML contained in the release notes' page for drupal (7.16) project. [4.68   [notice]
sec, 18.47 MB]
Release link for drupal (7.17) project was found. [4.68 sec, 18.47 MB]                                          [notice]
Successfully parsed and loaded the HTML contained in the release notes' page for drupal (7.17) project. [5.69   [notice]
sec, 18.5 MB]
Undefined offset:  0 updatexml.inc:218 [5.69 sec, 18.5 MB]                                                      [notice]
Trying to get property of non-object updatexml.inc:218 [5.69 sec, 18.5 MB]                                      [notice]
Trying to get property of non-object updatexml.inc:218 [5.69 sec, 18.5 MB]                                      [notice]

Fatal error: Call to a member function asXML() on a non-object in /home/user/pear/share/pear/drush/commands/pm/release_info/updatexml.inc on line 218
Drush command terminated abnormally due to an unrecoverable error.                                           [error]
Error: Call to a member function asXML() on a non-object in /home/user/pear/share/pear/drush/commands/pm/release_info/updatexml.inc, line 218 [5.7 sec, 18.5 MB]
jonhattan’s picture

Version: 7.x-5.7 »
Component: Core Commands » PM (dl, en, up ...)
Assigned: Unassigned » jonhattan

reason: Drupal changed the release link from raw to alias since 7.17

http://drupal.org/drupal-7.17-release-notes

previously:

http://drupal.org/node/1815904

jonhattan’s picture

Status: Active » Fixed
FileSize
6.74 KB

This is being discussed at #1853518: Update status XML should publish non-aliased release links.

Drush really don't need the node nid. Fixed it along with some cleanup. Committed attached patch to 6.x and 5.x

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.