Closed (fixed)
Project:
Search API Solr
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Oct 2011 at 11:59 UTC
Updated:
9 Dec 2011 at 15:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
arnested commentedComment #2
drunken monkeyDoes the attached patch (registering the autoloader in
hook_boot()instead ofhook_init()) help?In any case, I suspect Features (or Drush?) is at fault here, as I don't think a module's classes should be used without calling
hook_init().Comment #3
arnested commentedUnfortunately your patch did not make any difference.
I agree with you on suspecting features or drush to do weird stuff - so although my patch works I don't consider it a nice solution.
I guess separating search_api and search_api_solr in different features (with the exported config in the last feature) would make a difference. I'll have to try that some day.
Comment #4
guillaumev commentedSame issue here, but at the end of an installation profile installation, when cron runs... Note that the issue is there only when installing the platform through drush (no issue when installing manually)
Comment #5
steven jones commentedI'm seeing this issue too, and have a fix.
Comment #6
steven jones commentedThe following fixed the issue for me, which was to register the autoloader on
hook_installbecause the hook_init doesn't get called until the next bootstrap of Drupal.Comment #7
drunken monkeyGreat, thanks a bunch!
Is this working for everyone else, too? Please test! (As I never had problems, I can't really verify.)
Comment #8
arnested commentedSteven Jones' patch works for me as well!
And the explanation makes sense to me too :-)
Comment #9
drunken monkeyGreat, committed.
Thanks again, Steven!
Comment #10.0
(not verified) commented"Patch follows" => "See patch"