1. Go to any page with comments while not logged in. (eg. http://drupal.org/node/92519)
2. Click "login or register to post comments". (eg. http://drupal.org/user/login?destination=comment/reply/92519%2523comment...)
3. Complete Username and Password fields with valid information. Click "Log in".

You get to a 404.

I tried this on a stock 4.7 install and it works fine (with user 1). So it might be a drupal.org problem.

CommentFileSizeAuthor
#4 comment.module.patch875 bytesBodo Maass

Comments

yongrokc’s picture

I had the same problem and changed lines starting from the line 1597 of the comment.module as below to fix it.

if (variable_get('comment_form_location', COMMENT_FORM_SEPARATE_PAGE) == COMMENT_FORM_SEPARATE_PAGE) {
$destination = "destination=". drupal_urlencode("comment/reply/$nid") . "#comment_form";
}
else {
$destination = "destination=". drupal_urlencode("node/$nid") . "#comment_form";
}

Andy

michelle’s picture

Component: web site » Broken link
Status: Active » Fixed

Just tested and it works fine.

Michelle

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

Bodo Maass’s picture

Project: Drupal.org site moderators » Drupal core
Version: » 5.x-dev
Component: Broken link » comment.module
Status: Closed (fixed) » Reviewed & tested by the community
StatusFileSize
new875 bytes

The fix works for me too, so this should be committed. Attached is a patch.
Also, here is a duplicate report for 6.6: http://drupal.org/node/344962

damien tournoud’s picture

Status: Reviewed & tested by the community » Closed (won't fix)