I updated Drush yesterday from 3.0 to 4.5. When I update Drupal 6 sites everything looks good. But when I want to update a Drupal 7 site I got the following error.

--- begin ---

root@server:/var/www/domain.tld/public_html# drush pm-update
Refreshing update status information ...
Done.

Fatal error: Call to undefined function pm_get_project_path() in /usr/local/bin/drupal-drush/commands/pm/update_info/drupal_7.inc on line 63
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Call to undefined function pm_get_project_path() in
/usr/local/bin/drupal-drush/commands/pm/update_info/drupal_7.inc, line 63

--- end ---

Any idea what is going wrong?

Comments

jonhattan’s picture

Status: Active » Postponed (maintainer needs more info)

function name is _pm_get_project_path(), starting with an underscore. Perhaps you installed drush 4.5 over 3.0. Try removing drush completely and reinstalling.

mchaplin’s picture

I also get this message but Drush was not upgraded, it was always 4.5.

"Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Call to undefined function pm_get_project_path() in
/bin/drush/commands/pm/update_info/drupal_7.inc, line 63"

The problem started after upgrading D6 Pressflow -> D7 pressflow.
PHP is version 5.3.6.

I can supply more system info if required.

msonnabaum’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

The file commands/pm/update_info/drupal_7.inc is not in 4.5, so it sounds like you upgraded and didn't clean up the leftover files.

slucas’s picture

I've got this same error with a clean drush self-update from 4 to 5 version

and doing a drush sup command.
I'll go backup to 4, but is there any difference in the way drush sup behave between the two versions .

bporter2387’s picture

I got the same error when I had overwritten the files to drush. Deleting the drush folder and reinstalling drush worked for me.

http://openspring.net/tip/how-to-install-drush-serverwide-in-less-than-o...