Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm getting the following errors in the log under "spam":
Unknown column 's.probability' in 'field list' query: SELECT tr.*, s.probability FROM trackback_received tr LEFT JOIN spam_tracker s ON s.source = 'trackback' AND tr.trid = s.id WHERE s.probability >= 70 ORDER BY created DESC LIMIT 0, 50 in /home/afana/public_html/drupal5/includes/database.mysql.inc on line 172.
I assume that some tables weren't created. Not clear to me if the problem is with this module or elsewhere since it ties to the trackback tables, too.
Comment | File | Size | Author |
---|---|---|---|
#18 | trackback.spam_.zip | 1.44 KB | Noccy42 |
#13 | trackback_spamfix.patch | 3.7 KB | rkdesantos |
Comments
Comment #1
rkdesantos CreditAttribution: rkdesantos commentedAlso getting this apparently related error:
Unknown column 's.source' in 'on clause' query: SELECT COUNT(*) FROM trackback_received tr LEFT JOIN spam_tracker s ON s.source = 'trackback' AND tr.trid = s.id WHERE tr.status = 1 in /home/afana/public_html/drupal5/includes/database.mysql.inc on line 172.
Comment #2
steko CreditAttribution: steko commentedUnknown column 'score' in 'field list' query: SELECT score FROM drupal_spam_tracker WHERE content_type = 'comment' AND content_id = 511 in /home/mhd-01/www.iosa.it/htdocs/www/includes/database.mysql.inc on line 172.
Similar problem here after last upgrade.
Comment #3
Jeremy CreditAttribution: Jeremy commentedIt looks like the trackback module has not been upgraded to support the 3.x version of the spam module. I'll leave this issue open here so people with this error find this issue. I also recommend someone file a bug against the trackback module, and include a link to that issue from here.
Comment #4
rkdesantos CreditAttribution: rkdesantos commentedIssue opened in Trackback module queue: http://drupal.org/node/287620
Comment #5
Jeremy CreditAttribution: Jeremy commentedNo further updates, and bug/feature request filed with appropriate module, closing.
Comment #6
thePanz CreditAttribution: thePanz commentedi'm in charge on TrackBack module. Jeremy: can you provide mor info about new Spam 3.x API changes?
Regards
Comment #7
Jeremy CreditAttribution: Jeremy commentedThe entire module was re-written from the ground up. The best method of learning how to integrate is to review the files in the modules/ directory. In particular, review modules/spam_comment.inc which is probably the most like a trackback. The functions in that file need to be defined in the trackback module.
Comment #8
rkdesantos CreditAttribution: rkdesantos commentedStill following and would still like to see this resolved.
Comment #9
thePanz CreditAttribution: thePanz commentedI'll give an eye to spam_comment.inc tomorrow.
I'll refer to 6.x version, 5.x will be backported.
Hope to have some alpha-testers for this integration!
(issue moved to TrackBack 6.x-1.x-dev)
Regards
Comment #10
rkdesantos CreditAttribution: rkdesantos commentedI'll be happy to test the backport when available.
Comment #11
rkdesantos CreditAttribution: rkdesantos commentedDid some work on this and apologies for not yet creating a patch as I've never done that before, but this should help everyone. These changes to the module for the 5.x version (1.64.2.24 2008/04/10 06:04:17) will get most of the errors fixed:
You will also need to add the following back to the spam_tracker table:
This is obviously NOT the preferred way to resolve this but it does restore some functionality to the situation.
Comment #12
thePanz CreditAttribution: thePanz commentedAFAIK Spam module isn't D6 ready.. or I'm wrong? (setting Issue to Postponed fot this reason)
Could you please provide a standard Drupal patch for this issue?
Cheers
Comment #13
rkdesantos CreditAttribution: rkdesantos commentedI gave it a go; the patch is against the Drupal 5 version. Someone else will need to do the database change. I hope the patch is close to what is required.
Yes, it appears the Spam D6 module is still in active development and hasn't stabilized yet but seems to be moving along.
Comment #14
gnassar CreditAttribution: gnassar commentedSpam for D6 still has some bug fixes being ironed out, but AFAI understand it, the 3.0 API (which is what matters) is stable. That should be all that is necessary to develop integration.
Setting to active until we get a complete patch, preferably for the version originally stated.
Comment #15
gnassar CreditAttribution: gnassar commented...not that I'm unconcerned about the fact that the last CVS commit to Spam was four months ago. Just noting that it can probably be coded for at this point. And yes, it's a pain to go through the .inc files to get an idea of the API, but that makes its API just slightly worse documented than Views. I don't think Drupal modules have a good reputation for documenting their individual APIs anyway -- you go with what you have, sadly. So if this is going to be done, now's as good a time as any. And Trackback does need *some* sort of anti-spam solution, absolutely.
Comment #16
henmue CreditAttribution: henmue commentedHi everybody! I just checked the Spam and trackback modules, and both are now Drupal 6-compatible. I really need a working solution against trackback spam, so I had a look into the code.
I tried to combine the latest patch from this thread (http://drupal.org/node/281686#comment-1586730) with the current Trackback (6.x-1.2) and Spam (6.x-1.0). That did not work. It seems that the Spam module has evolved so much that the old trackback integration does not work anymore.
So, I would be willing to work on the code, but right now I'm a little bit clueless how to start. I ha dnot worked much with Drupal lately and there seems to be no real documentation of both the Spam API and the Trackback spam module integration. And to understand the whole thing by reading code and database schemes is very time-consuming.
Any ideas or hints how to progress from here?
Regards Henry
Comment #17
jockox3 CreditAttribution: jockox3 commentedFollowing - as I've never managed to get Trackback working successfully on my site and am getting these errors.
Comment #18
Noccy42 CreditAttribution: Noccy42 commentedif your using Drupal 6.x and trackback 6.x-1.2 (other versions will probably work), try replacing the tracback.spam.inc file in the trackback module with the one I have attached bellow.
I have no idea how functional it is, neither modules api seems to be documented so it's pretty much just shooting in the dark, but it works for me with the limited testing I have done.
Comment #19
proindustries CreditAttribution: proindustries commentedJust dropped that into place, didn't help much. Going to look closer over the next day or so, hopefully will have a soln.
John
Comment #20
proindustries CreditAttribution: proindustries commentedCorrection - after leaving the site alone for a few days, I returned to find it blocking trackback spam just fine. Guessing I forgot to clear the cache after applying the patch...so the patch looks good to me!
John
Comment #21
ij CreditAttribution: ij commentedAny progress for this issue?
Comment #22
thePanz CreditAttribution: thePanz commented@ij: I'm planning a new rewrite of Trackback module as I commented here #351533-10: Split out a Pingback API module (Was: More Efficient Display of Pingbacks).
If you'd like to help or have any idea to share... you're welcome! :) I don't have much time right now, but I'm open to sponsorships or paid customizations.
Regards
Comment #23
mcurry CreditAttribution: mcurry commented*subscribe*