Argument 1 passed to Drupal\commerce_order\PriceCalculator::calculate() must implement interface Drupal\commerce\PurchasableEntityInterface, null given

Created on 19 July 2021, over 3 years ago
Updated 11 December 2023, about 1 year ago

Hi,

I've got error:

TypeError: Argument 1 passed to Drupal\commerce_order\PriceCalculator::calculate() must implement interface Drupal\commerce\PurchasableEntityInterface, null given, called in /var/www/html/web/modules/contrib/price_difference_formatter/src/Plugin/Field/FieldFormatter/PriceDifferenceFormatter.php on line 51 in Drupal\commerce_order\PriceCalculator->calculate() (line 105 of /var/www/html/web/modules/contrib/commerce/modules/order/src/PriceCalculator.php) 

Prepared a patch to resolve this.

๐Ÿ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

๐Ÿ‡ญ๐Ÿ‡บHungary dj1999

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024