新版本的 Spam Module

突然想起来看看 [Drupal][Spam Module] 更新了没有, 一看果然更新了, 原来没有增加 4.7.x 的支持, 新版本 2.1.1 是针对 4.7.x 的, 就在 13 号发布的. 赶紧下来来装上, 几乎不用设定什么就可以用了. 上次尝试不能工作, 所以只好把匿名评论给关了, 害得上次一个哥们注册了一个帐号, 除了发评论没什么其他权限了. 现在用了新版本, 把匿名评论打开了, 这样方便大家评论. 呵呵. Trackback 仍然不开.

先开一段时间看看效果, 不过以前看到说效果还是不错的.

我现在跑的 Drupal 是 4.7.0 rc 版本的, 想顺便升级一下到 4.7 正式版, 看到都已经到 4.7.2 了, 没想到这一升级就遭大麻烦了, 反正没跑起来, 幸好升级前把数据库备份了一下, 又恢复到原来的版本. 但是使用了 spam module 以后, 提交评论把用户的 email 什么的都列出来了, 不知道是什么毛病. 所以试着把 Contact Information 给关掉了, 而且还出错: "user warning: Illegal mix of collations latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '=' query: SELECT probability FROM spam_tokens WHERE token = 'header*匿名评论测试' in /home/mmx/supermmx.org/blog/drupal-old/includes/database.mysql.inc on line 120."
太诡异了.

匿名评论测试

这是一个匿名评论测试, 看看还出不出问题.

问题解决

  1. ALTER TABLE spam_* CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;

把 spam 相关的表都弄成 UTF-8, 原因不清楚, 待查.

匿名用户测试继续测试

娃哈哈, 看看还有没有问题.怎么这么烦呢.测试测试 TEst@ertse.net http://sdfkj.sdkjf.com

不留试试看

不留试试看, 这个问题太诡异了.不留

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote>
  • You can use BBCode tags in the text.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]".
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
1 + 0 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.