SELaplana >> Wordpress >> WordPress Redirect After Commenting, Failed

WordPress Redirect After Commenting, Failed

It was already a month now since I started looking for the ways to solve the problem of the WordPress installation of this blog, but I failed. If you tried posting comments on this blog then maybe you noticed it already.

I checked my other blogs that are using the WordPress software, but they are all running smoothly except this blog. I am just wondering what really is the cause of it.

What’s the problem?

The WordPress software is designed in a way that after you post your comment, you’ll immediately see your comment on the space after the last posted comment. The code that is responsible for the redirection after you post your comment is the code below:

$location = ( empty($_POST['redirect_to']) ? get_permalink($comment_post_ID) : $_POST['redirect_to'] ) . ‘#comment-’ . $comment_id;
$location = apply_filters(‘comment_post_redirect’, $location, $comment);

wp_redirect($location);

This code is found at the end part of the file “wp-comment-post.php”

But it is not functioning on this blog after you click that “Submit Comment” button. Instead of redirecting you to the post where you posted your comment, you are immediately redirected to the messed page of this blog.

Remedy

I already tried a lot ways just to correct the problem. I disabled all the plugins, edited the “.htaccess” file… etc. But still the problem exist.

Help

I’m already at my limit. I need your help.

Automatically receive updates via email...
Enter your email address:
Tweet This
Tags: , , , Bookmark and Share
Tweet This!

Comments

7 Responses to “WordPress Redirect After Commenting, Failed”

  1. Allen says:

    Comment test (Just to know what’s wrong)

  2. Allen says:

    Hi Sel, I just tried to comment to see the problem. Did you do any modifications to the comments file lately? I could suggest that you revert to the original files.

    I just checked my installation, how come I don’t have that file? wp-comment-post.php?

  3. SELaplana says:

    hi thanks… wp-comment-post.php is found at the root directory at is responsible for posting the vistiors’ comment. Actually, I haven’t edited any of the WordPress original files. I only replaced them during the upgrade process to the latest version.

  4. SELaplana says:

    test ko rin if okay na. I tried installing the threaded comment plugin. I don’ know if it works.

  5. Health blog says:

    is it possible to redirect users randomly after they have posted a comment ?

Trackbacks/Pingbacks

  1. [...] I told you before that this blog has problem in redirecting users who posted comments at this blog into the right page where they posted their comments. My previous post about this is “WordPress Redirect After Commenting, Failed.” [...]

  2. [...] commented (Check my posts: WordPress Redirect Function Problem, Commenting Problem, Not Yet Fixed, WordPress Redirect After Commenting, Failed and WordPress Problem at this Blog). This problem is until now not yet [...]

Leave a Reply

CommentLuv badge

Pinay Scandal

Actually, this terms refer to the photos, videos or any stories that reveal shameful, sxeperience, and secrets of some individuals or celebrities.

Still Fixing My Blogs

For several weeks already, almost all my time are spent searching for the information that might help me fix problems on my blogs. Just like

WordPress Redirect Function Problem

I already talked about this problem before at my posts: Commenting Problem, Not Yet Fixed, Wordpress Problem at this Blog and Wordpress Redirect After Commenting,

Commenting and Moderating Blog Comments

Maybe I am not active already in commenting to other blogs. It's not because I am not interested in commenting other blogs. Of course I

WordPress Problem at this Blog

I told you before that this blog has problem in redirecting users who posted comments at this blog into the right page where they posted

WP-Comments-Post.PHP Redirect Bug

As of writing this post (December 26, 2007) our blog has a problem of showing the post where a users posted his comment. For example,

Commenting Problem, Not Yet Fixed

I'm sorry to tell you that this blog has problem in redirecting you to the right page after posting your comments.  Thank you so much

You Comment and I will Follow Your Links

Didn't I tell you that this blog is already giving away links to those who will comment here? Yes! This blog is already a "Do Follow"

More Evil Ways in Gaining More Comments

I already mentioned the ways I used in making my readers interact with us by commenting into our blogposts like: Giving links to top commentators,

WordPress Upload Function Failed

Update: The problem is fixed already. Thank's a lot for your help. And as proof that it's fixed already, I uploaded this image: Original Post: You know, I

Upgrade Now to WordPress 2.2.2 and WordPress 2.0.11

For the sake of those who failed to notice the release of the new bug-free (free from known bug) Wordress 2.2.2 or Wordpress 2.0.11, please

Related Post Plugin

Related Post v 2.0.1 plugin by WASABI is the first plugin I installed on my Wordpress script for this blog. The setup script of this plugin

WordPress 2.3 Dexter, Released with Interesting Features

I know, this is already a late announcement on the release of the Wordpress 2.3 with code name "Dexter". I wrote this post last Tuesday,

Upgraded WordPress, Avoided Access of Hackers

Finally upgraded my Wordpress engine to the latest version which is the Wordpress v2.0.7 released recently by the Wordpress developers. This is the best way

WordPress Hack Warning

Garry Conn noticed earlier that most of his Wordpress self-hosted blog has been hacked and exploited by Russian hackers. These blogs are powered by Wordpress

WordPress v2.1.1 Cracked, Upgrade To v2.1.2 Immediately

Wordpress announced that the Wordpress v2.1.1 is corrupted and those who upgraded their sites to that version should upgrade the system to the v2.1.2 immediately. Long

www.sss.gov.ph static information

sss gov.ph SSS Online Inquiry

Search Lyrics by Artists: 0-9 - A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z