question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Media3P: GIFs Tab not working

See original GitHub issue

Bug Description

Something I noticed during yesterday’s demo call and am still experiencing today: the GIF tab does not work.

There’s some error loading the GIFs and unfortunately the error message is swallowed.

I suspect there’s some error in getGifResourceFromMedia3p / getResourceFromMedia3p or similar, because the HTTP request is working just fine.

Expected Behaviour

The GIF tab should work just fine

Steps to Reproduce

  1. Open editor
  2. Go to third-party media tab
  3. Go to GIFs tab
  4. See error snackbar message

Screenshots

Screenshot 2022-08-09 at 14 46 59

Additional Context

  • Plugin Version: 1.24.0-alpha
  • WordPress Version: 6.0.1
  • Operating System: macOS
  • Browser: Chrome

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
timarneycommented, Aug 9, 2022

Seems the only way I can re-create now is

  • “fresh load of the page”
  • visit tab
  • scroll to down — at some point the error happens

Tracked it back to

const webmSizes = sortMediaBySize(
    m,
    m.videoUrls.filter(({ mimeType }) => mimeType === 'image/webm')
  );
 

Which passes an empty array to

sortMediaBySize

Which calls getOriginalSize with the empty array

const originalSize = getOriginalSize(sortedUrls);

Which tries to pull the width and height off an empty array

function getOriginalSize(mediaUrls) {
  return {
    originalWidth: mediaUrls[0].width,
    originalHeight: mediaUrls[0].height,
  };
}

Which throws the error …

Screen Shot 2022-08-09 at 4 33 33 PM
1reaction
swissspidycommented, Aug 10, 2022

Created #12092 for what I had in mind here regarding using the webm versions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gif tab not working or showing up - Microsoft Community
I am trying to use the gif feature in Skype but it does not let me send one unless someone else has sent...
Read more >
My GIF tab no longer works, anybody also have this issue? I ...
It's a tenor side issue, reinstalling discord and restarting does nothing. Upvote
Read more >
FIX: GIF Search and #Images Not Working in iMessage on ...
The simplest solution if the GIF Search isn't working is to re-add the #Images app to the iMessage apps. #Images is the built-in...
Read more >
Best Ways to Fix GIFs Not Working on iPhone - TechWiser
But if iMessage GIFs are not working, here are some solutions to fix the issue. 1. Remove and Re-add #images. 1. Open the...
Read more >
iPhone GIFs Not Working? Here's What You Can Do To Fix ...
Open the Messages app on your iPhone and swipe left on the apps list at the bottom of the screen until you see...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found