Forums

[resolved] Comments not working—they go to 404 Not Found (5 posts)

  1. ryanve
    Member
    Posted 2 years ago #

    When I try to post a comment on my site VirtualMusic.tv I get this error:

    Browse: Home / 404 Not Found
    Not Found
    You tried going to http://virtualmusic.tv/%5ehttp://69.116.24.13/$, and it doesn't exist. All is not lost! You can search for what you're looking for.

    Aside from style.css I've made no changes to my theme or to any wp files. I'm using WordPress 2.8.1 with the Hybrid Framework and the Skeleton child theme.

    I've read a number of the related posts about comment problems. I've tried the following, but none of these solved the problem:

    -Disabling Plugins
    -Changing the Discussion Settings
    -Changing the Permalinks Settings
    -Reverting back to the 2.8 version of wp-comments-post.php
    -Commenting on a different post
    -Signing in as a different user

    Any ideas how to fix this?

    [signature moderated Please read the Forum Rules]

  2. Shane G
    Member
    Posted 2 years ago #

    Hi,

    Remove all unwanted code from the htaccess file and add this code and have a check with the blog and its features:

    # BEGIN WordPress

    <IfModule mod_rewrite.c>
    ErrorDocument 404 /index.php?error=404
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    Thanks,

    Shane G.

  3. ryanve
    Member
    Posted 2 years ago #

    Good call Shane. I got it to work by removing some code that I don't need in .htaccess, I had been using the below.htaccess hack for wordpress on other sites, but this is what was causing my problem.

    #DENY COMMENT SPAM
    RewriteCond %{REQUEST_METHOD} POST
    RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
    RewriteCond %{HTTP_REFERER} !.*thespinarounds.com.* [OR]
    RewriteCond %{HTTP_USER_AGENT} ^$
    RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]

    As soon as I removed this from .htaccess, the comments worked fine.

    Thanks!

    [signature moderated Please read the Forum Rules]

  4. Eon-Rider
    Member
    Posted 2 years ago #

    I have a similar problem right now. My blog has undergone pretty much no changes and no one can post comments. I'm not sure how it's been going on for but someone reported it to me today. I still receive the occasional email saying that someone has commented but going to the moderation page yields no new comments.

    I've tried the above but I don't think I have an .htaccess file.

  5. ryanve
    Member
    Posted 2 years ago #

    My oversight: Ouch, I forgot to change the url, in the above "Deny Comment Spam" htaccess hack, to the url for my site. That was causing the comment problem for me. So it was more of a lack of sleep issue than an htaccess issue!

    Eon-Rider: Your .htaccess file should be in your site's main directory. Normally, if you didn't have one you could create a text file with that name, but since you've installed WordPress it should definitely be there already, because installer would have generated it if it was missing (and added the code that Shane mentioned). So I think you're either looking in the wrong place, or the interface you're using to access your site's files is hiding it. If you access your site via FTP you should be able to see it. In any case I hope you're able to fix the problem, because I definitely feel your pain!

    [signature moderated Please read the Forum Rules]

Topic Closed

This topic has been closed to new replies.

About this Topic