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)
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2941396-typeError-resolving-cost.patch | 962 bytes | gauravjeet |
Comments
Comment #2
gauravjeet commentedthis patch resolves the error
Comment #3
gauravjeet commentedComment #5
travis-bradbury commented