WordPress.org

Forums

preg_match() [function.preg-match]: Compilation failed: (2 posts)

  1. sagarsoni0729
    Member
    Posted 2 years ago #

    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\getapacker.com\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!

  2. Sabinou
    Member
    Posted 2 years ago #

    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)

Topic Closed

This topic has been closed to new replies.

About this Topic