Some more errors from using unknown variables (#1740944: Use error_level=2 for all local development, these ones show the first time that the checkout form is submitted.
Notice: Undefined index: rate in uc_quote_order() (line 542 of ubercart/shipping/uc_quote/uc_quote.module).
Notice: Undefined index: quote_form in uc_quote_order() (line 542 of ubercart/shipping/uc_quote/uc_quote.module).
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | ubercart-n1740994.patch | 892 bytes | damienmckenna |
Comments
Comment #1
damienmckennaThis fills in some empty values for the two missing variables, but I haven't dug into it any further to see *why* they're missing.
Comment #2
damienmckennaAh, the patch file.
Comment #3
damienmckennaFYI the patch above resolves the symptoms, I'm just not sure if there isn't another problem elsewhere that ultimately *causes* the symptom.
Comment #4
longwaveI don't even see where that "quote_form" column is actually used; we go to the effort of storing it in the database but it only ever seems to get read from a session variable. In 7.x it's been dropped entirely; I wonder if we can do the same here.
I also can't reproduce the 'rate' message, which shipping quote method are you using? They should always return a valid rate value.
Comment #5
longwaveCommitted, as I guess it can't hurt to guard against this and these are sensible defaults. I still can't reproduce the 'rate' message though.
Comment #6
damienmckennabtw I came across the second error when using the flatrate shipping option in 6.x-2.10, in uc_quote_order() with $op='save' the $order->quote object looks like this:
As you can see there is no 'quote_form' value.
Comment #7.0
(not verified) commentedDetailed how the errors show.