WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Broken Link Checker] php error (7 posts)

  1. jdybka
    Member
    Posted 3 years ago #

    This error appears when the plugin is enabled and running:

    PHP Warning: preg_match() expects parameter 2 to be string, array given in /wordpress/wp-includes/comment.php on line 1553

    WP 3.0

    Thanks.

  2. Janis Elsts
    Member
    Posted 3 years ago #

    At first glance, this problem appears unrelated to the plugin. Are you sure it was caused by BLC, i.e. does that error stop showing up if you deactivate the plugin?

  3. jdybka
    Member
    Posted 3 years ago #

    Thanks - yes it stops when I deactivate.

  4. Janis Elsts
    Member
    Posted 3 years ago #

    Hmm. So at which point exactly does the error appear?

  5. jdybka
    Member
    Posted 3 years ago #

    That error shows up in the log file when the plugin is activated and running. It disappears when the plugin is deactivated. I've tried a couple themes.

    The functionality for broken links works OK but the redirect functionality doesn't do anything. :)

  6. Janis Elsts
    Member
    Posted 3 years ago #

    I've looked through the code in /wp-includes/comment.php but - to be completely honest - I still have no clue as to what the root cause of the error is.

    On the surface, the problem is that the pingback-related stuff in comment.php can't handle URLs that return multiple 'Content-Type' headers. This is not surprising as, in general, no reasonable server returns more than one HTTP header of this type at a time.

    How this relates to Broken Link Checker I have no idea. The plugin doesn't mess with headers sent. It doesn't even contain the text 'Content-Type' anywhere in it's source code. The bug, whatever it is, must be something extremely obscure.

    As for redirects, I'm guessing that your server doesn't have the Curl library installed. Without it, the plugin can't detect redirects. Check the "Show debug info" thingy on the settings page to verify.

  7. jdybka
    Member
    Posted 3 years ago #

    The debugging says:
    CURL version 7.20.0

    Sorry. :(

Topic Closed

This topic has been closed to new replies.

About this Topic