• Resolved Matt Rose

    (@boswall)


    Have just been struggling with “Unable to get tweets” errors. It worked when getting data directly, would always fail from the cache.

    NB – I re-issued the API auth codes just in case, but no change.

    Using Transients Manager (https://www.ads-software.com/plugins/transients-manager/) to look at the cache, I realised that the stored data was terminated just before there was an emoji. It didn’t have the rest of the data or even the enclosing brackets. I assume it is not being recognised as an array and throwing the error.

    For me, changing the number of fetched tweets (and later adding another tweet) solved this issue temporarily. However, convincing the client that they cannot use emoji is going to be interesting.

    Whiletrue: Any chance you can add emoji support or stop them breaking things?

    https://www.ads-software.com/plugins/really-simple-twitter-feed-widget/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor whiletrue

    (@whiletrue)

    Hi, it seems a character encoding issue. Can you tell me the emoji string blocking the transient?

    Thread Starter Matt Rose

    (@boswall)

    I don’t know the emoji string, but the tweet on Twitter shows as :

    <img class=”twitter-emoji” src=”https://abs.twimg.com/emoji/v1/72×72/1f60a.png&#8221; draggable=”false” alt=”??” title=”Smiling face with smiling eyes” aria-label=”Emoji: Smiling face with smiling eyes”>

    I don’t quite understand emoji yet – it that 1f60a ?

    Plugin Contributor whiletrue

    (@whiletrue)

    Hi, the new 2.5.16 release (out in minutes) should solve the issue by cleaning emojis and other 4-bytes Unicode chars that can’t be stored inside the usual MySQL utf-8 columns. Please try it with a clean transient cache.

    I’m also looking for a way to keep and show the emojis, instead of deleting them.

    Thread Starter Matt Rose

    (@boswall)

    Perfect!

    Appears to be all working in this instance. I’ll maybe try some random emoji to see if anything slips through.

    I use this plugin of a few sites as it does exactly what it needs to but doesn’t add any rubbish or styling. Just want to say “thank you”.

    PS – Is this any use to you? https://github.com/twitter/twemoji

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘"Unable to get tweets" from cache when Tweets have Emoji’ is closed to new replies.