Pages

Wednesday, October 2, 2013

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

Just experienced a problem on an old Drupal 6 installation I use for www.kindmankind.net. 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', '\x{2ce5}-\x{2cff}\x{2d6f}\x{2e00}-\x{3005}\x{3007}-\x{303b}\x{303d}-\x{303f}'. '\x{3099}-\x{309e}\x{30a0}\x{30fb}\x{30fd}\x{30fe}\x{3190}-\x{319f}\x{31c0}-'....
Page 1 of 1412345Next

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Lady Gaga, Salman Khan