This site has been archived. To learn more about our current products Ibexa Content, Ibexa Experience, Ibexa Commerce head over to the Ibexa Developer Portal

eZ Community » Forums » eZ Publish 5 Platform » Youtube movie

Youtube movie

Youtube movie

Wednesday 28 May 2014 10:12:19 am - 14 replies


i would like insert a youtube movie in my editor ez publish, and display this movie in my template html.twig

i am no to power full for this job, if someone can help me? =)


Wednesday 28 May 2014 10:59:25 am


You probably want to try EmbedTagBundle. Works with YouTube, Vimeo and DailyMotion.

Friday 30 May 2014 9:06:01 am


if I want to use your solution i just need to install this bundle? Should I do anything else after that ?

Thank you !

Friday 30 May 2014 9:21:16 am

Hi Alizée

Yes, you just need ton install it (I should to update the README file). Once installed with Composer and activated in your EzPublishKernel class, You can use it as a custom tag in the admin (click on the <?> button in the online editor and choose YouTube video). If you paste the web URL, it will be automatically converted to the appropriate embed url happy.gif Emoticon.

Friday 30 May 2014 9:49:21 am

Yes that's what I do, but I can not activate it in ezpublishkernel, I tried :

use Lolart\Bundle\EmbedTagBundle\LolartEmbedTagBundle;

but i have this error : 

Fatal error:  Interface 'eZ\Bundle\EzPublishLegacyBundle\LegacyBundles\LegacyBundleInterface' not found in /var/www/xxx/vendor/lolautruche/embedtag-bundle/LolartEmbedTagBundle.php on line 24

Thank you !

Modified on Friday 30 May 2014 9:58:13 am by Alizée Arnaud

Friday 30 May 2014 10:04:16 am

That's because you have a too old version of eZ. You need at least 5.3 / 2014.03

Friday 30 May 2014 11:10:58 am

Ok I follow this documentation, I have to do all the steps or I can make a direct upgrade in command line ? (I'm not sure that step 2 is useful to me)

Friday 30 May 2014 11:21:23 am

I'd rather use Composer for this... You'll need to update your composer.json. You'll notice that now ezpublish-legacy is managed and updated by Composer. Be sure to backup your ezpublish_legacy folder (just in case), but updates via composer is not destructive regarding your legacy extensions and settings (unless you hacked).

And no, step 2 is not useful for you happy.gif Emoticon

Friday 30 May 2014 11:21:50 am

Oh, and be aware that v2014.05 is on its way blunk.gif Emoticon

Friday 30 May 2014 11:39:09 am

Oh yes i monitor it ^_^

After --composer update i have this : 

PHP Catchable fatal error:  Argument 1 passed to eZ\Bundle\EzPublishLegacyBundle\EzPublishLegacyBundle::__construct() must implement interface Symfony\Component\HttpKernel\KernelInterface, none given, called in /var/www/ on line 55 and defined in /var/www/ on line 25

Would you like me to open a new ticket?

Friday 30 May 2014 11:46:56 am

You forgot to update EzPublishLegacyBundle instanciation in your EzPublishKernel blunk.gif Emoticon.

Friday 30 May 2014 1:25:51 pm

We are an other error after update parameters.yml !

[2/3] DBALException: An exception occurred while executing 'SELECT ezcontentobject.*, `ezcontentobject_tree`.`main_node_id` `ezcontentobject_tree_main_node_id` FROM `ezcontentobject` LEFT JOIN `ezcontentobject_tree` ON ( `ezcontentobject_tree`.`contentobject_id` = `ezcontentobject`.`id` AND `ezcontentobject_tree`.`main_node_id` = `ezcontentobject_tree`.`node_id` ) WHERE `ezcontentobject`.`id` = :placeholder1' with params [10]:

We use postgreSQL 

Tkank you very much !

Friday 30 May 2014 1:55:44 pm

I finally solved the problem with this patch.

I can finally test your bundle!

Friday 30 May 2014 2:20:32 pm

It's work !

thank you again for your help !

Friday 30 May 2014 2:34:44 pm

Yes, that's a known issue with Postgre. You can use dev-master before we release 2014.05 happy.gif Emoticon

But if it works for you now, that's cool !


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from