Why does my YouTube video say 'not available' on Craft theme?

Hello, im using Craft theme, and youtube videos are failing to load, error “video not avaiable”, but when i reload the page the video plays fine, i searched for workarounds but could not fix it. Im using the default insert URL video in the gallery. Thank you very much.

Hi, @vmms24 .

To troubleshoot this issue, I would suggest trying to access the videos on another browser or disabling any ad blockers you may have installed. Sometimes, extensions can cause issues with video playback, so it’s worth checking if this is the case.

If the issue persists, please let me know and I will be happy to look into it further for you.

Hello, thanks for your response and time.

i checked any blocker but persists, it happens in diferent mobile devices too, so im guessing is not a desktop or browser issue.

I tried copying the Urls directly from youtube too.

judge.me, Search and discovery, Inbox, are the apps im using.

Tried with both Craft 9.0.0 and the newest 10.0.0.

Still getting the problem, when the video error appears , i refresh the page and it plays, maybe has something to do with the code calling the url?

Thank you again.

Hey, @vmms24 . I was looking around for similar situations and found a forum posting that has a solution.

  1. Go to Online Store->Themes->Edit code
  2. Asset->/theme.scss.liquid->paste the below code at the bottom of the file.
.video-wrapper {
    z-index: 9999;
}

It looks like it’s worked for a few folks. Can you try it out as well? I have been able to replicate it on Safari. It seems to happen intermittently but this snipped did provide a fix.

Hello seems like the problem got fixed before I could try your solution, but if the bug shows again I will try that, thank you very much .

I’m glad it was resolved. It seems as though it would have been a bug on our end here.