Dear all,

When trying to run the check-updates command (for even the command to check db updates), it fails with the following error:

$ .composer/vendor/drush/drush/drush -r /path/to/drupal check-updates
Failed to get available update data for one project. [error]
PHP Fatal error: Call to undefined function pm_release_recommended() in .composer/vendor/drush/drush/commands/pm/update_info/drupal.inc on line 8
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Call to undefined function pm_release_recommended() in .composer/vendor/drush/drush/commands/pm/update_info/drupal.inc, line 8

On the other hand, the simple function to update drupal from drush works fine.

Cheers,

CommentFileSizeAuthor
#3 drush_nagios-2358075-3.patch633 bytesfl3a

Comments

fl3a’s picture

Hi there,

it seems that you use drush greater v.5, the output seems to come from master/7 branch, because of composer, which is required for that version.
Is that correct?

fl3a’s picture

Title: Call to undefined function pm_release_recommended() » Call to undefined function pm_release_recommended() in drush above v.5
fl3a’s picture

Status: Active » Needs review
StatusFileSize
new633 bytes

Should work in v.6 and v.7/master of drush.

Looking forward feedback!

  • fl3a committed 14bec51 on 7.x-1.x
    Issue #2358075 by Heis Spiter : Added include switch for drush above v....
fl3a’s picture

Status: Needs review » Fixed

Fixed in dev and forthcoming 7-1.3.

THX for pointing on this!

  • fl3a committed 14bec51 on check-drupal
    Issue #2358075 by Heis Spiter : Added include switch for drush above v....

Status: Fixed » Closed (fixed)

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

fl3a’s picture

Status: Closed (fixed) » Fixed

Status: Fixed » Closed (fixed)

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

fl3a’s picture

Status: Closed (fixed) » Fixed

Status: Fixed » Closed (fixed)

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