[resolved] preg_match() [function.preg-match]: Compilation failed ...query.php (7 posts)

  1. villa-verde
    Posted 1 year ago #

    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 ?

  2. markpanado
    Posted 1 year ago #

    Same thing happened on my my site.

    Can anyone help us?

  3. WPyogi
    Forum Moderator
    Posted 1 year ago #

    Have you gone through the troubleshooting thread here?


  4. markpanado
    Posted 1 year ago #

    Yes, tried all the suggestions on that page but still the issue occurs.

  5. Andrew Nacin
    Lead Developer
    Posted 1 year ago #

    We're tracking it here: 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.

  6. markpanado
    Posted 1 year ago #

    The quick fix "@ before the preg_match()" hide the warning.

    Thanks, Andrew!

  7. villa-verde
    Posted 1 year ago #

    Resolved @preg_match at line 1990 works. Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic