Support » Fixing WordPress » preg_match() [function.preg-match]: Compilation failed:

  • I get the following warning now at the top of most of the pages in my site:

    preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in C:\Inetpub\vhosts\\httpdocs\wp-includes\class-wp.php on line 201

    this error and one with the same text, but for line 202
    and here is what lines 201 and 202 in the class-wp.php say:

    if ( preg_match(“#^$match#”, $request_match, $matches) ||
    preg_match(“#^$match#”, urldecode($request_match), $matches) ){

    This error showed up out of nowhere. The site was untouched in months. Today, all I did was update an article, edit a “page”.

    What can I do to fix this? I also updated all the plugins but I still get the error.

    Thanks for any help!

Viewing 1 replies (of 1 total)
  • I think I saw this in another support forum topic, somebody had this error showing in the log file of his hosting account, and it was caused by the permalinks structure (no idea why).

    Maybe try changing temporarily the permalinks settings to default in the blog options, in case it helps ?
    (Well, no harm in trying, as long as you copy-paste what your previous settings were, in order to restore it to how it was before after you tested)

Viewing 1 replies (of 1 total)
  • The topic ‘preg_match() [function.preg-match]: Compilation failed:’ is closed to new replies.