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

gnucifer’s picture

Same 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.

rjbrown99’s picture

... or add a dependency for the D6 autoload module.

gnucifer’s picture

Ah, didn't know about that. Yes, that would be much better.

nick_vh’s picture

Do you still have this problem? Seems to work well for me?

rjbrown99’s picture

I was having the issue, but I stopped working with the 6.x-3.x branch for now.

nick_vh’s picture

Status: Active » Closed (cannot reproduce)

Going to close this one until further notice. Testing will happen this week. I'm sure more fixes and bugs will appear!

Thanks for reporting!

webadpro’s picture

Status: Closed (cannot reproduce) » Needs work

Hi,

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');

nick_vh’s picture

Status: Needs work » Fixed

Committed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.