Closed (fixed)
Project:
Custom Search
Version:
7.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Feb 2011 at 13:01 UTC
Updated:
7 Mar 2011 at 19:39 UTC
I am getting this notice in search results page.
Notice: Undefined index: advanced in custom_search_form_alter() (line 107 of /modules/custom_search/custom_search.module).
There is also a warning
Warning: htmlspecialchars() [function.htmlspecialchars]: Invalid multibyte sequence in argument in check_plain() (line 1476 of /includes/bootstrap.inc), but I guess it is Drupal problem.
Comments
Comment #1
jdanthinne commentedOk, after some search, I've found that this error (the Notice) happens when anonymous user has no permission for the advanced search and my module is trying to override it… I've just committed changes to the DEV version. Please test & review.
The second Warning is not due to my module I think.
Comment #2
rapowder commentedI confirm that the dev version fixes the issue and I don't see any bugs introduced by the fix.
(BTW the second bug was probably related to another module as I didn't notice it)
Comment #3
jdanthinne commentedComment #4
wroxbox commentedThank you, Dev works!