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

mikey_p - August 12, 2009 - 23:30

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 33

Leaving it here for input though.

#2

Steven Merrill - August 16, 2009 - 18:08

Here's a patch to make autoload HEAD work with Drush by checking to see if it's being invoked from the PHP CLI.

AttachmentSize
autoload-547736.patch 971 bytes

#3

Crell - August 25, 2009 - 21:42
Status:active» needs work

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

kehan - November 30, 2009 - 17:42

subscribing

 
 

Drupal is a registered trademark of Dries Buytaert.