WordPress Not Pinging? – Here’s To How To Fix It!

It’s been a funny old week since I updated to WordPress 2.9, don’t get me wrong the new update is fantastic and some of the new features are extremely useful to use, but, and this is a big but, after installing the update, every time I made a post or used a ping back or trackback my WordPress blog would not ping or send pingbacks to other sites!

But now since making a tiny little tweak to the file “wp-includes/cron.php” I’ve fixed the problem!

If you look at the original code for cron.php you will find the following code:

$cron_url = get_option( ‘siteurl’ ) . ‘/wp-cron.php?doing_wp_cron’;
wp_remote_post( $cron_url, array(‘timeout’ => 0.01, ‘blocking’ => false, ‘sslverify’ => apply_filters(‘https_local_ssl_verify’, true)) );

You will notice that I have made a bit bold! This is what you need to change, change this to 1 so now it should read:

$cron_url = get_option( ‘siteurl’ ) . ‘/wp-cron.php?doing_wp_cron’;
wp_remote_post( $cron_url, array(‘timeout’ => 1, ‘blocking’ => false, ‘sslverify’ => apply_filters(‘https_local_ssl_verify’, true)) );

Now you should find that you pings are now working again, hopefully, I checked mine via the Ping Optimizer plugin and the log on the plugin confirmed a ping status!

Please remember before using this tweak, back up your original “wp-includes/cron.php” file, just in case, you never know ;)

About Karen Woodham

Karen Woodham is the founder and owner of the Blazing Minds blog an avid blogger of all sorts of interesting and odd things. She is also a Cinema Film Reviewer, based in Rhyl, where she reviews the latest movies and is a bit of a local celebrity, a new generation of online journalist. Follow Karen Woodham on Twitter, Facebook and
Tagged . Bookmark the permalink.

Comments - Have Your Say

36 Responses to WordPress Not Pinging? – Here’s To How To Fix It!

  1. iWoodpecker says:

    Nice one :) I’ve checked my pings after update and it came out, that there were none of them! So I’ve followed your advice.. now it’s OK.
    Bookmarking, tweeting etc

    T-H-A-N-K Y-O-U!
    .-= iWoodpecker´s last blog ..Insane List of 140 Do Follow & Nofollow Blogs with CommentLuv 2010 =-.

  2. Book marked, tweeted and wrote a post linking back to help spread the word. How do you check your pings like you were, what did you look at to determine there was even a problem? How do you check if your site is giving pingbacks to other sites properly?
    .-= Dragon Blogger´s last blog ..Fix WordPress 2.9 Ping and Traceback Issues =-.

    • Karen says:

      Thanks for the post and link back, I use the Ping Optimizer to check my pings and it’s log wasn’t showing any pings on updates to posts etc, it is a handy plugin it only pings when you make a new post instead of pinging every time you edit a post.

  3. element321 says:

    Great post. I had heard about this and was waiting to upgrade. I will try this tonight. I voted for this on Blog Engage, Retweeted and posted a link on my blog about your post.
    .-= element321´s last blog ..How to fix WordPress Ping Once it Stops Working. =-.

  4. Extreme John says:

    It looks like there are a few issues with the new WordPress, I just left another blog that had a similar post about repairing the issue.
    .-= Extreme John´s last blog ..This Exchange Website, That Exchange Website! =-.

  5. Karen says:

    :lol: Now if I could just fix the other problem of not been able to edit themes with the theme editor!

  6. Michael says:

    Thank you so much for this! Pings were showing up rather erratically before.
    .-= Michael @ Monetize your Life´s last blog ..Failure Quotes – Celebrating my Failures of 2009 =-.

  7. Alison Moore Smith says:

    More good info from you Karen. PHP geniuses rock.
    .-= Alison Moore Smith@Blog in 1 Week´s last blog ..BlogEngage: First 10,000 Votes =-.

  8. Hesham says:

    Ah Karen so you are tweaking WordPress now, this is Awesome ;)

    Also the Simple Tag plugin is not working with the 2.9 version.
    .-= Hesham @ FamousBloggers´s last blog ..Breaking News: The Latest Stable Release of WordPress Version 2.9 “Carmen” is Available =-.

    • Karen says:

      I can’t take all the credit, a friend of mine mentioned the word “Cron” so I looked through the WP files and found a file to check out and then changed a setting! It wasn’t the first file I tried editing ;)

  9. Mike says:

    I had some serious headaches with 2.9 – mostly conflict with plugins, but I’m going to have to see if I’m having this problem too.
    .-= Mike´s last blog ..Fresh Brews: Coffee Obsessed And Free Wifi =-.

  10. mark says:

    kewl post karen… 1st time in your page.. and i so love it.
    great help you are to me. Aja!
    .-= mark´s last blog ..Watch Alvin & The Chipmunks – The Squeakquel Free Online =-.

  11. mark says:

    by the karen, I made a made a post regarding this one… pointing to your site. Happy holidays karen!
    .-= mark´s last blog ..Dungeons & Dragons Spellcasting Soda for Holiday Season =-.

  12. Ileane says:

    Karen, I admire your skills. When I grow up I’m gonna learn more about code!
    .-= Ileane´s last blog ..Fun Twitter Promotions for Your Blog =-.

  13. Anand Srinivasan says:

    I have been having trouble with one of my new blogs. Let’s see how it changes..By the way, Karen..any idea about this other line in the code:

    $crons[$timestamp][$hook][$key] = array( ‘schedule’ => false, ‘args’ => $args );

    Schedule is set to false? Is there something wrong here?
    .-= Anand Srinivasan´s last blog ..Be A Part Of The Bloggies Network =-.

  14. Heather Kephart says:

    Amazing, Karen! I’m sorry you had to go through the initial frustration of all of this, but kudos to you for amending the situation. Also, thanks for sharing your solution so others don’t have to go through what you did for long!
    .-= Heather Kephart´s last blog ..Hyenas and Secret Cheerleaders =-.

  15. Dennis Edell says:

    Awesome quick tip Karen, thanks!
    .-= Dennis Edell´s last blog ..The $10 Winner And More Good News….. =-.

  16. George Serradinho says:

    Wow, i did not even know about this. this makes a huge difference to any kind of site/blog, from the small to the big guy.

    Thanks for sharing this. I will be adding this post to my Monday roundup for next week. I don’t know if others know about it.
    .-= George Serradinho´s last blog ..eBook – Delicious Candy Recipes =-.

  17. Sonya says:

    Could you tell me where I find the cron.php file please, so I can edit to see if that fixes my problem.

    Cheers

    Sonya
    .-= Sonya´s last undefined ..If you register your site for free at =-.

  18. Hi, I tried this and got it to validate for a few minutes and then poof. Back to 404. Very frustrating. (As you can see below, my feed stopped working Christmas.) Think it’s a plugin conflict issue then?
    .-= Roberta Rosenberg is hoping you stop by and read MavenTweets for 2009-12-25 =-.

    • Karen says:

      Could well be, if you are using WordPress try changing your feed to summary instead of full text, sometimes feedburner doesn’t like it when coding is added to a blog post!

  19. I’m sure I’m missing something here, but FB won’t let me change the feed setting since it can’t find my URL. Stymied.
    .-= Roberta Rosenberg is hoping you stop by and read MavenTweets for 2009-12-25 =-.

    • Karen says:

      hmmm, if you have a plugin that forwards your feed to feedburner, disable it and then write a new post, then see if your normal blog feed has the updated post in it, failing that, check you are running WordPress 2.9.1 if not upgrade and then see if it work. Failing that I’m not too sure, so anyone else reading this post got any ideas?

  20. Thanks for the assist, and I tried what you suggested. Nada. I’m already on 2.9.1
    .-= Roberta Rosenberg is hoping you stop by and read MavenTweets for 2009-12-25 =-.

Loading Facebook Comments ...
Loading Disqus Comments ...