Closed (fixed)
Project:
Spam
Version:
5.x-3.0-alpha6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
22 Jun 2008 at 02:45 UTC
Updated:
3 Oct 2008 at 12:02 UTC
Hi,
Just installed the new release and I get this php error in my logs:
Table 'afana_drupal5.bayesian_tokens' doesn't exist query: SELECT probability FROM bayesian_tokens WHERE class = 'spam' AND token = 'vxxxxxx@yahoxxxxx.com' in /home/afana/public_html/drupal5/includes/database.mysql.inc on line 172.
What's missing is a table that didn't get created on install, I assume.
Comments
Comment #1
brunodboSame error here with 5.x-3.0-alpha5. Watchdog keeps filling up with this error.
Comment #2
philbar commentedI also receive this error.
Comment #3
jeremy commentedLooks like I never checked in bayesian.install, resulting in this error. Committed.
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #5
aerodog commentedI don't see why you closed this issue. I get the same exact error still with the latest alpha6 version, and yes bayesian.install is there.
Comment #6
Thomasr976 commentedAlso getting similar error:
Table 'millenni_drupal.bayesian_tokens' doesn't exist query: SELECT probability, yes_count, no_count FROM bayesian_tokens WHERE class = 'spam' AND token = 'did' in ...............
Looked in DB but it'a not there. Error produced when anonymous users enter comment.
Please advise how to proceed. Thanks.
Comment #7
Rhino commentedI'm getting the same exact error i 5.x-3.0-alpha6
What should the table/bayesian schema look like? I could always insert it manually in MYSQL as a fix for now.
Comment #8
jeremy commentedRe-opening for re-review.
Comment #9
jeremy commentedConfirmed with clean install, the bayesian_tokens module does get installed fine. If you're still having the problem, I suggest you run the following command directly in your MySQL database and then re-install the bayesian module:
You will need to do this if you already installed the Bayesian module with an earlier alpha release, before the bayesian.install file was checked in. You will know you need to do this if you are getting the errors reported above.
Comment #10
Rhino commentedDid the " DELETE FROM system WHERE name = 'bayesian';" after uninstalling all Spam module bits, and then re-installed the spam module. It cleared up the table doesn't exist problem.
Now I get this warning every time a comment is posted instead;
"warning: Division by zero in /drup/sites/default/modules/spam/spam.module on line 181."
Comment #11
jeremy commentedNote for posterity, the division by zero issue was resolved here.
Comment #12
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.