With a recent update to Solr, the search settings breaks if Apache Solr Attachments is installed.

This is related to a very similar bug in ApacheSolr module itself, #1396606: Fatal error "Call to undefined function apachesolr_index_status()" when visiting admin/config/search/settings, and I've found that the same fix works. We just need to include the apachesolr.index file, so the function apachesolr_index_status() is defined.

Needs this explicit module_load_include() added to apachesolr_attachments_search_status() in apachesolr_attachments.module:

/**
 * Implements hook_search_status().
 *
 * @see apachesolr_search_search_status()
 */
function apachesolr_attachments_search_status() {
  // TODO: Figure out a way to know how many actual files are left to update.
  module_load_include('inc', 'apachesolr', 'apachesolr.index');
  return apachesolr_index_status('apachesolr_attachments');
}

Comments

zilla’s picture

subscribe, looks like a relation to http://drupal.org/node/1393540

wmostrey’s picture

Status: Active » Closed (duplicate)

I'm marking this as a duplicate of #1408064: Fatal Error after updating Apachesolr in order to keep all upgrade issue centralized.