After update to Joomla! 5.1.0 Stable embedded videos stopped working

General questions relating to Joomla! 5.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
tigerclawforce
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed Apr 17, 2024 3:35 pm

After update to Joomla! 5.1.0 Stable embedded videos stopped working

Post by tigerclawforce » Wed Apr 17, 2024 3:42 pm

Hello,
today is Aprils 17 2024 and I updated my Joomla website to Joomla! 5.1.0 Stable.
After the update my blog stop showing embedded [youtube] videos (using Tinyeditor) I just get the message
"Try watching this video on www.[youtube].com, or enable JavaScript if it is disabled in your browser."

Before the update all [youtube] videos worked fine, you can see here what I mean on my developing site:
https://blogfish.duckdns.org/index.php/blog/videos

Does anyone has any idea how to fix this?

Thank you in advanced

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 31062
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: After update to Joomla! 5.1.0 Stable embedded videos stopped working

Post by Per Yngve Berg » Wed Apr 17, 2024 5:57 pm

Your Browser needs to reload JavaScript files. clear Cache.

tigerclawforce
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed Apr 17, 2024 3:35 pm

Re: After update to Joomla! 5.1.0 Stable embedded videos stopped working

Post by tigerclawforce » Wed Apr 17, 2024 7:08 pm

Hello, I did clear the cache but still it doesn't work :(

SharkyKZ
Joomla! Hero
Joomla! Hero
Posts: 2966
Joined: Fri Jul 05, 2013 10:35 am
Location: Parts Unknown

Re: After update to Joomla! 5.1.0 Stable embedded videos stopped working

Post by SharkyKZ » Wed Apr 17, 2024 7:23 pm

It's not a bug, it's a new feature in 5.1 :pop.

tigerclawforce
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed Apr 17, 2024 3:35 pm

Re: After update to Joomla! 5.1.0 Stable embedded videos stopped working

Post by tigerclawforce » Thu Apr 18, 2024 7:52 am

ahhahahaha

SharkyKZ
Joomla! Hero
Joomla! Hero
Posts: 2966
Joined: Fri Jul 05, 2013 10:35 am
Location: Parts Unknown

Re: After update to Joomla! 5.1.0 Stable embedded videos stopped working

Post by SharkyKZ » Thu Apr 18, 2024 8:18 am

This is not a joke. Someone actually thought it made sense to force sandboxed iframes in TinyMCE. With no server-side validation no less. Your options are to use a different editor or a proper extension for embedding videos.

gws
Joomla! Champion
Joomla! Champion
Posts: 6046
Joined: Tue Aug 23, 2005 1:56 pm
Location: South coast, UK
Contact:

Re: After update to Joomla! 5.1.0 Stable embedded videos stopped working

Post by gws » Thu Apr 18, 2024 8:26 am

Is this a Joomla decision or Tinymce ?

d3bug-00
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Apr 25, 2024 2:38 pm

Re: After update to Joomla! 5.1.0 Stable embedded videos stopped working

Post by d3bug-00 » Thu Apr 25, 2024 3:21 pm

it seems to be from joomla, since I tested the library on the TinyMCE page and it works when inserting a [youtube] video.

https://www.tiny.cloud/docs/tinymce/lat ... c-example/

to get out of the problem, once I wrote an article in tinyMCE, I went to codeMirror and inserted the video and it worked.
for now I'm looking at alternative editor like JCE.

Peace Freak
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 101
Joined: Fri Aug 17, 2007 2:24 am

Re: After update to Joomla! 5.1.0 Stable embedded videos stopped working

Post by Peace Freak » Sat May 04, 2024 9:26 am

I've spent quite a few hours today trying to embed Rumble videos in articles...

In the end, I just turned off TinyMCE and JCE and pasted the video code directly in the page. After turning back JCE on, when I went back to the page to tweak something, the code disappeared! What a pain! If you forget there is such code in an article it'll disappear if you re-edit it!

If someone has found a workable solution, I'd really appreciate it!

khuchkhana
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sat May 04, 2024 9:46 am

Re: After update to Joomla! 5.1.0 Stable embedded videos stopped working

Post by khuchkhana » Sat May 04, 2024 9:51 am

Same issue with me. It adds sandbox="" to [youtube] embed. Does anyone have a fix???

khuchkhana
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sat May 04, 2024 9:46 am

Re: After update to Joomla! 5.1.0 Stable embedded videos stopped working

Post by khuchkhana » Sat May 04, 2024 10:21 am

Finally found a way to get those embeds back.

Go to file -> Joomla/plugins/editors/tinymce/src/PluginTraits/DisplayTrait.php

Change line 463, 464 code as follows

Code: Select all

                'sandbox_iframes'       => false, //was set to true
                'convert_unsafe_embeds' => false, //was set to true
Image


Under plugin settings make sure you have removed iframe and script from Prohibited Elements.

Peace Freak
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 101
Joined: Fri Aug 17, 2007 2:24 am

Re: After update to Joomla! 5.1.0 Stable embedded videos stopped working

Post by Peace Freak » Sat May 04, 2024 12:24 pm

khuchkhana wrote:
Sat May 04, 2024 10:21 am
Finally found a way to get those embeds back.

Go to file -> Joomla/plugins/editors/tinymce/src/PluginTraits/DisplayTrait.php

Change line 463, 464 code as follows

Code: Select all

                'sandbox_iframes'       => false, //was set to true
                'convert_unsafe_embeds' => false, //was set to true
Image


Under plugin settings make sure you have removed iframe and script from Prohibited Elements.
Thank you!

I wonder how "permanent" this fix is? With an upgrade will it have to be redone? Will an override work?

Thanks.

User avatar
Kubik-Rubik
Joomla! Explorer
Joomla! Explorer
Posts: 272
Joined: Wed Aug 25, 2010 1:59 pm
Location: Karlsruhe - Germany
Contact:

Re: After update to Joomla! 5.1.0 Stable embedded videos stopped working

Post by Kubik-Rubik » Sat May 04, 2024 10:18 pm

Your change will be overwritten in the following core update.

The security hardening fix was introduced with this PR: https://github.com/joomla/joomla-cms/pull/43176

Feel free to discuss the issue in the Joomla! Issue Tracker: https://issues.joomla.org/tracker/joomla-cms
Cheers
Viktor

Kubik-Rubik Joomla! Extensions https://kubik-rubik.de
Former member of Joomla! Production Leadership Team, Security Strike Team and Bug Squash Team

User avatar
Kubik-Rubik
Joomla! Explorer
Joomla! Explorer
Posts: 272
Joined: Wed Aug 25, 2010 1:59 pm
Location: Karlsruhe - Germany
Contact:

Re: After update to Joomla! 5.1.0 Stable embedded videos stopped working

Post by Kubik-Rubik » Sat May 04, 2024 10:22 pm

I found a ticket where the problem is already discussed: https://issues.joomla.org/tracker/joomla-cms/43407
Cheers
Viktor

Kubik-Rubik Joomla! Extensions https://kubik-rubik.de
Former member of Joomla! Production Leadership Team, Security Strike Team and Bug Squash Team

khuchkhana
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sat May 04, 2024 9:46 am

Re: After update to Joomla! 5.1.0 Stable embedded videos stopped working

Post by khuchkhana » Sun May 05, 2024 6:57 am

Kubik-Rubik wrote:
Sat May 04, 2024 10:18 pm
Your change will be overwritten in the following core update.

The security hardening fix was introduced with this PR: https://github.com/joomla/joomla-cms/pull/43176

Feel free to discuss the issue in the Joomla! Issue Tracker: https://issues.joomla.org/tracker/joomla-cms
Shouldn't there be an option to disable or enable that??? I mean most of the time you need to embed YT, plus a number of other stuff too.

I'm new to Joomla but it does not convince me to leave WordPress at all now due to stuff like these.

khuchkhana
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sat May 04, 2024 9:46 am

Re: After update to Joomla! 5.1.0 Stable embedded videos stopped working

Post by khuchkhana » Sun May 05, 2024 7:02 am

Peace Freak wrote:
Sat May 04, 2024 12:24 pm
khuchkhana wrote:
Sat May 04, 2024 10:21 am
Finally found a way to get those embeds back.

Go to file -> Joomla/plugins/editors/tinymce/src/PluginTraits/DisplayTrait.php

Change line 463, 464 code as follows

Code: Select all

                'sandbox_iframes'       => false, //was set to true
                'convert_unsafe_embeds' => false, //was set to true
Image


Under plugin settings make sure you have removed iframe and script from Prohibited Elements.
Thank you!

I wonder how "permanent" this fix is? With an upgrade will it have to be redone? Will an override work?

Thanks.
Sadly its not a permanent fix and a new update will surely wipe this out. I'm not sure how an override works as I'm new to Joomla CMS. A workaround is to install TinyMCE Configuration Modifier plugin from https://github.com/nikosdion/plg_system_tinymod as macstalker said at https://issues.joomla.org/tracker/joomla-cms/43407 and then add the following

{
"sandbox_iframes": false
}


But personally I have not tested it yet.


Post Reply

Return to “General Questions/New to Joomla! 5.x”