我使用通知模块在添加评论时通知用户。不过,我已经测试过它,并且电子邮件没有被发送出去。当我尝试处理通知队列时,出现以下错误:未发送Drupal通知邮件
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'type for db_type_placeholder AND send_interval = unsupported type for db_type_pl' at line 1 query: SELECT * FROM notifications_queue WHERE cron = unsupported type for db_type_placeholder AND send_interval = unsupported type for db_type_placeholder ORDER BY module, uid, destination, send_method, send_interval in /home/openupor/public_html/sites/default/modules/notifications/notifications.cron.inc on line 210.
有谁能告诉我如何解决此问题?我看了210行,但这并没有帮助我。我不知道从哪里开始。
嗨Googletorp,谢谢你的回应。我从其他人那里拿过这个网站,所以我认为他们可能已经定制了代码。我需要在哪里查找产生这些变量的内容? – Ben 2010-11-17 10:41:03
@Ben:要做的第一件事,就是确保你正在运行未经修改的代码。咬紧牙关,升级模块/核心,看看有什么突破,如果已经做了改动。那么你可以从那里拿走它,这是唯一明智的解决方案。试图维护一个没有记录的黑客攻击核心并不是运行Drupal站点的一种方式。 – googletorp 2010-11-17 10:52:42