Fixed
Project:
Price Difference Formatter
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Jul 2021 at 19:42 UTC
Updated:
15 Sep 2026 at 19:47 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
interdruper commentedThis error is triggered because the code assumes that $order_item->getPurchasedEntity() will always return an entity, but this can return NULL:
This can easily happen in practice, when locked carts contains a product variation that have been deleted.
An simplier alternative patch to #1 is provided.
Comment #3
keshavv commentedReviewed the patch code and tested it locally. Looks like its working perfect. Moving to RTBC
Comment #4
lubwn commentedPatch from #2 works good for me. Thanks a lot!
Comment #5
vvs commentedPatch #2 is worked against error, but now I have many cart forms on cart page: https://i.imgur.com/GsoBQDM.jpg
Comment #8
chetan 11 commentedHi,
I have fixed the above error on "price difference formatter" module.
Please check the raised MR.
Thanks.
Comment #10
trebormc