displaytweets icon indicating copy to clipboard operation
displaytweets copied to clipboard

invalide argument error

Open icemancast opened this issue 11 years ago • 2 comments

twitter feed runs first time but then after first load i get this error.

Warning: Invalid argument supplied for foreach() in /{directory}/wp-content/plugins/displaytweets-master/displaytweets.php on line 591

icemancast avatar Jul 18 '13 05:07 icemancast

I noticed this happening when a tweet contained special characters. This would cause the serialization process when setting/getting transient data to return a string as opposed to the expected array.

blainerobison avatar Feb 24 '14 22:02 blainerobison

As a workaround you can disable transient caching, doing that will cause more hits to the twitter api, but it will always work.

pekastel avatar Dec 29 '14 19:12 pekastel