I have installed multiple shops by the brand module but they have a 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 supposes to list all the products under this brand. and please note, this extension creates an attribute 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 this error only happens when I click on one brand to list the product under this brand