strider72 / spam-karma

A flexible and modular anti-spam plugin for WordPress
GNU General Public License v2.0
3 stars 3 forks source link

"Run selected entries through..." returns an SQL error #32

Open xibe opened 9 years ago

xibe commented 9 years ago

Steps to reproduce:

Returns a white page with:

sk_comment: Cannot fetch comment record from table. SQL error: get_granularity: query failed. Query: SELECT COUNT(*) AS cmt_count, AVG(spams.karma) AS karma_avg FROM wp_comments AS comments LEFT JOIN wp_sk_spams AS spams ON spams.comment_ID = comments.comment_ID WHERE comments.comment_ID != AND comments.comment_approved = '1' AND comments.comment_date_gmt < DATE_SUB('', INTERVAL 3 DAY) AND comments.comment_author_IP = '' SQL error: sk_comment: Cannot fetch comment record from table. SQL error: Cannot update SK_SPAM_TABLE info (no comment ID provided).

Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxxxxxxxx/blog/wp-content/plugins/spam-karma/spam_karma_plugin.php:45) in /home/xxxxxxxxxxx/blog/wp-includes/pluggable.php on line 1207

WordPress 4.3 Spam Karma 2.4-alpha-20150612

strider72 commented 9 years ago

Does not reproduce on my machine. Will have to check further. xibe – Is this a fresh install of SK or updated from older?

xibe commented 9 years ago

Fresh install, in that I disabled SK2 (original plugin) and then uploaded and enabled spamkarma (from this repo). I do remember seeing SQL errors on install, sadly did it in a rush and forgot to take note. I'll try to reproduce on another install.

strider72 commented 9 years ago

Possibly related to Issue #15 then.