I don’t know where to ask this plugin question. I know there is no plugin support on the EE Forums now but this is an ElisLab plugin so…
I am getting a PHP error every so often. It happens and to prevent the error from showing up on the live site I comment out the code. When I do some testing the error goes away so I uncomment the code and everything works again until it happens again.
ERROR:
A PHP Error was encountered
Severity: Warning
Message: Invalid argument supplied for foreach()
Filename: twitter_timeline/pi.twitter_timeline.php
Line Number: 385
A PHP Error was encountered
Severity: Warning
Message: Invalid argument supplied for foreach()
Filename: twitter_timeline/pi.twitter_timeline.php
Line Number: 385CODE:
<div id="principal_twitter_feed">
<ul id="feed">
{exp:twitter_timeline screen_name="headlancer" limit="4"}
<li>{text}
<span>{created_at format="%M %d %g:%i%a"}</span>
</li>
{/exp:twitter_timeline}
<li class="last">Follow Mr. Mew <a href="http://www.twitter.com/headlancer/">@headlancer</a></li>
</ul>
</div>{!-- CLOSE principal_twitter_feed --}