Hi. I am using display suite together with ubercart, and on clicking 'add to cart' on a product, I get this error:

Notice: Undefined index: #bundle in ds_extras_entity_view_alter() (line 881 of mysite\sites\all\modules\ds\modules\ds_extras\ds_extras.module).

The product gets added to the cart fine though.

CommentFileSizeAuthor
#7 1410440-7.patch1.85 KBswentel

Comments

swentel’s picture

Status: Active » Postponed (maintainer needs more info)

This is probably fixed by #1359106: DS alters entity info without checking if bundles exists, can you check with that patch or the dev version or DS

wiherek’s picture

No, that patch (from post #3 from the link you provided) doesn't work for me :(

Anonymous’s picture

Just updated to Ubercart 7.x-3.0-rc4 and getting similar errors on the cart page:

Notice: Undefined index: #bundle in ds_entity_variables() (line 770 of .../sites/all/modules/ds/ds.module).

Notice: Undefined index: #bundle in ds_extras_entity_view_alter() (line 872 of .../sites/all/modules/ds/modules/ds_extras/ds_extras.module).

epawel’s picture

I have the same problem
D7.10
Ubercart 7.x-3.0-rc4
Help will be very appreciated...

iwant2fly’s picture

I am getting the same error. Ubercart version 7.x-3.0-rc4

ericinwisconsin’s picture

I am getting the same error. Ubercart version 7.x-3.0-rc4. The patch mentioned didn't work.

Subscribing.

swentel’s picture

Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new1.85 KB

Ok, usually I wouldn't want to fix this since it's theoretically not my fault, but I'm getting tired of these bug reports (not your fault guys, don't worry), so here's a patch that will make these notices go away once and for all :)

rickmanelius’s picture

Status: Needs review » Reviewed & tested by the community

I know it's not your fault @swentel, but you're very awesome for jumping in and fixing this. My client thanks you vicariously through me :)

swentel’s picture

Status: Reviewed & tested by the community » Fixed

ok, committed and pushed. There's a new 1.5 release in a couple of days.

Status: Fixed » Closed (fixed)

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