WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. villa-verde
    Member
    Posted 10 months 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
    Member
    Posted 10 months ago #

    Same thing happened on my my site.

    Can anyone help us?

  3. WPyogi
    Volunteer Moderator
    Posted 10 months ago #

    Have you gone through the troubleshooting thread here?

    http://wordpress.org/support/topic/wordpress-37-master-list?replies=5

  4. markpanado
    Member
    Posted 10 months ago #

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

  5. Andrew Nacin
    Lead Developer
    Posted 10 months 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
    Member
    Posted 10 months ago #

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

    Thanks, Andrew!

  7. villa-verde
    Member
    Posted 10 months ago #

    Resolved @preg_match at line 1990 works. Thanks

Reply

You must log in to post.

About this Topic