I get this error with any user as soon as I enable the module on a Kickstart install and go to the homepage, which is the default one.

I was trying to setup a choosable color for a product, so downloaded and enabled commerce_options as well.

The setup part seems to be fine, but leads to this error whatever I try as of now.

Comments

latulipeblanche’s picture

Same here.

I installed the module by drush dl and drush en.

update.php and drush cc all

When i go to the product display page :

Fatal error: Call to a member function value() on a non-object in /var/www/pbcosmetics/sites/all/modules/commerce_product_attributes/commerce_product_attributes.module on line 97

adamgerthel’s picture

Same problem here using latest Kickstart although mine says Line 100.

stroobl’s picture

The complete error in my case:

Fatal error: Call to a member function value() on a non-object in /data/www/drupal7/sites/all/modules/commerce_product_attributes/commerce_product_attributes.module on line 100 Call Stack: 0.0002 645808 1. {main}() /data/www/drupal7/index.php:0 0.3066 50795256 2. menu_execute_active_handler() /data/www/drupal7/index.php:21 0.3067 50796440 3. call_user_func_array() /data/www/drupal7/includes/menu.inc:503 0.3067 50796928 4. node_page_view() /data/www/drupal7/includes/menu.inc:0 0.3070 50814568 5. node_show() /data/www/drupal7/modules/node/node.module:2592 0.3087 50815808 6. node_view_multiple() /data/www/drupal7/modules/node/node.module:1411 0.3155 50848624 7. node_view() /data/www/drupal7/modules/node/node.module:2521 0.3155 50848624 8. node_build_content() /data/www/drupal7/modules/node/node.module:1286 0.3156 50849200 9. field_attach_view() /data/www/drupal7/modules/node/node.module:1362 0.3504 53187264 10. drupal_alter() /data/www/drupal7/modules/field/field.attach.inc:1185 0.3507 53194072 11. commerce_cart_field_attach_view_alter() /data/www/drupal7/includes/module.inc:1004 0.3508 53199800 12. drupal_get_form() /data/www/drupal7/sites/all/modules/commerce/modules/cart/commerce_cart.module:1965 0.3508 53202624 13. drupal_build_form() /data/www/drupal7/includes/form.inc:189 0.3746 53654136 14. drupal_prepare_form() /data/www/drupal7/includes/form.inc:317 0.3757 53822184 15. drupal_alter() /data/www/drupal7/includes/form.inc:1039 0.3803 54018088 16. commerce_product_attributes_form_alter() /data/www/drupal7/includes/module.inc:1004 
claudiuenache’s picture

Subscribe, my error on line 100

Stalski’s picture

Line 100 as well.
Seems this module is abandoned :(

claudiuenache’s picture

I don't think so... Maybe the developer is in holiday. Anyway, the whole package( Commerce Product Option, Product Bundle) is a must for Drupal Commerce and is a good generalization approach with option sets

Countzero’s picture

Yes, the commerce guys must have been busy for the 1.0 launch. I'm confident this thread will come alive again when they'll have time for it.

patrickharris’s picture

Same problem!

adamgerthel’s picture

@Countzero this module isn't maintained or created by the commerce team.

Countzero’s picture

You're right, but hunziker seems to be really active on several Commerce modules : http://drupal.org/user/674938/track/code, so I guess he's in touch with them.

rar9’s picture

Version: 7.x-1.0-alpha1 » 7.x-1.x-dev
Priority: Normal » Critical

+1 Products get saved but are not being displayed due to the error in line 100

hunziker’s picture

Priority: Critical » Major

I commit a new version, which works with the latest Drupal Commerce version (RC1). But the following issues are not resolve:

  1. If you click on the link in the shopping cart, the default add to cart form is shown. No update form! See Issue #1221176: Update Line Item in the "add_to_cart_form"
  2. Not tested with Commerce Product Option and Commerce Product Bundle
patrickharris’s picture

@hunziker - thanks! The newest release fixes this issue for me.

rar9’s picture

still get the error using the updated dev :-(

kitesystems’s picture

Same here.

johnodonnell@mac.com’s picture

Had the same issue. Just updated 7.x-1.0-alpha1 with 7.x-1.x-dev by using "drush dl --select commerce_product_attributes". Then I selected the version I wanted.

aznation’s picture

ditto this problem for me. Fresh install of 7.7, configured commerce with ~attributes and ~commerce options enabled and configured. No errors throughout set up until I tried to create a product display...hope a viable commerce solution can be worked out soon.

p.s. thanks for all the time and effort that go into these modules by developers. I would be lost without them.

Call Stack for my error
# Time Memory Function Location
1 0.0005 368440 {main}( ) ..\index.php:0
2 0.6940 30152736 menu_execute_active_handler( ) ..\index.php:21
3 0.6941 30153216 call_user_func_array ( ) ..\menu.inc:503
4 0.6941 30153400 node_page_view( ) ..\menu.inc:0
5 0.6956 30160560 node_show( ) ..\node.module:2596
6 0.6956 30160808 node_view_multiple( ) ..\node.module:1407
7 0.6989 30167616 node_view( ) ..\node.module:2525
8 0.6989 30167616 node_build_content( ) ..\node.module:1285
9 0.6991 30167840 field_attach_view( ) ..\node.module:1361
10 0.7342 31248000 drupal_alter( ) ..\field.attach.inc:1185
11 0.7350 31249840 commerce_cart_field_attach_view_alter( ) ..\module.inc:1004
12 0.7351 31252416 drupal_get_form( ) ..\commerce_cart.module:1978
13 0.7351 31253544 drupal_build_form( ) ..\form.inc:189
14 0.7615 31295088 drupal_prepare_form( ) ..\form.inc:318
15 0.7643 31367168 drupal_alter( ) ..\form.inc:1044
16 0.7869 31980016 commerce_product_attributes_form_alter( ) ..\module.inc:1004

davident’s picture

subscribing

aznation’s picture

update- must use the developer release. Error is removed and the product selection/ processing seems fine. Yeah! Thanks @hunziker

tvilms’s picture

I was getting the same error with the 7.x-1.0-alpha1 release. I switched to the latest dev version and now I'm able to select and process products again.

hunziker’s picture

Status: Active » Closed (fixed)

I cant reproduce this with the latest commerce version and latest version of this module.