Reviewed & tested by the community
Project:
Google Tag
Version:
2.0.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Feb 2024 at 16:43 UTC
Updated:
7 Feb 2026 at 17:07 UTC
Jump to comment: Most recent
Comments
Comment #3
abhishek_gupta1 commentedI cloned the repository from the mentioned version and verified it locally, Its working fine for me, moving RTBC++
Comment #4
djg_tram commentedCould we urge acceptance of the MR? A WSOD is, after all, quite serious a problem...
Comment #5
anybodyI can confirm the error and WSOD! Please merge this and tag a new release asap! Thank you!
I'll add a similar MR fixing code style and solving this a bit shorter. Maintainer may decide which approach is better, but this definitely needs to be more defensive!
Comment #6
anybodyJust saw that there are various other cases with similar calls. On it!
Comment #7
anybodyPlease note that
$item->getPrice()may also return NULL:@return \Drupal\commerce_price\Price|null — The price, or NULL.For that reason, I also changed
to accept null values and return 0.00 then! Otherwise, I think me might run into the next issue, if
$priceis NULL somewhere? Hope I wasn't too defensive now.Comment #8
anybodyComment #10
anybodyComment #11
anybodyComment #12
thomas.frobieterRTBC for MR!100
Comment #13
anybody#3489811: AddToCartEvent WSOD for order items with no price is similar, but not the same. Should be merged afterwards.
That one will need a rebase then.
Comment #14
hongqing commentedsame issue with 2.0.9.