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
Comment #1
jonhattanfunction 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.Comment #2
mchaplin commentedI 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.
Comment #3
msonnabaum commentedThe 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.
Comment #4
slucas commentedI'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 .
Comment #5
bporter2387 commentedI 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...