I'm working on a legacy site that uses IP Login, and on a local dev copy I set my login IP to 127.0.0.1. From the front end this seemed to work just fine. However, any Drush command that bootstraps the dev site now throws:
Drush command terminated abnormally due to an unrecoverable error. [error]
With --debug, the last thing drush sees is:
WD user: Session opened for jimmybob by IP Login. [0.54 sec, 40.9 MB] [notice]
strace shows the login message "You have been automatically logged in..." as its last WRITE before the error.
Changing the IP or disabling IP Login eliminates the problem.
Can anyone reproduce this? I just updated to core 6.28 and drush 5.8, but had same behavior in 6.26 and drush 4.4.
Comments
Comment #1
davidwhthomas commentedThis issue has been fixed in the 7.x branch with a
drupal_is_cli()check:vs D6 version:
Comment #2
JCMeador commentedI don't see drupal_is_cli() in the D6 API (looks like it's in Pressflow 6 and D7 onwards).
Any thoughts on how to proceed? Defining the function in IP Login seems like a quick and dirty solution.
Comment #3
jim kirkpatrick commentedWe need to support D6 & Drush, marking as a FR.
Comment #4
jim kirkpatrick commentedFound an answer:
Please test!
Comment #5
arpitr commentedworks with drush in D7
Comment #6
johnpitcairn commentedNote the check in #1 is only included in the 7.x-3.x branch.
7.x-3.0-beta1 includes it.
Comment #7
amateescu commentedClosing old issues.