• Resolved nontechblogger

    (@nontechblogger)


    As far as I know, the comment submission has been working, however, I just tested it and I’m getting this error on my browser:

    Not Found
    The requested URL /wp-comments-post.php was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    My wp-comments-post.php is located directly under my WordPress directory, that’s where it’s always been. As far as my form action, it reads:

    <form action="<?php echo get_option('../hiperminimalist-v1/mytheme/siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">

    I’ve been modifying the files today and I don’t know if it has anything to do with what I did. Here’s what I’ve done:

    1) added $withcomments = “1”; to <?php comments_template(); // Get wp-comments.php template ?> so the comments display on my initial blog page. I’ve got that working.

    2) widgetized my sidebar. I added the code in sidebar.php and created a functions.php file.

    3) added an Addtoany widget on my sidebar

    That’s about all I did. I’d appreciate any help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You should be using get_bloginfo('url').'/wp-comments-post.php as your form action.

    Thread Starter nontechblogger

    (@nontechblogger)

    So do I add get_bloginfo(‘url’).’ in front of /wp-comments-post.php ?

    Yes. The whole form tag would be…

    <form action="<?php echo get_bloginfo('url'); ?>/wp-comments-post.php" method="post" id="commentform">
    Thread Starter nontechblogger

    (@nontechblogger)

    I’ll try that.

    Thread Starter nontechblogger

    (@nontechblogger)

    That worked! My test comments went up without waiting in the moderation queue although I have it set to all comments be held for moderation. Maybe it’s because I’m the administrator..

    Hi apljdi,

    This is the only thread I found that have the exact same problem with me.

    Not Acceptable

    An appropriate representation of the requested resource /fxlog/wp-comments-post.php could not be found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    So I’ve tried your suggestion. But it still doesn’t work on me. This is my blog: https://a2xm.com/fxlog/ could you please help me to check it out? I did not modified anything from the beginning. The only comment is the sample one.

    Thanks in advance..

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Comment submission error’ is closed to new replies.