Posted by Morn on May 5, 2009 at 9:26am
Jump to:
| Project: | Restricted Search |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed (won't fix) |
Issue Summary
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 346admin/settings/search can be accessed again after uninstalling restricted search.
Comments
#1
I also get this error.
#2
same here, re-installed search_block, but still no go. It was working perfectly before :)
#3
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.
#4
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.
#5
I'm marking this as wontfix to clean up the queue as http://drupal.org/project/search_restrict is a much better solution.