After installing (Search was configured) everything looks OK, but trying to access the search configuration menue generates:

Fatal error: require_once() [function.require]: Failed opening required 'sites/all/modules/search_block/search.admin.inc' (include_path='.:/usr/share/php') in /home/www/vtad/includes/menu.inc on line 346

admin/settings/search can be accessed again after uninstalling restricted search.

Comments

loze’s picture

I also get this error.

liliplanet’s picture

same here, re-installed search_block, but still no go. It was working perfectly before :)

grantkruger’s picture

I get this error on admin/settings/search/main, but not on admin/settings/search. Earlier I had the same problem as the guys above. I'm not sure what changed.

amaria’s picture

If anybody is still struggling with this....
the search module added an admin.inc file, but it does not propagate down to search_block. To fix, create a module (or use one of your existing modules) and add a hook_menu_alter function to add the file to the menu settings. Here's how I did it...

function YOUR_MODULE_NAME_menu_alter(&$items) {
  // Fix the admin menu for search_block
  if (array_key_exists('admin/settings/search/main',$items) && array_key_exists('file',$items['admin/settings/search'])) {
    $items['admin/settings/search/main']['file'] = $items['admin/settings/search']['file'];
    $items['admin/settings/search/main']['file path'] = drupal_get_path('module', 'search');
  }
} 

Enable your module if necessary and the error should disappear. If not, clear the menu cache.

deviantintegral’s picture

Status: Active » Closed (won't fix)

I'm marking this as wontfix to clean up the queue as http://drupal.org/project/search_restrict is a much better solution.