Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • As per above, I’ve just stepped through the code and found the problem symptom in comments.php:
    Line 70 comments.php
    <?php if ( get_option(‘comment_registration’) && !$user_ID ) : ?>
    You must be /wp-login.php?redirect_to=<?php the_permalink(); ?>”>logged in to post a comment.
    <?php else : ?>

    As you can see above, the variable user_ID is the culprit (although I also took the redirect to the permalink in the login url below this code – it never allowed you to login and just threw you back to the permalink).

    Even when someone goes and logs in, when they navigate back to a particular post, the user_ID variable is not set and as a result they could never post.

    As a stop gap solution, I have edited out this code to allow for user comments.

    All the best,
    Tom

    Hi Catryan,

    I went up to 2.0.3 last week and like you am getting the same behaviour – noone can post a comment.

    Haven’t found a solution/explanation yet but will keep on plugging away!

    tobrien1

    (@tobrien1)

    I’ve found this problem too – only with a slight twist.

    Basically, at the bottom of the single post the statement:
    “You must be logged in to post a comment” sits with “logged in” being a live URL.

    In my instance I upgraded from 1.5.1 to 2.0.3 (the upgrade seemed to go smoothly – no errors at all).

    However the “logged in” URL redirects back to the same post (i.e. no login is allowed – and hence no post).

    I’ve since allowed people to post without providing a name and email (via Options) but the same behaviour is in evidence.

    Any ideas?

    All the best,
    Tom

Viewing 3 replies - 1 through 3 (of 3 total)