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
Comment #1
latulipeblanche commentedSame 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
Comment #2
adamgerthel commentedSame problem here using latest Kickstart although mine says Line 100.
Comment #3
stroobl commentedThe complete error in my case:
Comment #4
claudiuenache commentedSubscribe, my error on line 100
Comment #5
Stalski commentedLine 100 as well.
Seems this module is abandoned :(
Comment #6
claudiuenache commentedI 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
Comment #7
Countzero commentedYes, 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.
Comment #8
patrickharris commentedSame problem!
Comment #9
adamgerthel commented@Countzero this module isn't maintained or created by the commerce team.
Comment #10
Countzero commentedYou'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.
Comment #11
rar9 commented+1 Products get saved but are not being displayed due to the error in line 100
Comment #12
hunziker commentedI commit a new version, which works with the latest Drupal Commerce version (RC1). But the following issues are not resolve:
Comment #13
patrickharris commented@hunziker - thanks! The newest release fixes this issue for me.
Comment #14
rar9 commentedstill get the error using the updated dev :-(
Comment #15
kitesystems commentedSame here.
Comment #16
johnodonnell@mac.com commentedHad 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.
Comment #17
aznation commentedditto 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
Comment #18
davident commentedsubscribing
Comment #19
aznation commentedupdate- must use the developer release. Error is removed and the product selection/ processing seems fine. Yeah! Thanks @hunziker
Comment #20
tvilms commentedI 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.
Comment #21
hunziker commentedI cant reproduce this with the latest commerce version and latest version of this module.