Looked this specific function up, but didn't see any issues with it.

I've encountered the following error.
Notice: Undefined index: 2 in uc_weightquote_quote() (regel 218 van /var/www/xsbyte.com/v7/sites/all/modules/ubercart/shipping/uc_weightquote/uc_weightquote.module).

Checked my shipping methods for any strange conditions but did not find anything strange.
The conditions I have are a check for shipping method per-country and a maximum weight for a specific shipping method (3 kilos).

This error pops up when adding a item to the cart and by just opening the cart when there are items in the cart with dimentions set in the item node.

Strange enough, this error doesn't happen when I add an item without dimentions (default set to 0).

CommentFileSizeAuthor
#1 2180703-weightquote-null.patch653 byteslongwave
Capture.PNG49.26 KBtheemstra
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

longwave’s picture

Version: 7.x-3.6 » 7.x-3.x-dev
Status: Active » Needs review
Issue tags: -uc_weightquote_quote, -add to cart
FileSize
653 bytes

Please test the attached patch.

longwave’s picture

Status: Needs review » Fixed

Patch should have used !isset() instead of isset(), flatrate already has this fix in place, tested and committed.

Status: Fixed » Closed (fixed)

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