On some configurable products, page goes to error with that log :
[2022-09-22T11:47:35.244653+00:00] main.CRITICAL: Error: Call to a member function getId() on null in /var/wwwxxxxx/vendor/alma/alma-monthlypayments-magento2/Block/Catalog/Product/View.php:96
Stack trace:
On some configurable products, page goes to error with that log : [2022-09-22T11:47:35.244653+00:00] main.CRITICAL: Error: Call to a member function getId() on null in /var/wwwxxxxx/vendor/alma/alma-monthlypayments-magento2/Block/Catalog/Product/View.php:96 Stack trace:
0 /var/www/xxxxxx/vendor/alma/alma-monthlypayments-magento2/Block/Catalog/Product/View.php(85): Alma\MonthlyPayments\Block\Catalog\Product\View->getProduct()
Here, line 96, callling to registry fails Should get it from context $this->product = $this->context->getRegistry()->registry('product'); https://github.com/alma/alma-monthlypayments-magento2/blob/master/Block/Catalog/Product/View.php