Closed (fixed)
Project:
Apache Solr Search
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Jan 2012 at 23:42 UTC
Updated:
3 Apr 2012 at 13:30 UTC
Hi. I'm testing 6.x-3.x-dev as of today. Module installs fine, but when you go to index this shows up in the log:
PHP Fatal error: Class 'ApacheSolrDocument' not found in /mypath/sites/all/modules/apachesolr/apachesolr.index.inc on line 263
Adding the following to the top of the function _apachesolr_index_process_entity_get_document() fixed it.
module_load_include('php', 'apachesolr', 'Apache_Solr_Document');
I could roll a patch but it's just a one liner, you may just want to plop it in your tree and commit.
Comments
Comment #1
gnucifer commentedSame issue for me. No class auto-loading in Drupal 6, but guess this was caused by backporting from d7-version. :) The files[] conf array is still in the .info file for d6-version,should perhaps be removed as well.
Comment #2
rjbrown99 commented... or add a dependency for the D6 autoload module.
Comment #3
gnucifer commentedAh, didn't know about that. Yes, that would be much better.
Comment #4
nick_vhDo you still have this problem? Seems to work well for me?
Comment #5
rjbrown99 commentedI was having the issue, but I stopped working with the 6.x-3.x branch for now.
Comment #6
nick_vhGoing to close this one until further notice. Testing will happen this week. I'm sure more fixes and bugs will appear!
Thanks for reporting!
Comment #7
webadpro commentedHi,
I'm having this issue when trying to index my site.
EDIT:
Just like post 1 suggested:
Adding the following to the top of the function _apachesolr_index_process_entity_get_document() fixed it.
module_load_include('php', 'apachesolr', 'Apache_Solr_Document');
Comment #8
nick_vhCommitted, thanks!