In ip.module, the ip_backlog_comments() function throws a PDO exception error, because it assumes that the table "comment" exists. However the comment table only exists if you enable the Comments module (part of core). This function should first test that Comments is enabled.
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'comment' doesn't exist: SELECT c.cid AS cid, c.hostname AS hostname FROM {comment} c LEFT JOIN {ip_posts} i ON i.type = 'comment' AND (c.cid = i.id OR i.id IS NULL) WHERE i.id IS NULL ORDER BY c.cid DESC LIMIT 0, 50; Array ( ) in ip_backlog_comments() (line 394 of modules/contrib/ip/ip.module).
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | ip_assumes_comment_enabled-1930512-1.patch | 1.42 KB | jyee |
Comments
Comment #1
jyee commentedPatch attached.
Comment #2
zekvyrin commentedI noticed it on logs too..
Patches works for me as expected.
Comment #4
gedur commentedThanks for your patch, This is already commited to dev branch.