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 ;)

If you enjoyed reading this post, then please remember to post a comment, Subscribe to my RSS feed.


Protected by Copyscape Plagiarism Check Software

No related posts.

Written by Karen (965) Published Articles

Karen is founder of the Blazing Minds blog and avid blogger of all sorts of interesting and odd things. She is also the Apollo Rhyl Film Reviewer and also a keen music producer and founding member of the electronic music duo Remergence...

Link up with Karen at @BlazingMinds | | Facebook

 
 
40 Responses to “WordPress Not Pinging? – Here’s To How To Fix It!”
  1. WordPress Stops Pinging – 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 u…

  2. iWoodpecker
    Twitter:
    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 =-.

  3. 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
      Twitter:
      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.

  4. element321
    Twitter:
    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. =-.

  5. Extreme John
    Twitter:
    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! =-.

  6. john
    Twitter:
    says:

    Maybe they did not tested it enough before releasing it. It’s good that you managed to solve the problem by yourself. They should offer you something as a reward maybe :)

  7. Michael
    Twitter:
    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 =-.

  8. Alison Moore Smith from Blog in 1 Week
    Twitter:
    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 =-.

  9. Hesham from FamousBloggers
    Twitter:
    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
      Twitter:
      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 ;)

  10. Mike
    Twitter:
    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 =-.

  11. mark
    Twitter:
    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 =-.

  12. chandan from work at home
    Twitter:
    says:

    Thank you for the nice tutorial Karen. I think this tutorial will help for wordpress users.
    .-= chandan@work at home´s last blog ..How Google Caffeine effect on your work at home blog ranking system? =-.

  13. mark
    Twitter:
    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 =-.

  14. Ileane
    Twitter:
    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 =-.

  15. Anand Srinivasan
    Twitter:
    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 =-.

  16. Heather Kephart
    Twitter:
    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 =-.

  17. Dennis Edell
    Twitter:
    says:

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

  18. 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 =-.

  19. Sonya
    Twitter:
    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 =-.

  20. 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 =-.

  21. 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
      Twitter:
      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?

  22. 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 =-.

  23.  
Leave a Reply


Comment Policy Important Please Read

Please be aware that all comments made are moderated and SPAM will not be tolerated, make sure you use your real name (NOT A WEBSITE NAME), you can also utilise (YOURNAME @ BLOG NAME), if we deem a comment to be SPAM then it will be edited or deleted! SPAMMERS are not welcome here! Comments without a Gravatar may also be deleted! Comments without a first name will NOT be approved!

Editors have the right to moderate or delete any comment they choose.

CommentLuv badge