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

leeksoup’s picture

+1

Yes, I am seeing the exact same thing. I was searching online for solutions when I found your bug report.

costik’s picture

I'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

costik’s picture

Actually, 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.

philippejadin’s picture

+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 ?

philippejadin’s picture

Status: Active » Postponed (maintainer needs more info)

I 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.

szy’s picture

Version: 5.2 » 5.3

Count me in..., it happens in 5.3 too.

Interesting: I can see comment links or comment form in newly created nodes. Wtf? :]

szy’s picture

http://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)

Leeteq’s picture

Subscribing.
FYI - possibly related issue (dependent on this one):
http://drupal.org/node/164169

leeksoup’s picture

Project: Drupal core » Views (for Drupal 7)
Version: 5.3 » 5.x-1.6
Component: comment.module » Code

This 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.

remi’s picture

I'm having the same problem. I was able to replicate it by following the above instructions by philippejadin and leeksoup.

daphisto’s picture

I 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.

merlinofchaos’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

This 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.

Leeteq’s picture

Project: Views (for Drupal 7) » Drupal core
Version: 5.x-1.6 » 5.7
Component: Code » comment.module
Status: Closed (won't fix) » Active

Should 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.

hamsterbacke42’s picture

For me it seems the same issue is still there in drupal 6.9
Isnt there any workaround for this

dpearcefl’s picture

Status: Active » Closed (won't fix)

Considering 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.