Posted by mathieu on October 5, 2012 at 6:45pm
3 followers
| Project: | Link checker |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
I have this D6 site (with i18n, without comments) and I was getting a lot of warning like this (once per node or link) :
User warning: Table web.node_comment_statistics doesn't exist query: SELECT last_comment_timestamp, last_comment_name, comment_count FROM node_comment_statistics WHERE nid = 19 in _db_query() (line 169 of /..../drupal/includes/database.mysqli.inc).
User warning: Table web.comments doesn't exist query: SELECT COUNT(*) FROM comments c WHERE c.nid = 19 in _db_query() (line 169 of /..../drupal/includes/database.mysqli.inc).
User warning: Table web.comments doesn't exist query: SELECT c.cid as cid, c.pid, c.nid, c.subject, c.comment, c.format, c.timestamp, c.name, c.mail, c.homepage, u.uid, u.name AS registered_name, u.signature, u.signature_format, u.picture, u.data, c.thread, c.status FROM comments c INNER JOIN users u ON c.uid = u.uid WHERE c.nid = 19 ORDER BY c.thread DESC LIMIT 0, 50 in _db_query() (line 169 of /..../drupal/includes/database.mysqli.inc).Here's a patch against latest 6.x-dev that fixes it.
| Attachment | Size | Status | Test result | Operations |
|---|---|---|---|---|
| no_comments.patch | 658 bytes | Idle | FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch no_comments.patch. Unable to apply patch. See the log in the details link for more information. | View details |
Comments
#1
The last submitted patch, no_comments.patch, failed testing.
#2
This patch is not correct. In D7 we are using hook_modules_disable(). In D6 we may use http://api.drupal.org/api/drupal/developer%21hooks%21install.php/function/hook_disable/6 and set the
linkchecker_scan_commentsvariable to 0. Seelinkchecker_modules_disabled()for details.#3
Damn, you are right. We also need to do this for blocks in D7.
#4
#5
Patch for review
#6
#7
The last submitted patch, linkchecker_1804842+Lots+of+warnings+when+comment_block+modules+are+not+installed.patch, failed testing.
#8
#5: linkchecker_1804842+Lots+of+warnings+when+comment_block+modules+are+not+installed.patch queued for re-testing.
#9
The last submitted patch, linkchecker_1804842+Lots+of+warnings+when+comment_block+modules+are+not+installed.patch, failed testing.
#10
#5: linkchecker_1804842+Lots+of+warnings+when+comment_block+modules+are+not+installed.patch queued for re-testing.
#11
The last submitted patch, linkchecker_1804842+Lots+of+warnings+when+comment_block+modules+are+not+installed.patch, failed testing.
#12
Cannot repro test failures locally.
#13
The last submitted patch, linkchecker_1804842+Lots+of+warnings+when+comment_block+modules+are+not+installed.patch, failed testing.
#14
#15
D7: http://drupalcode.org/project/linkchecker.git/commit/57c26ca && http://drupalcode.org/project/linkchecker.git/commit/7ee50f8
#16
D6 Patch attached
#17
D6: http://drupalcode.org/project/linkchecker.git/commit/8f46aef
#18
Automatically closed -- issue fixed for 2 weeks with no activity.