MyBB Community Forums

Full Version: Error when playing all embed Youtube videos
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

Something strange it's happend on my forum - all youtube videos embeded don't want to play but it shows this error:

[attachment=40085]

Link for example

source code 


[video=youtube]https://www.youtube.com/watch?v=m7b8hitvfoE[/video]
 

I updated to last version of Mybb but I don't know if the error has appeared after this update or just from today. 

Any solutions?

MyBB: 1.8.15
PHP version: 7.0.28

Thanks,
Hi,

This is a known bug in MyBB 1.8.15: https://github.com/mybb/mybb/issues/3066

There is a patch waiting to be merged, I just need to test it before I merge it.
Thanks,
But I forgot to mention another problem with YT videos - when embed a clip from the format bar by clicking the Video icon, the video will not show up if you don't paste the complete YT link. The short link isn't recognized by Mybb.

Exemple here, under the photo.


P.S. I tested on this MyBB forum and it works to embed a YT clip with the short link. On my forum it works only if I use the long link, for this case:

https://www.youtube.com/watch?v=w4GRDnenyIA&feature=youtu.be

instead

https://youtu.be/w4GRDnenyIA

It can be fixed by me?
That could be a problem with the parser parsing short video links, there's a similar issue for short Daily Motion URLs too. I'll add this to that issue: https://github.com/mybb/mybb/issues/3075