After several day of struggling with search.module (v1.74 2004/02/15 20:09:46 dries), I found the problem and fixed it. I don't know if this is a 'bug' or not. It's probably just something I've screwed up LOL
My setup:
Drupal 4.4.0 running on an Apache web server and MySQL database.
When I run cron, from mywebsite/drupal/cron.php, I get the following errors:
warning: Unknown modifier ''' in /drupal/modules/search.module on line 249.
warning: Unknown modifier ''' in /drupal/modules/search.module on line 249.
warning: Unknown modifier ''' in /drupal/modules/search.module on line 249.
warning: Unknown modifier 'r' in /drupal/modules/search.module on line 249.
These lines repeat about 50 times.
The cron is working because I can search for users and get results and my xml feeds update perfectly, but no index is being created (search_index is empty). According to the logs, "cron completed successfully", but no results are returned when I search for content.
In the search.module, under the search_save function is this code:
function search_save($edit) {
variable_set("minimum_word_size", $edit["minimum_word_size"]);
$data = strtr($edit["noisewords"], "\n\r\t", " ");
$data = str_replace(" ", "", $data);
variable_set("noisewords", $data);
variable_set("help_pos", $edit["help_pos"]);
variable_set("remove_short", $edit["remove_short"]);
}
I edited the