Autoload fails with drush
mikey_p - August 12, 2009 - 23:29
| Project: | Autoload |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Description
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.

#1
Actually I think this may be a Drush problem:
PHP Fatal error: require(): Failed opening required '/Users/mdp/bin/drush/sites/all/modules/analytics/includes/analytic.inc' (include_path='.:/usr/share/PEAR') in /Users/mdp/www/analytics/sites/all/modules/autoload/autoload.module on line 33Leaving it here for input though.
#2
Here's a patch to make autoload HEAD work with Drush by checking to see if it's being invoked from the PHP CLI.
#3
HEAD 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. :-)
#4
subscribing