Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I had Drush running last month and now when I just try typing the command: drush
I get the following error:
PHP Fatal error: Call to undefined function posix_getpwuid() in /pathtomysite/sites/all/modules/drubuntu/drubuntu.drush.inc on line 5
Drush command terminated abnormally due to an unrecoverable error.
I had installed it on a MediaTemple (DV) server using the instructions here.
Comments
Comment #1
greg.1.anderson CreditAttribution: greg.1.anderson commentedClosing support request due to lack of activity. Sorry no one was able to help you with your issue. Please re-open if you are still having trouble, or consider posting a question on Drupal Stack Exchange. If you have solved your problem, it would be helpful it you posted the resolution here to help others who may have the same problem in the future.
Comment #2
kbell CreditAttribution: kbell commentedI am having the same issue. Drush was working (this is on my local machine), and now I get this error.
Comment #3
gerzenstl CreditAttribution: gerzenstl commentedLooks like you are using the drubuntu module. The error is caused because that module uses the posix_getpwuid() function that belongs to the POSIX PHP extension.
Try to check if you have installed/enabled that extension.