欢迎各位兄弟 发布技术文章
这里的技术是共享的
Any Help still available?
I am on Drupal 7.8. The search worked fine when running Squeeze. Upgraded to Wheezy and search is dead on multiple drupal sites.
I have tried manually applying a couple things I've read here, specifically
I've changed D800 to E000 in the unicode.inc file
I've looked at the search.module tweaks as well but these appear to be for other versions as my file has no PREG_CLASS_SEARCH_EXCLUDE section.
the exact error I get is:
Warning: preg_replace(): Compilation failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 2102 in search_simplify() (line 445 of /home/njellis/public/PcComputerGuy.com/public/modules/search/search.module).
You must include at least one positive keyword with 3 characters or more.
This is a Linode LAMP. I have full ssh access so can tweak or do whatever, but so far - I've been unsuccessful at resolving this.
Thanks for any suggestions!
Thanks RedRat. I just did that, and only a single module comes up that appears unrelated:
sites/all/modules/ctools/includes/cleanstring.inc:'\x{a80b}\x{a823}-\x{a82b}\x{d800}-\x{f8ff}\x{fb1e}\x{fb29}\x{fd3e}\x{fd3f}' .
My report says I am running drupal 7.8.
Any other ideas?
Ctools has Unicode bug too: https://drupal.org/node/1697538, you can manually apply such patch to your modules/ctools/includes/cleanstring.inc file.
But keep in mind that 7.8 is a very outdated version and have to be updated ASAP because of many bugs and security flaws.
Ah, ok, I will try and get that done. I know I tried it at one point and many things broke. I thought 7.8 > 7.24 but apparently not! :)
Thanks for the help.
22: do-1446372-remove-surrogate-D7.patch queued for re-testing.
22: do-1446372-remove-surrogate-D7.patch queued for re-testing.
来自 https://www.drupal.org/project/drupal/issues/1446372
njellis: Simplest way is just grep all .php and .inc files of your Drupal installation for a "{d800}" string. Right way is upgrade a Drupal to the latest version, 7.24.
Log in or register to post comments