When i visit cart/checkout i get the following in dblog:

  • Notice: Trying to get property of non-object in uc_cart_checkout() (line 126 of /public_html/sites/all/modules/ubercart/uc_cart/uc_cart.pages.inc).
  • Notice: Trying to get property of non-object in uc_cart_checkout() (line 128 of /public_html/sites/all/modules/ubercart/uc_cart/uc_cart.pages.inc).
  • Notice: Undefined property: stdClass::$line_items in _uc_coupon_apply_to_order() (line 1521 of /public_html/sites/all/modules/uc_coupon/uc_coupon.module).
  • Warning: Invalid argument supplied for foreach() in _uc_coupon_apply_to_order() (line 1521 of /public_html/sites/all/modules/uc_coupon/uc_coupon.module).
  • Notice: Undefined property: stdClass::$order_id in _uc_coupon_apply_to_order() (line 1528 of /public_html/sites/all/modules/uc_coupon/uc_coupon.module).
  • Warning: usort() [function.usort]: The argument should be an array in _uc_coupon_apply_to_order() (line 1590 of /public_html/sites/all/modules/uc_coupon/uc_coupon.module).
  • Notice: Undefined property: stdClass::$order_id in uc_order_load_line_items() (line 1269 of /public_html/sites/all/modules/ubercart/uc_order/uc_order.module).
  • Notice: Undefined property: stdClass::$order_id in uc_order_save() (line 883 of /public_html/sites/all/modules/ubercart/uc_order/uc_order.module).
  • Notice: Undefined property: stdClass::$order_id in uc_order_load_line_items() (line 1269 of /public_html/sites/all/modules/ubercart/uc_order/uc_order.module).
  • Notice: Undefined property: stdClass::$order_id in uc_cart_checkout_form() (line 272 of /public_html/sites/all/modules/ubercart/uc_cart/uc_cart.pages.inc).

which screws up the checkout form..there are no fields to fill in for delivery and billing information:/

I think its an ubercart bug,since thats where the first notice comes from.

Comments

longwave’s picture

Status: Active » Postponed (maintainer needs more info)

Have you tried running update.php and clearing cache after upgrading?

ParisLiakos’s picture

Yes i did both.
i will try to debug more and get back

longwave’s picture

Also, if you disable uc_coupon does the problem go away?

ParisLiakos’s picture

Status: Postponed (maintainer needs more info) » Fixed

OK,my bad..this happened because i deleted the orders from the backend and seems the $_SESSION was still there

longwave’s picture

Title: Warnings and notices after upgrading to 7.x-3.0-rc4 » Trying to get property of non-object in uc_cart_checkout() after deleting "in checkout" orders
Status: Fixed » Active

This should be investigated further and fixed if possible, as it will probably occur in other stores.

ParisLiakos’s picture

Version: 7.x-3.0-rc4 » 7.x-3.x-dev
Status: Active » Needs review
StatusFileSize
new1.92 KB

Hmm i tried this...it successfully recreates the order

longwave’s picture

Status: Needs review » Fixed

Committed #6, thanks for the patch.

laraz’s picture

thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

deleting empty lines inside ul