strider72 / spam-karma

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

2.4 alpha doesn't finish initial setup #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm testing out the 2.4 alpha on WP 2.8-bleeding.  There is no existing
data for SK.  When I activate the plugin, every admin page shows this at
the top:

"It sounds like SK has recently been updated on this blog. But not fully
configured. You MUST visit Spam Karma's admin page at least once before
letting it filter your comments (chaos may ensue otherwise)."

Going to the SK Settings page should do whatever it needs to do to finish
setup, but there is no change after doing so.

Original issue reported on code.google.com by stephen....@gmail.com on 14 May 2009 at 5:33

GoogleCodeExporter commented 9 years ago
I can confirm this with a freshly installed WP 2.8.1 and SK from SVN head as of
yesterday.  Also SK is reporting all payloads as fake.

Original comment by goo...@gnifty.net on 17 Jul 2009 at 11:55

GoogleCodeExporter commented 9 years ago
Aaaargh, this was a pain.  It's the kind of bug that's so hard to see even when 
you
are staring at it.  I believe this is the result of a mistake when converting to
non-version-numbered SK settings tables.

I don't have time to create a patch just now, but search the following file:
sk2/sk_util_class.php

for this line (near the top):
$this->$this_group = get_option('sk2_' . $this_group);

And just remove the number 2:
$this->$this_group = get_option('sk_' . $this_group);

Life will be better.  :)

Original comment by goo...@gnifty.net on 18 Jul 2009 at 3:07

GoogleCodeExporter commented 9 years ago
Patch attached.

Original comment by goo...@gnifty.net on 18 Jul 2009 at 5:15

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by stephen....@gmail.com on 21 Jul 2009 at 5:31