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

Fatal error: require_once() [function.require]: Failed opening required 'sites/all/modules/search_block/search.admin.inc' (include_path='.:/usr/local/php5/lib/php') in /home/content/m/c/a/mcarper/html/D6/drupal-6.4/includes/menu.inc on line 346

While going to this website
../admin/settings/search/main

Comments

#1

me too.

#2

Priority:normal» critical

The hook_menu defines a menu item at /admin/settings/search/main but there's no callback function provided. I can't find any candidates in the module. Is there supposed to be a search.admin.inc file in the module that maybe has been left off the CVS commit?

#3

Status:active» needs review

attached patch removes the item, but I'm not sure what's supposed to be on this mystery admin page, because as far as I can tell, restricted search still works...

AttachmentSize
search_block-fix_menu-340386-0.patch 2.86 KB

#4

It looks like the problem only occurs if you manually browse to admin/settings/search/main, which as far as I see isn't actually created by the module - though it could be by other modules like Admin Menu which query the menu system.

The above patch removes the task tabs, so it isn't going to work long term. The attached patch does two things:

  1. Defines 'file path', so that the search.admin.inc is found properly.
  2. Removes the access callback keys. The menu item inherits everything which isn't defined from it's parent, including the actual access callback, page callback, and so on.

Please test this patch and let me know how it goes. Thanks!

AttachmentSize
340386_missing_file_path_4.patch 797 bytes

#5

At first glance here's what I think is happening... the main search module has "search.admin.inc". The author is trying to make the "main" search page from the core available under "main". Unfortunately the way it's coded it ends up looking for "search.admin.inc" in "/sites/all/modules/search_block" instead of "/modules/search" where it resides.

#6

Status:needs review» closed (won't fix)
nobody click here