Hello,
I have recently made a few modifications into uc_attributes.module to avoid theses errors (when showing a product with an uc_attribute form selector) :

Notice: Undefined property: stdClass::$format in _uc_attribute_alter_form() (line 823 of /public_html/sites/all/modules/ubercart/uc_attribute/uc_attribute.module).
Notice: Undefined property: stdClass::$default_option in _uc_attribute_alter_form() (line 824 of /public_html/sites/all/modules/ubercart/uc_attribute/uc_attribute.module).

Attached the patch to resolve this. To review.

Best regards.

Comments

Island Usurper’s picture

Status: Needs review » Fixed

This patch doesn't apply. And I'm not seeing the error anymore, so the problem probably got fixed when the API changes to attributes were ported to UC 3.x. Tentatively setting to fixed.

Status: Fixed » Closed (fixed)

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

gman_’s picture

Received this error:

Notice: Undefined property: stdClass::$default_option in _uc_attribute_alter_form() (line 1298 of /home/mystore/public_html/store/sites/all/modules/ubercart/uc_attribute/uc_attribute.module).

This patch: http://drupal.org/files/issues/uc_attribute-Notice_Undefined_property.patch fixed it