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.
Not sure what the best response is here, but an autoload within a hook_init tends to cause Drush to die as the path isn't set correctly.
Comment | File | Size | Author |
---|---|---|---|
#7 | autoload.patch | 665 bytes | SimmeLj |
#5 | autoload-547736.patch | 1.72 KB | kehan |
#2 | autoload-547736.patch | 971 bytes | Steven Merrill |
Comments
Comment #1
mikey_p CreditAttribution: mikey_p commentedActually I think this may be a Drush problem:
Leaving it here for input though.
Comment #2
Steven Merrill CreditAttribution: Steven Merrill commentedHere's a patch to make autoload HEAD work with Drush by checking to see if it's being invoked from the PHP CLI.
Comment #3
Crell CreditAttribution: Crell commentedHEAD is vestigial. Can you roll a patch against the 6--1 branch, and include comments of what you're actually doing and why? I don't really get it. :-)
Comment #4
kehan CreditAttribution: kehan commentedsubscribing
Comment #5
kehan CreditAttribution: kehan commentedI've rerolled the patch against 6--1 and drush commands work again - I tried to add comments - let me know if anything is unclear and I'll try to work it out.
Cheers,
Kehan
Comment #6
mikey_p CreditAttribution: mikey_p commentedI don't have time to test this right not, but the approach looks sound.
Comment #7
SimmeLj CreditAttribution: SimmeLj commentedWhy not use realpath() instead and make it work in both Drush and "normal mode" with just on line of code?
Comment #8
moshe weitzman CreditAttribution: moshe weitzman commentedthis code does use realpath()
Comment #9
Robin van Emden CreditAttribution: Robin van Emden commentedThanks for the patch. Was needed to fix #724044: Verify task fails on site due to presence of autoload module
Comment #10
Crell CreditAttribution: Crell commentedI've committed the patch in #7. I'm not releasing a stable, though, until I get more feedback about it. Someone please try the new dev tarball as I've just committed a bunch of stuff. :-)