PHP update, 2 chars in a regexp: search doesn’t function

Just experienced a problem on an old Drupal 6 installation I use for The search stopped working and complained that “you need a keyword of at least 3 chars”. As usual, I googled this sentence, and as usual, the answer popped up. In the file search-module.php, a few chars had to be changed. In case you have Drupal 6 and for no reason your side-wide search suddenly stopped working, here is the patch:

diff --git a/modules/search/search.module b/modules/search/search.module
index cb6d0f7..fbd4438 100644
--- a/modules/search/search.module
+++ b/modules/search/search.module
@@ -43,7 +43,7 @@ define('PREG_CLASS_SEARCH_EXCLUDE',

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.