The following errors occurred when deleting a blog entry:

Notice: Undefined property: stdClass::$type in apachesolr_attachments_field_attach_delete() (line 480 of C:\wamp\www\sites\all\modules\apachesolr_attachments\apachesolr_attachments.module).
Notice: Undefined index: field_name in apachesolr_attachments_field_attach_delete() (line 481 of C:\wamp\www\sites\all\modules\apachesolr_attachments\apachesolr_attachments.module).

The second error (Undefined index) was listed about 20 times.

I don't know why these (and other errors) occur or what I can do about them. If I untick "Files" in the ApacheSolr configuration page they go away, but then no attachments are indexed.

Any help sorting this out would be greatly appreciated. My users are complaining about errors littering their pages and the fact that attachments are not indexed. I'd love to sort this out - I'm regretting the upgrade from D6 to 7 now.

Phil

Comments

pwolanin’s picture

This code looks a little iffy to me:

  $result = reset(reset($result));
  $parent_entity_bundle = $result->type;
nick_vh’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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