Following TypeError is thrown in an instance when a product is malformed, or does not contain a variation:

TypeError: Argument 1 passed to Drupal\commerce_cost\Resolver\ChainCostResolver::resolve() must implement interface Drupal\commerce\PurchasableEntityInterface, boolean given, called in /mysite/web/modules/contrib/commerce_cost/src/OrderProcessor/ApplyCost.php on line 40 in Drupal\commerce_cost\Resolver\ChainCostResolver->resolve() (line 47 of mysite/web/modules/contrib/commerce_cost/src/Resolver/ChainCostResolver.php)

CommentFileSizeAuthor
#2 2941396-typeError-resolving-cost.patch962 bytesgauravjeet

Comments

gauravjeet created an issue. See original summary.

gauravjeet’s picture

StatusFileSize
new962 bytes

this patch resolves the error

gauravjeet’s picture

Issue summary: View changes

travis-bradbury’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.