[Plugin: Twitter for WordPress] No public Twitter messages
-
I get a lot of:
No public Twitter messages
on my site. No all the times though.
And trust me there are public Twitter messages on my twitter (they all are)
-
thanks tvarne – that just worked for me – hopefully it will stick.
I just had some luck with disabling wp-cache for the page where I call twitter_messages().
Come on. It must be a one fix to rule them all for this problem.
tvarne, I think you are on the right track. It looks like line 49 of twitter.php is redefining $username to blank, overwriting the username that it gets passed. If you remove the =’ ‘ it should function properly.
current line 49 of twitter.php
function twitter_messages($username = ' ', $num = 1, $list = false, $update = true, $linked = '#', $hyperlinks = true, $twitter_users = true, $encode_utf8 = false) {
change to
function twitter_messages($username, $num = 1, $list = false, $update = true, $linked = '#', $hyperlinks = true, $twitter_users = true, $encode_utf8 = false) {
I tried everything you said but still get the dreaded message.
Why the authors never respond when their plugin is not working?!
This is the 3rd twitter plugin that I tried.Still receive the same message despite trying the fixes mentioned here.
Hello guys,
This must be a very weird issue.
I moved my hosting from other hosting to Godaddy, and now it works perfectly well.
I have tried all the solutions above and it did not work with my previous hosting.
For godaddy, I kept the default settings and I have no problem for it.
Good luck!
Don Salva’s fix worked – replacing the rss number with the one from your twitter rss feed. However, I’m so tired of this janky plugin, I just used hhalvor’s suggestion to get the widget from twitter: https://twitter.com/widgets/html_widget. You’ll need to login to acquire it. Less hassle for sure. Twitter for WordPress plugin now going into the trash.
I just solve this problem
MAGPIE_FETCH_TIME_OUT constant is answer.
Set this constant value greater then 2 seconds(by default).
This constant defined in rss.php file.if ( !defined(’MAGPIE_FETCH_TIME_OUT’) ) {
define(’MAGPIE_FETCH_TIME_OUT’, 2); // 2 second timeout
}
setif ( !defined(’MAGPIE_FETCH_TIME_OUT’) ) {
define(’MAGPIE_FETCH_TIME_OUT’, 15); // 15 second timeout
}
or greater valueI had to temporarily override the default Magpie timeout to get it to read the twitter RSS feed. It’s 2 seconds by default, which seems terribly short to me. Since the twitter site is excruciatingly slow right now, it was timing out.
My solution, editing the sidebar.php
<?php if(function_exists(‘twitter_messages’)) { ?>
-
<ul class=”sb-tools clearfix”>
<li class=”twitter-icon”>
<span><?php _e(‘Latest Tweet’, ‘default’); ?></span><!– Remove o comment the code between ####
#######
/*<?php if(function_exists(‘twitter_messages’)) { twitter_messages(‘raelga’, 1, false, false, ”, false, false, false); } ?>
#######
–><!– Add the Twitter generated JS o change the this script directly
raelga it’s my Twitter username, change it for your username –><div id=”twitter_div”>
<ul id=”twitter_update_list”>
Sígueme en Twitter
</div>
<script type=”text/javascript” src=”https://twitter.com/javascripts/blogger.js”></script>
<script type=”text/javascript” src=”https://twitter.com/statuses/user_timeline/raelga.json?callback=twitterCallback2&count=1″></script><!– Remove o comment the code between ####
###########
<p class=”sb-icon-text”><?php _e(‘Follow me on twitter’, ‘default’); ?> <?php _e(‘here’, ‘default’); ?>.</p>
######### –>
<?php } ?>
My solution, editing the sidebar.php
<?php if(function_exists('twitter_messages')) { ?> <li> <ul class="sb-tools clearfix"> <li class="twitter-icon"> <a class="sb-icon" href="https://twitter.com/raelga" rel="nofollow"> <span><?php _e('Latest Tweet', 'default'); ?></span> <!-- Remove o comment the code between #### ####### /*<?php if(function_exists('twitter_messages')) { twitter_messages('raelga', 1, false, false, '', false, false, false); } ?> ####### --> </a> <!-- Add the Twitter generated JS o change the this script directly raelga it's my Twitter username, change it for your username --> <div id="twitter_div"> <ul id="twitter_update_list"></ul> <a href="https://twitter.com/raelga" id="twitter-link" style="display:block;text-align:right;" target="_blank">Sígueme en Twitter</a> </div> <script type="text/javascript" src="https://twitter.com/javascripts/blogger.js"></script> <script type="text/javascript" src="https://twitter.com/statuses/user_timeline/raelga.json?callback=twitterCallback2&count=1"></script> <!-- Remove o comment the code between #### ########### <p class="sb-icon-text"><?php _e('Follow me on twitter', 'default'); ?> <a href="https://twitter.com/raelga" rel="nofollow"><?php _e('here', 'default'); ?></a>.</p> ######### --> </li> </ul> </li> <?php } ?>
Works like charm and uses de stylesheet CSS.
I just updated to 2.8.6 when i put the server live. Locally it worked fine, but not now because it’s either live or updated. None of the above solutions helped, so far.
Has anyone sorted this one out? It’s driving me mad. We’ve got “No public Twitter messages” 90% of the time. Have tried Don Salva’s fix, jmharris903’s and tvarne’s. No go.
It’s not a fix but another way of doing it without the plugin – https://remysharp.com/2007/05/18/add-twitter-to-your-blog-step-by-step/
works for me.
-
<ul class=”sb-tools clearfix”>
- The topic ‘[Plugin: Twitter for WordPress] No public Twitter messages’ is closed to new replies.