displaytweets
displaytweets copied to clipboard
invalide argument error
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
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.
As a workaround you can disable transient caching, doing that will cause more hits to the twitter api, but it will always work.