Searches produce this message. Anon, Auth, and user 1 all get same result.
I have disabled modules, played with every permission.
I have run cron, reindexed, updated, cleared cookies and cache.
I've been working on this for 6 hours straight.

The search page search/node will look something like this:

You must include at least one positive keyword with 3 characters or more.

* Content * Users * (these are menu tabs, i do not know where they are coming from, part of search?)

Home (in H1 size, not sure why this exists)
Enter your keywords:
(Search Box ) (Search button)
Your search yielded no results
Check if your spelling is correct.

I've upgraded from 6.16 to 6.17 and installed CiviCRM this week. I disabled Civi so I don't think it's related to that.

As far as I can tell (not really sure) here are the associated hooks:
node_grants
node_info
system_info_....
forms
user
info_alter
search
help
rewrite_sql
form_alter
translated_m.....
init
(load)
elements

On the page admin/reports/search it is listing items as I search them.
tried in Garland, not theme related...
I've torn Permissions apart, can't be anything on there.

6 hours of volunteer work and I'm about to go mad! Praying for help...

Comments

jhodgdon’s picture

What keyword(s) did you enter in the search box?

And do you have any search preprocessing modules installed, like fuzzy search or a stemming module?

Branjawn’s picture

What keyword(s) did you enter in the search box? church, register, complete, Sunday, help, search, Faith

And do you have any search preprocessing modules installed, like fuzzy search or a stemming module? Not that I know of?

jhodgdon’s picture

Are you getting this when you first go to (your site url)/search and enter the keywords there, or just when you enter them in the search box that is in your header/sidebar/etc.?

Branjawn’s picture

I have tried (logged in, logged out, and as user 1) header search, search page, and search block. :\

jhodgdon’s picture

Well, I don't know what to tell you.

I just tried this on a clean Drupal 6.x install, and I am not seeing this problem. When I enter a search term, I get no results (because I have no content), but I am definitely not seeing the "you must include at least one positive keyword..." message unless I don't enter a long-enough keyword. E.g. I enter "up" and I get the message, I enter nothing and I get a "please enter some keywords" message, and I enter "hello" and I just get no search results.

So all I can suggest trying is:
a) Download Drupal again and copy in all the files again, to make sure Drupal core is not corrupted.
b) Disable all non-Core modules.
c) Switch to an unmodified Garland theme, or any of the other themes that come with Drupal core.
d) After you do both of the above, go to the Performance page, and click the "clear all caches" button.

After doing this, if your problem still persists, then I have no other ideas...

avpaderno’s picture

I can confirm I don't have the issue on a clean Drupal 6 installation.

-redShadow-’s picture

I had the same problem, and I just find out that was the "opensearch feed" module causing that problem.
I just disabled it (while keeping opensearch plugin enabled) and the search returned to work fine.

Are you using that module? (maybe, try to disable all the search-related modules one-by-one and see what happens..)

I am using:
Drupal core : 6.19
OpenSearch module : 6.x-1.2
The site on which I had problems is multilanguage-enabled too.

hellaswebnews’s picture

i'm getting the same message regardless what word do I put in the search box.

I must have done something to cause this ... but I have no idea what :)

Any expert help would be highly appreciated.

site: http://www.hellaswebnews.com/frontpage

best regards, hellaswebnews

hellaswebnews’s picture

@ -redShadow-

i see you fix the search problem.

can you share how (i do have the same issue you had)

cheers,

-redShadow-’s picture

@ hellaswebnews

I just disabled a search-related module (part of http://drupal.org/project/opensearch) that was giving me that problem.
I suggest trying disabling that (if you are using it) or any other search-related modules, and if the problem is gone away, try to re-enable them back one-by-one to try to figure out which one(s) caused the issue.

jhodgdon’s picture

Status: Active » Fixed

Sounds like this support issue has been resolved?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Branjawn’s picture

Not resolved. I just disabled searching on my site. Which sucks, but can't find a solution.

jhodgdon’s picture

Sorry... we cannot reproduce your problem, so we can't really debug it. Drupal by itself doesn't have this problem -- it has to be some other module (or even a theme) that is doing something related to searching.

xsanz’s picture

Hello,

I think i've solved this, just commenting ,in my case, two lines (u can find them just doing a grep)
Maybe u have only one to change.

grep -R "You must include at least" *
  • sites/all/modules/views/modules/search/views_handler_filter_search.inc:        //form_set_error($key, t('You must include at least one positive keyword with @count characters or more.', array('@count' => variable_get('minimum_word_size', 3))));
    
  • modules/search/search.module:    //form_set_error('keys', t('You must include at least one positive keyword with @count characters or more.', array('@count' => variable_get('minimum_word_size', 3))));
    

    Regards

  • les lim’s picture

    Version: 6.17 » 7.12

    I had the same problem come up which I tracked down to a recent PCRE update. This would affect Drupal 7.12 and below. See #1446372: Invalid Unicode code range in PREG_CLASS_UNICODE_WORD_BOUNDARY fails with PCRE 8.30 for patches.

    katetwu’s picture

    Version: 7.12 » 6.25

    I have the same annoying problem. My production site and beta testing site are both multilingual. I have reloaded both sites and still it is not working. I also do not have access to the server to run patches.

    brks’s picture

    Title: "You must include at least one positive keyword with 3 characters or more." » perhaps not that complicated, just set "Minimum word length to index" 2 or 1
    avpaderno’s picture

    Title: perhaps not that complicated, just set "Minimum word length to index" 2 or 1 » "You must include at least one positive keyword with 3 characters or more."
    Version: 6.25 » 6.15