Hi,

Apache solr search released an update yesterday (7.x-1.0-beta15) and since the update i have this message at the bottom of my internet page?

"Fatal error: Call to undefined function apachesolr_index_nodes() in /var/www/drupal_bolton/drupal-7.8/sites/all/modules/apachesolr_attachments/apachesolr_attachments.module on line 157"

Can anyone help?

EDIT:

I also cannot delete the index and the cron will not run

Comments

bachomp’s picture

I am getting the same along with;

PHP Fatal error: Call to undefined function apachesolr_clear_last_index()
in .../sites/all/modules/apachesolr_attachments/apachesolr_attachments.admin.inc
on line 230,
referer: .../admin/config/search/apachesolr/attachments/confirm/reindex

krazykellie’s picture

I am too receiving this error. Have has there been any progress on how to fix this?

nick_vh’s picture

Someone has to step up and rework the code in apachesolr_attachments. It should probably not be that hard but if you want to play safe you should stick with apachesolr < beta14

dxvargas’s picture

Confirmed, @Nick_vh, this bug doesn't exist when using apachesolr 7.x-1.0-beta13, only 7.x-1.0-beta14 up to 7.x-1.0-beta16.

wmostrey’s picture

Status: Active » Needs review
StatusFileSize
new2.43 KB

The attached patch should make apachesolr_attachments compatible with the latest version of apachesolr.

wmostrey’s picture

StatusFileSize
new4.61 KB

One extra catch for the hook_uninstall().

wmostrey’s picture

StatusFileSize
new3.15 KB

Final version of the patch, should be good to go.

dxvargas’s picture

Status: Needs review » Needs work

Patch #7 resolved problem #1 for me, however it didn't resolve the initial bug report, which i still get (only now is on line 160).
I get this error every time cron runs.

I'm using apachesolr-7.x-1.0-beta16.tar.gz and apachesolr_attachments-7.x-1.0.tar.gz (with patch #7).

zilla’s picture

subscribe - also curious to test next dev/beta with a rollup of this patch (and note sure about the cron item mentioned above, haven't seen it myself though haven't tested this patch either)

wmostrey’s picture

We're discussing the overhaul of apachesolr_index_nodes() that causes your error at a cron run in #1393540: Upgrade apachesolr_attachments to co-operate with latest beta of apachesolr. I hope to get a new patch out soon.

bjorkey’s picture

subscribe

_kash_’s picture

subscribe

nick_vh’s picture

nick_vh’s picture

Issue summary: View changes

Update