cancel
Showing results for 
Search instead for 
Did you mean: 

Compatibility issue on a shop by brand module after upgrading to magento 2.4.3 from 2.4.2

Compatibility issue on a shop by brand module after upgrading to magento 2.4.3 from 2.4.2


I have installed multiple shop by brand module but they have an common issue after I upgraded to magento 2.4.3... there is no issue on 2.4.2 

composer require coderkube/brand:1.0.1 --no-update
composer update


So when I click on the brand , it suppose to list all the product under this brand. and Please note, this extension create an attributes for every product and we use brand attributes on the product. 

 

The following error appears: 


Error: Call to a member function getOptionsData() on null in /usr/share/nginx/html/sample.com.uk/vendor/magento/module-catalog/view/frontend/templates/product/list.phtml:90


and in line 90, this is the content of the code below:

<?php $optionsData = $block->getData('viewModel')->getOptionsData($_product); ?>

Please note, this only happens in magento 2.4.3 not 2.4.2 and and this error only happens when i click on one brand to list the product under this brand