Title: SpamKarma2 404 Errors
Last modified: August 18, 2016

---

# SpamKarma2 404 Errors

 *  [userx](https://wordpress.org/support/users/userx/)
 * (@userx)
 * [21 years ago](https://wordpress.org/support/topic/spamkarma2-404-errors/)
 * Has anyone else had problems with 404 errors being thrown up when SpamKarma2’
   s Spam Warning Message or Second Chance (Captcha) screen should be displayed?
 * I was doing some testing and when I try to submit a fake spam post (with three
   links in it), I don’t get the warning message, I get a 404 error. I did get the
   warning message once when I submitted a fake spam post with 4 links in it. Also,
   I’m not even sure if the captcha 2nd chance screen is being displayed.
 * Anyone have any ideas on where to begin?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [oce](https://wordpress.org/support/users/josepo/)
 * (@josepo)
 * [21 years ago](https://wordpress.org/support/topic/spamkarma2-404-errors/#post-209073)
 * open spam_karma_2_plugin.php and go to line 954.
 * change
 * ` $location = str_replace($_SERVER['DOCUMENT_ROOT'], "", dirname(__FILE__)) ."/".
   sk2_second_chance_file ."?c_id=$comment_ID&c_author=" . urlencode($sk2_core->
   cur_comment->author_email);`
 * to
 * ` $location = "/".str_replace($_SERVER['DOCUMENT_ROOT'], "", dirname(__FILE__))."/".
   sk2_second_chance_file ."?c_id=$comment_ID&c_author=" . urlencode($sk2_core->
   cur_comment->author_email);`
 *  Thread Starter [userx](https://wordpress.org/support/users/userx/)
 * (@userx)
 * [21 years ago](https://wordpress.org/support/topic/spamkarma2-404-errors/#post-209077)
 * josepo – Thanks for the code. I made the change … gotta go test it out now. Did
   you have this problem? Or was this an issue already? I searched and searched 
   but couldn’t find a thread.
 *  Thread Starter [userx](https://wordpress.org/support/users/userx/)
 * (@userx)
 * [21 years ago](https://wordpress.org/support/topic/spamkarma2-404-errors/#post-209152)
 * Oh oh … that didn’t work. I’m still getting a 404 error on comments submitted
   with three or less links in them for some reason. A comment with four links submittted
   gets SpamKarma2’s warning message, like it should.
 * The 404 error and the warning message are both appearing at:
 * /wp-comments-post.php
 * Any other sugesstions?
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [21 years ago](https://wordpress.org/support/topic/spamkarma2-404-errors/#post-209164)
 * Contact the plugin’s developer.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘SpamKarma2 404 Errors’ is closed to new replies.

 * 4 replies
 * 3 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [21 years ago](https://wordpress.org/support/topic/spamkarma2-404-errors/#post-209164)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
