klevu / metadata

Klevu Metadata Module for Magento 2
2 stars 1 forks source link

Magento 2.4.7 Product Video Error #25

Open Demoli opened 1 month ago

Demoli commented 1 month ago

We are encountering a crash in magento/module-product-video which may be related to klevu/module-metadata and

We have a configurable product with external videos, it has two simple children also with external videos.

When viewing the product page we get this error at

Error: Call to a member function getVideoProvider() on null in /vendor/magento/module-product-video/Model/Product/Attribute/Media/ExternalVideoEntryConverter.php:87

My suspicion is that when this module tries to get the first child product on vendor/klevu/module-metadata/Provider/ProductMetadataProvider/Configurable.php:109 the product's extension attributes are not being loaded, so we get a null object on $videoContent = $entry->getExtensionAttributes()->getVideoContent();

Disabling klevu/module-metadata stops the crash, so it does seem to be related to this child product fetch.

sandipklevu commented 1 month ago

@Demoli In order to help you further, can you help me with the below notes.

Demoli commented 1 month ago
klevu/module-metadata:1.5.0
klevu/module-search:3.6.1

Thank you.

sandipklevu commented 1 month ago

Thanks @Demoli
We are checking further internally and get back to you.

sandipklevu commented 1 month ago

Klevu Metadata module is used for generating klevu_page_meta js variable which is used by klevu_recommendations module.

I have tried to reproduce with below prerequisites but could not replicate the same.

  1. Configurable product, added vimeo video url on product level
  2. Added two child products to configurable product, added individual vimeo video to both of the child products.
  3. On Storefront, I have opened the configurable product detail page
  4. Open console, type klevu_page_meta

klevu-metadata-25