IT Milk: entry

The author published this entry on Thursday 07 June, 2007 at 9:03 pm. It's been filed in the Softwarecategory

Wordpress AJAX Problem Fixed: Deleting & Adding Categories

Brent at Relentlus unintentionally tipped me off to a solution for fixing what I had long thought was an AJAX problem in Wordpress. I was doing some comment PR for Pepperjam on Shoemoney’s new post about the breaking news of Pepperjam’s partnership with Doubleclick. And Brent was curious enough to check out my blog and attempted to leave a comment, only to find out that it doesn’t work.

Apparently the commenting feature on my blog has been broken for several months… I never thought twice about it, that in the lifetime of this blog I’ve only received two comments, one of them being my own. Haha.

The Problem

AJAX seemed to be screwed up in the Wordpress admin interface. I would delete a category and it would remove itself from the screen, but upon refreshing it would still be there. The same situation applied for adding new categories and blogroll entries. I thought that somewhere along the way of numerous Wordpress upgrades, my database table for user permissions became corrupted.

I tried re-uploading the default Wordpress files 5 times, which obviously wasn’t necessary to repeat so many times. And, as you might expect, it didn’t fix anything.

Also, I scavenged the Wordpress Support Forums for any possible solution. And that endeavor did not yield any positive results either. At one point I started to blame Dreamhost for my problems. Your servers suck, that’s why my Wordpress AJAX doesn’t work!

The Solution

The fix is simple and completely overlooked. I had 301-redirected my domain (for the purpose of SEO) so that all requests for http://itmilk.com would go to http://www.itmilk.com. However, in my Wordpress options, I had my URL setup as http://itmilk.com. So the admin AJAX functions could not properly access the URL’s stored in the script variables. So all I had to do was pop in a “www” into the URL option and everything, including the comment-posting, works now.

Thanks, Brent, I owe you a beer. Too bad that I’m under-age. :)

The Buzz {1 trackbacks/pingbacks}

  1. Pingback: Seoras.com » Blog Archive » My WordPress was very srewed up on July 10, 2007

The Conversation {11 comments}

  1. Daehee 07 June, 07 @ 9:04 pm

    test

  2. kangmi 08 June, 07 @ 4:57 am

    That explains why I’ve never been able to comment here.

  3. Brent 08 June, 07 @ 4:16 pm

    Cool, glad to see you got it fix. Corona w/ 2 limes is my preference! :)

  4. J.T Dabbagian 10 June, 07 @ 9:51 am

    This fix saved me! Thanks!

  5. Erik 19 July, 07 @ 9:12 pm

    You are smart, thanks for the fix!

  6. Fan4Lost 26 July, 07 @ 8:42 pm

    WOW! Thanks so much! You have no idea how much this was bothering me. Mine was adding categories and deleteing them. I searched Wordpress like you did and nothing they suggested helped.

    Your awesome! ^_^ Thanks again!

  7. Arup 28 September, 07 @ 7:07 am

    Amazing, and yet so simple. Cheers mate.

  8. David Behan 03 October, 07 @ 6:34 am

    I thought I was going mad! Thanks so much for your help! Fixed in 2 seconds! :D

  9. cla 11 October, 07 @ 2:35 am

    thank you so much. you saved me from insanity. hahaha!

  10. Martin 14 October, 07 @ 4:49 pm

    Cheers dude.

  11. Mac 11 December, 07 @ 2:53 am

    Can’t tell you how much this has made my life easier. Thanks mate.

Leave Your Own Comment

You can follow any responses to this entry via its RSS comments feed. You can also leave a trackback if the inclination is there.

If you're looking for something specific then give the search form below a try:

RSS Wordpress Grady (theme) Valid XHTML Return to the Top ↑