As of January 1st, 2009, I am no longer maintaining Spam Karma. If you want to contribute to its GPL version or download the latest patch, you can check out the code repository, over at Google Code.

Thanks.

2 Responses to “SK2 Contact Form”

Bugrep:

A user submitted that they saw this message when posting a comment.

It hit the filters for no javascript (I know the user, and they disable javascript) and for no encrypted payload.

Even if it hit those filters legitimately, the user shouldn’t have seen this message.

When I pulled it from the fire, there was another legitimate comment in there that I could see amongst the rubbish. I have been unable to reproduce the effect using firefox, msie with javascript either on or off.

They’re using:
Firefox:
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5

OS:
Microsoft Windows 2000 5.00.2195 Service Pack 4

I’m on WP2.7, SpamKarma 2.3RC4

Error message:
Submitted comment 72140 to Akismet.com as spam (Akismet said it’s ham)

Warning: Cannot modify header information – headers already sent by (output started at blahblah…..//wp-content/plugins/SK2/sk2_util_class.php:208) in blahblah…..//wp-content/plugins/SK2/spam_karma_2_plugin.php on line 1033

Warning: Cannot modify header information – headers already sent by (output started at blahblah…../wp-content/plugins/SK2/sk2_util_class.php:208) in blahblah…..//wp-content/plugins/SK2/spam_karma_2_plugin.php on line 1034
Sorry, but your comment has been flagged by the spam filter running on this blog: this might be an error, in which case all apologies. Your comment will be presented to the blog admin who will be able to restore it immediately.

SK2 Bug Report + Fix

The sk2_second_chance.php includes wp-config.php after an output is already done. This causes “cannot modify header information” errors if other plugins need to send a header (for example to set a cookie) via the init- or plugins_loaded- hook of WordPress. For example the error occurs with the plugin “ozh-who-sees-ads” on http://www.meinungs-blog.de/ich-brauch-mal-eure-hilfe-bei-wordpress/

Simple fix: In sk2_second_chance.php the config has to be loaded first. Insert a new line with the wp-config.php inclusion code at the very top of sk2_second_chance.php:

Than remove the old wp-config.php inclusion line (old line 3, now line 4):
require_once(’../../../wp-config.php’);

Regards,
René