Notice: Undefined index... in Drupal 7 & Search 404 module

I installed the Search 404 module on Drupal 7 and started getting the following notices, whenever the Search 404 would run:

Notice: Undefined index: module in ds_search_form_search_form_alter() (line 387 of ~/sites/all/modules/ds/modules/ds_search/ds_search.module).
Notice: Undefined index: module in custom_search_form_alter() (line 103 of ~/sites/all/modules/custom_search/custom_search.module).

I browsed the search404 related issues, but none of their solutions worked for me.

So I emailed the support staff of site5.com (my host) who placed a php.ini file in the /public_html folder with:

display_errors = Off

It didn't help.

I was still getting the notices (and complaining:-), till another member of their staff edited the settings.php file and added this line:

ini_set('error_reporting', E_ALL & ~E_NOTICE);

Now the notices are gone.

I provide this in case someone needs a quick fix for the Notices in Drupal 7 created by the Search 404 module.
 

No votes yet