In the footer of each comment enabled node I have <?php print $links ?>.
Before the Drupal 5.2 update, it would show "2 Comments," "Add new Comment," etc. You can still post comments on the full node view, but the links have disappeared.
I did a print_r on $links and the array is empty. I looked in comment.module and $links is supposed to get populated. Anybody know how to fix this? Is this even happening to anyone else?
Comments
Comment #1
leeksoup commented+1
Yes, I am seeing the exact same thing. I was searching online for solutions when I found your bug report.
Comment #2
costik commentedI'm seeing something similar... "Add new comment" still appears, but regardless of the number of comments, it never changes to "(n) comments". Again, after updating 5.1>5.2
Comment #3
costik commentedActually, my problem is the way Views treats "full node" listings within a view. (It does so awkwardly, but that's a different story.) Never mind.
Comment #4
philippejadin commented+1 for me, but only on some content types (they all have comments enabled, and it is still possible to post a comment on the full node view). Any idea ?
Comment #5
philippejadin commentedI can confirm that it happens within views showing full nodes.
- create a view showing full nodes of a content type (like page)
- enable comment for this node / content type
- set comment form to be appended at the end of the node
- when looking at the view, the comment link ("2 Comments," "Add new Comment," etc. ) is not shown
- change view type to teaser list, and comment links will be back
Maybe it's by design, but it was not like this with Drupal 5.1 and/or with an older view module release
Need to dig further and see if it's not a bug in newer release in view instead.
Comment #6
szy commentedCount me in..., it happens in 5.3 too.
Interesting: I can see comment links or comment form in newly created nodes. Wtf? :]
Comment #7
szy commentedhttp://drupal.org/node/102444
- my issue happens only with imported content, so I've solved this with: http://drupal.org/node/102444
(but I still don't know why imported content is comment disabled)
Comment #8
Leeteq commentedSubscribing.
FYI - possibly related issue (dependent on this one):
http://drupal.org/node/164169
Comment #9
leeksoup commentedThis problem does appear to be a Views issue. To reproduce:
1. create some nodes, at least one of them with a comment
2. create a view to list them as Full Nodes in a Page view
The "comments" link does not appear. (As the issue title says, the $links is also empty.)
However, if you go and change the view to "Teaser List" instead of "Full Nodes" the comment link reappears. This problem appeared after I upgraded Drupal to 5.2 and simultaneously Views from 5.x-1.6-beta5 to 5.x-1.6.
Comment #10
remi commentedI'm having the same problem. I was able to replicate it by following the above instructions by philippejadin and leeksoup.
Comment #11
daphisto commentedI can also confirm that this bug still exists. I am running Drupal 5.7 and am experiencing exactly the same issue as the original poster.
Comment #12
merlinofchaos commentedThis appears to be a changed behavior in Drupal core, having to do with the full node version of node_view.
Views doesn't populate the links, it just calls node_view(). If Drupal is choosing not to populate the links, there's nothing I can do. Sorry.
Comment #13
Leeteq commentedShould this be regarded as a bug or deliberate/by design?
Is it relevant / desireable to fix this for Drupal 5.x?
Moving this one to the comment.module queue for D5 and setting it as active until we have had some feedback from the core development team.
Comment #14
hamsterbacke42 commentedFor me it seems the same issue is still there in drupal 6.9
Isnt there any workaround for this
Comment #15
dpearcefl commentedConsidering the lack of activity on this issue and that Drupal v5 is no longer supported by for fixes or patches, I am going to close this ticket.