alma / alma-monthlypayments-magento2

Magento 2 Payment Gateway integration for Alma
Other
6 stars 9 forks source link

Call to a member function getId() on null in vendor/alma/alma-monthlypayments-magento2/Block/Catalog/Product/View.php:110 #56

Closed webpar closed 2 years ago

webpar commented 2 years ago

Hi,

I am facing the following isuse when using Magento 2.4.4, and when selecting payment "alma" on checkout page : main.CRITICAL: Error: Call to a member function getId() on null in vendor/alma/alma-monthlypayments-magento2/Block/Catalog/Product/View.php:110

Do you know how to fix this ?

Regards

webpar commented 2 years ago

Hi,

Could we use the following fix : if (!is_object($item)) { return false; }

Regards

Francois-Gomis commented 2 years ago

HI, do you have an other plugin on checkout ? By default, product view is not call on checkout page.

Francois-Gomis commented 2 years ago

Hi Webpar, we have changed View.php in the newt version. Next version is in submission process and will arrive soon