Support » Plugins » [Plugin: Broken Link Checker] php error

  • 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


Viewing 6 replies - 1 through 6 (of 6 total)
  • 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?

    Thanks – yes it stops when I deactivate.

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

    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. 🙂

    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.

    The debugging says:
    CURL version 7.20.0

    Sorry. 🙁

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Broken Link Checker] php error’ is closed to new replies.