Subscribe To Comments Bug in WP2.1
I recently upgraded to WordPress 2.1 and ran into a bug with my Subscribe to Comments plugin. Error I get is,
Warning: in_array() [function.in-array]: Wrong datatype for second argument in
LOCAL ADDRESS/wp-content/plugins/subscribe- to-comments.php on line
438Warning: Cannot modify header information - headers already sent by
(output started at
LOCAL ADDRESS/wp-content/plugins/subscribe-to-comments.php:438)
in LOCAL ADDRESS/wp-includes/pluggable.php on line 275
To fix the issue, open up the subscribe-to-comments.php file, go to line 438 and change what’s there to this:
$previously_subscribed = ( $wpdb->get_var("SELECT comment_subscribe
from $wpdb->comments WHERE comment_post_ID = '$postid' AND
LCASE (comment_author_email) = '$email' AND
comment_subscribe = 'Y' LIMIT 1") || in_array(stripslashes($email),
array(get_post_meta($postid, '_sg_subscribe-to-comments'))))
? true : false;
Also, newer version 2.1 of Subscribe to Comments has fixed this issue.
Thanks Ben!

Posted by Hardik