Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
this is really a strange one:
some now and then, in the middle of editing a rules component, i get:
Error: Data selector site:current-cart-order for parameter entity is invalid.
shown at conditions where i entered that condition before without problems,
and of course the date selector dropdown entry is gone too.
Comments
Comment #1
geek-merlinhmm, a call
shows the entry in dsm output and it re-appears in rules.
EDIT: and sometimes it does not.
Comment #2
geek-merlinsometimes shows the cart, sometimes not.
looks like a race condition in the alter where cart adds its info,
so reassigning to cart.
Comment #3
geek-merlinOK, hunting down the alter queue:
shows us there are no ''esoteric' modules involved:
and gee, in the 'buggy' cases the output is:
so where the heck gets commerce_cart.info.inc included (which contains the alter hook listed above)?
Comment #4
geek-merlinOK, a current entity.module solves the issue due to #1390728: entity_hook_info() does not define hook_entity_property_info_alter()
Comment #5
rszrama CreditAttribution: rszrama commentedFor what it's worth, you should most likely be using commerce-line-item:order anyways.
Comment #6
geek-merlinryan,
for most cases: yes i know.
but not in a standalone component - there you only have site:*
;-)
Comment #7
rszrama CreditAttribution: rszrama commentedAhh, indeed. Just wanted to make sure you knew, but I'm equally glad to know it looks like this problem might finally be solved upstream. I've gotten reports about the funkiness here over time but have never been able to reproduce it / trace it down.
Comment #8
geek-merlinafter hours of cursing it is always good to hear others can profit from the effort too ;-)
Comment #9
rszrama CreditAttribution: rszrama commented/me clicks the non-existent "Like" button by your comment. : P