strider72 / spam-karma

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

Throws an error if sk tables don't exist. #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. In a blog where SK is installed, delete the SK tables from the database.
2. Go to the Comments admin page and try to apply filters to a comment
3. You'll get a bunch of "table does not exist" SQL errors

Desired behavior:  Instead of throwing the error it should simply create
the needed tables.  If it can't do so, *then* it should throw an error.

Original issue reported on code.google.com by stephen....@gmail.com on 2 Jan 2010 at 4:52

GoogleCodeExporter commented 9 years ago

Original comment by stephen....@gmail.com on 2 Jan 2010 at 4:58

GoogleCodeExporter commented 9 years ago
Workaround now is either create the tables manually, or 

1. Deactivate plugin
2. Delete sk options from wp_options table
3. Reactivate plugin

So... assuming the setup routines are keyed off the existence of options, but 
not
tables.  We should add a further check for tables.

Original comment by stephen....@gmail.com on 2 Jan 2010 at 5:07

GoogleCodeExporter commented 9 years ago
This is closely related to the fix to Issue 15.  Shouldn't be too hard, just 
needs doing.

Original comment by stephen....@gmail.com on 28 May 2011 at 6:18

GoogleCodeExporter commented 9 years ago

Original comment by stephen....@gmail.com on 28 May 2011 at 6:19