Magento2: AddFotoramaVideoEvents is not a function

When overriding the catalog_product_view.xml, it seems that the changes in ProductVideo are no longer applied – so the line has to be added manually:

<container name="" htmlTag="div" htmlClass="product media" after="">
    <block class="Magento\Catalog\Block\Product\View\Gallery" name="" as="media_image" template="product/view/gallery.phtml"/>
    <block class="Magento\ProductVideo\Block\Product\View\Gallery" name="" after="" template="product/view/gallery.phtml"/>

The ProductVideo Block is the important one.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.