Fixing Twitter for WordPress: No public Twitter messages – Error

No public Twitter messages error

I have been using the Twitter plugin on my site for some time now. It’s been working as it should until recently. “No public Twitter messages” is display on my Twitter message board even though I know for sure that I have tweets on my Twitter page. Hence the start of a search for a solution. It turns out that Twitter recently changed their RSS feed url to a different format, so the twitter.php file that came with the plugin need to be updated for it to work again.

To quickly resolve this problem especially for the not-so-tech-savvy is to update line 54 in the twitter.php file.

Here is how to do it. Go to your plugin folder on your web server. Open “twitter.php within the “twitter-for-wordpress” folder.

Step 1

Navigate down to line 54 where it reads:
$messages = fetch_rss(‘http://twitter.com/statuses/user_timeline/’.$username.’.rss’);


Click to enlarge.

Step 2

Replace line 54 with the follow line below:
$messages = fetch_rss(‘http://api.twitter.com/1/statuses/user_timeline.rss?screen_name=’.$username);


Click to enlarge.

Summing Up

This solution worked well for me and it was easy execute. For more information on how to edit and or update your Twitter for WordPress settings, go to rick.jinlabs.com/code/twitter/

November 3rd, 2012 | Blog | 21081 Views | 9 Comments ›

9 comments »

  1. November 6th, 2012

    Will says:

    I think you may need to update line 168 too.

  2. November 6th, 2012

    Tim Cai says:

    Will,
    Please enlighten us about the possible need to change line 168 as well. I didn’t and it seems to be working fine.

  3. November 27th, 2012

    Natasha says:

    You can follow up on the two lines here: http://wordpress.org/support/topic/no-public-twitter-messages-1

  4. January 21st, 2013

    Alexandre says:

    Thank you! Worked fine…you dont know how much time I’ve spent on this…

  5. January 23rd, 2013

    Matt says:

    Thank you this fixed my issue! How frustrating that the plugin author hasn’t bothered to fix this by now. Give them a big thumbs down!

  6. June 2nd, 2013

    Tim Cai says:

    I have recently updated to wordpress 3.5.1 and the problem is happening again. I had double checked the twitter.php file. Line 54 is written correctly as stated in my post but I am still seeing “No public Twitter messages.” on my website. Any one know how to fix this issue after updating to wordpress 3.5.1? Please help!

  7. June 13th, 2013

    Ingrid says:

    Still experiencing this problem. Anyone else have solutions or updates? Thanks!

  8. July 3rd, 2013

    Jason R says:

    Same for me done the updated code, but “No public Twitter messages.”

  9. August 13th, 2013

    Tim Cai says:

    Yea, I am as well and haven’t been able to find a solution to this or an alternative plugin. Any suggestions would be great!

Leave a comment * Required fields.


About

  • "Sure someone else could have created a greater logo redesign for EME Lighting but I was sold on Tim’s diligence & reliability plus I love our new logo! It is fresh, symbolic of who we are while staying in line with our brand intention."

    - Bill Lee
    CEO of EME Lighting
  • "Tim is a trustworthy and effective designer. He redesigned the entire visual identity system for my company & I am extremely pleased with it. As the CEO of a company with over 3000 employees, I would recommend Timmy to anyone looking to have some serious design work done."

    - Tony Ou
    CEO of Senqiu Lighting
  • "Tim effectively designed my website and newsletter. What impressed me the most was his ability to create the images, style and design I was looking for. I highly recommend him if you are looking for someone reliable, flexible and talented."

    - Christine M.
    Owner of Acupuncturebody
  • "Tim has a great personality that makes him a pleasure to work with. He is focused, hard working & always has an attention to details. He has great curiosity and constantly strives to learn & develop himself taking his work to the next level"

    - Slava S.
    Director of Creative Services at STV
  • "Tim conceptualized original ideas & executed the design brilliantly. He always made sure the highest technical & design standards were met. I could always count on him to translate the client vision into reality."

    - Linda G.
    VP Biz Dev. at Real Estate Arts
  • "Tim is a highly talented designer. He has excellent technology skills, amazing dedication & terrific interpersonal abilities."

    - Michael S.
    AD at Real Estate Arts
  • "Timmy is a very talented designer, he is passionate and reliable, his work is always creative & on time. He’s a good person with lots of energy, which makes him a pleasure to work with."

    - Jess L.
    AD at Sudler & Hennessey
  • "Timmy got a great system for helping you figure out what you want, need & putting those ideas down into a tangible product. He has done 3 sites for me already & anyone I have recommended him to has called me back to thank me."

    - Vahram S.
    Owner of Brooklyn Body