The MU forums have moved to WordPress.org

Sitewide RSS Pregreplace error (3 posts)

  1. suleiman
    Member
    Posted 16 years ago #

    I thought I would alert everyone to a recent bug i found in my installation of 1.2.1. Some of the posts in the feed would throw up this error:

    Warning: preg_replace() [function.preg-replace]: Empty regular expression in /home/.../public_html/wp-includes/formatting.php on line 647

    Thats it. No post content, just the above error.

    I was able to "resolve" the issue by just commenting out that line from formatting.php. If any of you are so inclined, the relevant lines of code are:

    for ($i = 0; $i < $stop; $i++) {
    $content = $textarr[$i];
    if ((strlen($content) > 0) && ('<' != $content{0})) { // If it's not a tag
    $content = preg_replace($wp_smiliessearch, $wp_smiliesreplace, $content);
    }
    $output .= $content;

    Anyone know why this might be happening?

  2. suleiman
    Member
    Posted 16 years ago #

    no one else had this error?

  3. chrpeder
    Member
    Posted 16 years ago #

    I have this error with feeds from the site wide feed plugin, but with the regular feeds it does not occur.

About this Topic

  • Started 16 years ago by suleiman
  • Latest reply from chrpeder