Title: preg_match() [function.preg-match]: Compilation failed &#8230;query.php
Last modified: August 21, 2016

---

# preg_match() [function.preg-match]: Compilation failed …query.php

 *  Resolved [villa-verde](https://wordpress.org/support/users/villa-verde/)
 * (@villa-verde)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/preg_match-functionpreg-match-compilation-failed-queryphp/)
 * After update to 3.7 I get this warning if I enter a something in “search on this
   website”:
    preg_match() [function.preg-match]: Compilation failed: support for\
   P, \p, and \X has not been compiled at offset 2 in /var/www/xxx/xxx.nl/httpdocs/
   wp/wp-includes/query.php on line 1990
 * How to fix ?

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [markpanado](https://wordpress.org/support/users/markpanado/)
 * (@markpanado)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/preg_match-functionpreg-match-compilation-failed-queryphp/#post-4257498)
 * Same thing happened on my my site.
 * Can anyone help us?
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/preg_match-functionpreg-match-compilation-failed-queryphp/#post-4257500)
 * Have you gone through the troubleshooting thread here?
 * [http://wordpress.org/support/topic/wordpress-37-master-list?replies=5](http://wordpress.org/support/topic/wordpress-37-master-list?replies=5)
 *  [markpanado](https://wordpress.org/support/users/markpanado/)
 * (@markpanado)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/preg_match-functionpreg-match-compilation-failed-queryphp/#post-4257510)
 * Yes, tried all the suggestions on that page but still the issue occurs.
 *  [Andrew Nacin](https://wordpress.org/support/users/nacin/)
 * (@nacin)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/preg_match-functionpreg-match-compilation-failed-queryphp/#post-4257516)
 * We’re tracking it here: [http://core.trac.wordpress.org/ticket/25709](http://core.trac.wordpress.org/ticket/25709)
 * You can ignore the warning, your site is OK, and we’ll fix it in version 3.7.1.
 * There are a few ways to hide that warning for now — ideally, you set PHP’s display_errors
   setting to Off, though I recognize many may not know how to do that. If absolutely
   necessary, go into wp-includes/query.php and add an @ before the preg_match()
   on line 1990. It would become:
 * `if ( ! $term || @preg_match( '/^\p{L}$/u', $term ) )`
 * Again, your site is OK, even with this warning.
 *  [markpanado](https://wordpress.org/support/users/markpanado/)
 * (@markpanado)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/preg_match-functionpreg-match-compilation-failed-queryphp/#post-4257517)
 * The quick fix “@ before the preg_match()” hide the warning.
 * Thanks, Andrew!
 *  Thread Starter [villa-verde](https://wordpress.org/support/users/villa-verde/)
 * (@villa-verde)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/preg_match-functionpreg-match-compilation-failed-queryphp/#post-4257655)
 * Resolved @preg_match at line 1990 works. Thanks

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘preg_match() [function.preg-match]: Compilation failed …query.php’ is
closed to new replies.

## Tags

 * [compilation](https://wordpress.org/support/topic-tag/compilation/)
 * [Failed](https://wordpress.org/support/topic-tag/failed/)
 * [query.php](https://wordpress.org/support/topic-tag/query-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 4 participants
 * Last reply from: [villa-verde](https://wordpress.org/support/users/villa-verde/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/preg_match-functionpreg-match-compilation-failed-queryphp/#post-4257655)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
