10
Feb
Wordpress Blank Comments Page Fix
February 10th, 2007 under Tech, Usability.
 

Something that has really been “eating my head” lately, as my Indian friends say, is the fact that comments haven’t been working on several of my blogs. Of course I didn’t know it until I got an email about it, because I really don’t comment on my own blogs that much.

After you would enter a comment it would just route you to wp-comments-post.php, and the screen was blank, and no comments were coming through in the moderation queue on the backend. After some investigation I figured out what the problem is. I have my .htaccess file set up to redirect http://example.com to http://www.example.com to solve any Google url canonicalization issues, but in my Wordpress options I had the URL of the blog set as http://example.com. When someone would submit a comment, Wordpress would send the comment to http://example.com/wp-comment-post.php but my .htaccess would redirect that to http://www.example.com/wp-comment-post.php. During that redirect the comment was “lost” or the system got confused or whatever and I saw a blank page.

I was also having a problem when logging in at /wp-admin.php. After I logged in successfully I was getting routed to /%2Fwp-login%2F. I would suspect that it was the same .htaccess problem, although I don’t for sure because when I upgraded to Wordpress 2.1 it fixed this problem.

If you’re having the same problem make sure your blog URL and .htaccess match up and it should fix the issue.

Bookmark This Post: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • digg
  • del.icio.us
  • Reddit
  • StumbleUpon
  • Netscape
  • Technorati
 

Leave a Reply