cancel
Showing results for 
Search instead for 
Did you mean: 

Notice: Undefined variable: secureRenderer

Notice: Undefined variable: secureRenderer

hello i get this erro if i want add product i have installed new module this module for add to product video trailer but after installed the module and i'm try to add product i get this error

 

Notice: Undefined variable: secureRenderer in /home/user/domains/domain.com/public_html/app/code/Webkul/VideoPlayer/view/adminhtml/templates/helper/gallery.phtml on line 38

 

code1.PNG

 

and the code 

 

        <?= $secureRenderer->renderEventListenerAsTag(
        'onclick',
        "jQuery('new-video').modal('openModal'); jQuery('#new_video_form')[0].reset();",
        'button#add_video_button'
    ) ?>

my magento version 2.3.4

1 REPLY 1

Re: Notice: Undefined variable: secureRenderer

I would start by upgrading your Magento. Your Magento version is 3 years old.

 

Nowadays Magento 2 has the ability to add YouTube and Vimeo videos without any extensions.

Founder at https://agency418.com