WordPress.org

Ready to get started?Download WordPress

Forums

No Comments Except for Logged In Users (29 posts)

  1. phoenixd
    Member
    Posted 7 years ago #

    So, my blog phoenixrealm.com is not taking any comments except those from logged in users. The option for that is not checked, so I don't know whats going on. I upgraded from 2.0.2 to 2.0.4 to try to fix it, but that did not happen. No errors, no settings that look like they need to be changed. Turned off Akismet to see if that'd fix it...no luck. No other comment moderation plugins or systems. Help!?

  2. phoenixd
    Member
    Posted 7 years ago #

    Oddly it redirects to http://www.phoenixrealm.com/wp-comments-post.php and shows the front page, when the user is not logged in and comments. While logged in commentor is brought back to the correct page.

  3. phoenixd
    Member
    Posted 7 years ago #

    No one have any ideas?

  4. Chris_K
    Member
    Posted 7 years ago #

    I'm stumped, for what that's worth. (not much)

    If you temporarily change to the default theme, what happens if a non-reg'd user comments?

  5. phoenixd
    Member
    Posted 7 years ago #

    Same problem. It tries to go to

    http://www.phoenixrealm.com/wp-comments-post.php

    But this time I get:
    Error 404 - Not Found

  6. phoenixd
    Member
    Posted 7 years ago #

    Still no answer to this....

  7. Joshua Sigar
    Member
    Posted 7 years ago #

    Probably some corrupted files? Try deleting and re-uploading related files.

  8. phoenixd
    Member
    Posted 7 years ago #

    Deleted all files, and re-uploaded...still not fixed. Allows me to post a comment when I am logged in, but that's it. :(

  9. phoenixd
    Member
    Posted 7 years ago #

    Still no solution...Can't say I am terribly impressed with the WordPress community lately :(

  10. drmike
    Member
    Posted 7 years ago #

    Maybe bumping every two hours kind of ticked folks off? Please remember that there are 88,541 other threads here in the forums and you're not the center of the universe.

    I just left you a comment on this post. Can you check to see if it exists somewhere on your site please.

  11. vkaryl
    Member
    Posted 7 years ago #

    Kinda hard for me to have any thoughts about this since I've never had it happen. Sorry.

  12. phoenixd
    Member
    Posted 7 years ago #

    Hey drmike,

    I only bumped when it was off the first page. I was hoping others would have seen this problem and thus provide a solution.

    There are no new comments from anyone but me in the last week. Not in the database or on the site. :(

    Thanks anyways vkaryl.

  13. vkaryl
    Member
    Posted 7 years ago #

    Y'know, just about the only thing I can think of for you to try right now would be a concerted google and yahoo search, varying the terms as needed, and basically clicking on thousands of the probably millions of results.

    Not fun, I know. But I truthfully haven't any clue....

  14. Joshua Sigar
    Member
    Posted 7 years ago #

    This kind of thing, may be easier/possible to solve if I have full access to the installation, where you could print out stuff, etc.

    So, maybe ask your programmer friend to dive in, or you could give me access if you trust me enough. my email is alphaoide at gmail dot com.

  15. Joshua Sigar
    Member
    Posted 7 years ago #

    maybe just a start,

    can you install another wp on that same server to see if it suffers from the same problem? and just to make sure, download fresh wp package again from this site.

  16. phoenixd
    Member
    Posted 7 years ago #

    I created a test blog at phoenixrealm.com/tester and when I comment on it...it brings me to http://phoenixrealm.com/tester/wp-comments-post.php but it shows the index page of phoenixrealm.com.

    Seems like an .htaccess thing...but i have deleted my htaccess a few times and allowed wp to recreate it. :(

    I will email you soon alphaoide...But if anyone has any ideas...I'd love to get this figured out

  17. Joshua Sigar
    Member
    Posted 7 years ago #

    Did it ever work for you? Since what wp version did it stop working?

  18. moshu
    Member
    Posted 7 years ago #

    Did you try to remove your htaccess file and reverting back to the default permalink structure?
    Just to rule out (or prove) - htaccess plays a role in this.

  19. LisK
    Member
    Posted 7 years ago #

    I'm having the same problem with version 2.1. Logged in users see the comments fine - but if you're not logged in the comments don't show. I can't figure out how to fix it.

  20. merrua
    Member
    Posted 7 years ago #

    Do you have bad-behavior or spam karma? Do you have any plugins that alter comment behavior. I once had a problem like this and i had to change a plugin setting.

  21. LisK
    Member
    Posted 7 years ago #

    I have no plugins activated except sidebar widgets and wp flickr widgets. What's bad-behavior and spam karma? This is a new (today) install so if it didn't come bundled with 2.1 I don't have it, with the exception of the two plugins I mentioned.

    I'm wondering if it might be the theme I'm using - Blue Zinfandel Squared Enhanced 2.0. Here (hopefully) is the code for the comments.php file:

    <?php // Do not delete these lines
    if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
    die ('Please do not load this page directly. Thanks!');
    if (!empty($post->post_password)) { // if there's a password
    if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
    ?>
    <p class="nocomments">
    <?php _e("This post is password protected. Enter the password to view comments."); ?>
    <p>
    <?php
    return;
    }
    }
    /* This variable is for alternating comment background */
    $oddcomment = 'alt';
    ?>
    <div id="commentblock">
    <!--comments form -->
    <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
    <p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">logged in</a> to post a comment. </p>
    <?php else : ?>

    <!--comments area-->
    <?php if ($comments) : ?>
    <p><?php comments_number(__('No Comment'), __('1 Comment so far'), __('% Comments so far')); ?></p>
    <ol id="commentlist">
    <?php foreach ($comments as $comment) : ?>
    <li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">
    <?php comment_author_link()?> on
    <?php comment_date('F j, Y') ?>
    <?php comment_time()?>
    <?php edit_comment_link(__("Edit This"), ''); ?>
    <?php if ($comment->comment_approved == '0') : ?>
    <em>Your comment is awaiting moderation.</em>
    <?php endif; ?>
    <?php
    if(the_author('', false) == get_comment_author())
    echo "<div class='commenttext-admin'>";
    else
    echo "<div class='commenttext'>";
    comment_text();
    echo "</div>";

    ?>
    </li>
    <?php /* Changes every other comment to a different class */
    if ('alt' == $oddcomment){
    $oddcomment = 'standard';
    }
    else {
    $oddcomment = 'alt';
    }
    ?>
    <?php endforeach; /* end for each comment */ ?>
    </ol>
    <?php else : // this is displayed if there are no comments so far ?>
    <?php if ('open' == $post-> comment_status) : ?>
    <!-- If comments are open, but there are no comments. -->
    <?php else : // comments are closed ?>
    <!-- If comments are closed. -->
    <p class="nocomments">Comments are closed.</p>
    <?php endif; ?>
    <?php endif; ?>
    <?php /* if ('open' == $post-> comment_status) : */ ?>
    <?php /* endif; // If registration required and not logged in */ ?>
    <?php endif; // if you delete this the sky will fall on your head ?>

    <div id="commentsform">
    <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
    <?php if ( $user_ID ) : ?>

    <p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account') ?>"> Logout &raquo; </a> </p>
    <?php else : ?>

    <p><?php _e('Name ');?><?php if ($req) _e('(required)'); ?><br />
    <input type="text" name="author" id="s1" value="<?php echo $comment_author; ?>" size="30" tabindex="1" />
    </p>

    <p><?php _e('Email ');?><?php if ($req) _e('(required)'); ?><br />
    <input type="text" name="email" id="s2" value="<?php echo $comment_author_email; ?>" size="30" tabindex="2" />
    </p>

    <p><?php _e('Website');?><br />
    <input type="text" name="url" id="s3" value="<?php echo $comment_author_url; ?>" size="30" tabindex="3" />
    </p>

    <?php endif; ?>
    <!--<p>XHTML:</strong> You can use these tags: <?php echo allowed_tags(); ?></p>-->
    <p><?php _e('Speak your mind');?><br />
    <textarea name="comment" id="s4" cols="90" rows="10" tabindex="4"></textarea>
    </p>

    <p>
    <input name="submit" type="submit" id="hbutt" tabindex="5" value="Submit Comment" />
    <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
    </p>
    <?php do_action('comment_form', $post->ID); ?>
    </form>
    </div>
    </div>

  22. merrua
    Member
    Posted 7 years ago #

    Spam karma and Bad behavior are plugins that help keep down spam. Im new to php so im not that sure if anythings wrong with the code.

    However
    In Options, In discussion. IN "Before a comment appears:"
    Is any box ticked beyond
    "Comment author must fill out name and email"

    If the other two are ticked they might be causing the problem.

  23. LisK
    Member
    Posted 7 years ago #

    No, none of them are ticked. I tried checking author must fill out name and email but that didn't change it either.

  24. merrua
    Member
    Posted 7 years ago #

    Ok.
    You can see them in your manage comments? But not on the blog?

    Did you check if they are all being held for moderation? If so they wont appear till you have said they are ok.

    (you might have in Options > Discussion > Before a comment appears: And administrator must approve the comment. In which case you would have to ok all the comments)

    After that you could check your blacklist, maybe it has common words listed.

  25. LisK
    Member
    Posted 7 years ago #

    I don't have it set to administrator must approve the comment. I don't have any words in my blacklist. Any logged in user can see the comments on the blog - not just administrators, but if you're not logged in, you can't see them.

  26. PraveenC1
    Member
    Posted 7 years ago #

    I installed WordPress last night at http://php.basicsyntax.com. I have the same issue. I'd like people to be able to post anonymously.

    Here is my configuration:
    - Options -> Discussions
    - - Allow people to post comments on the article (checked)
    - - An administrator must approve the comment (UNchecked)
    - - Comment author must fill out name and e-mail (UNchecked)
    - - Comment author must have a previously approved comment (UNchecked)

    When I click the "post a comment" link it says "You must be logged in to post a comment." which is what I want to eliminate.

    Any thoughts to fix this are appreciated.

  27. LisK
    Member
    Posted 7 years ago #

    Just to clarify, that's not the same issue. My issue is that visitors can't even READ the comments that logged in users have left.

  28. mblyman
    Member
    Posted 6 years ago #

    I am having the same problem on my installed of word press as PraveenC1. nobody can leave a comment without logging in. I would like everyone to be able to post a comment if they so desire.

    Any help would be appreciated. http://www.lymanuniverse.com is the url.

    I am using MistyLook 3.3.1 theme.

    Thanks

  29. mblyman
    Member
    Posted 6 years ago #

    OK I think I was able to find the solution.

    Under Options > General tab in the admin there is a setting for membership. In my install the option for "Users must be registered and logged in to comment" was selected by default. I simply unchecked the box and now people can comment and see comments.

    Hope this helps everyone.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.