On one of our live Commerce Kickstart sites the "product category" drop-down field when creating new products no longer list any of the categories associated with our store vocabulary. I've attached a screenshot.
The Vocabulary and associated terms all exist. I checked that the field is still configured to the correct Vocabulary.
I've created a new content type and product display content type just to check that the "term reference" field still works and it works just fine and contains all our terms.
FYI we upgraded to Kickstart 7.x-2.9 about 4 weeks ago from version 7.x-2.5
I'm also seeing this error when i view "admin/commerce/products". Not sure if its directly related.
Warning: array_keys() expects parameter 1 to be array, null given in commerce_backoffice_get_vocabularies() (line 84 of /home/chevrole/public_html/profiles/commerce_kickstart/modules/contrib/commerce_backoffice/commerce_backoffice.module).
Any ideas???
Comment | File | Size | Author |
---|---|---|---|
#5 | image_601.png | 140.98 KB | grzegorz.bartman |
CreateProduct display_ChevroletPerformanceParts.png | 67.21 KB | Daniel.uww |
Comments
Comment #1
Daniel.uww CreditAttribution: Daniel.uww commentedComment #2
Daniel.uww CreditAttribution: Daniel.uww commentedComment #3
lsolesen CreditAttribution: lsolesen commentedCan you please try 2.13 and enclose exact steps to reproduce this?
Comment #4
lsolesen CreditAttribution: lsolesen commentedComment #5
grzegorz.bartman CreditAttribution: grzegorz.bartman commentedI have same problem. In function commerce_backoffice_get_vocabularies in $voc_names i had taxonomy vocabulary machine name 'product_category'. It should be 'category'. There is no vocabulary 'product_category' in database.
Solution: go to field settings page admin/structure/types/manage/product-display/fields/field_product_category and save settings.
Comment #6
grzegorz.bartman CreditAttribution: grzegorz.bartman commentedComment #7
grzegorz.bartman CreditAttribution: grzegorz.bartman commentedIt looks like problem is in module commerce_kickstart_lite_product. There is line 'vocabulary' => 'product_category' but I don't have vocabulary product_category
Comment #8
William Aubert CreditAttribution: William Aubert commentedHello,
I have the same issue when I update Kickstart to 7.x-2.20.
The field of category form has become empty since the upgrade. All terms present in the list in the list of the category taxonomy.
I have no error message in dblog.
I can't add category term for new nodes, but old nodes still have terms. If I modify and save a old node, the reference_field become empty.
I need help, please !
William
Comment #9
William Aubert CreditAttribution: William Aubert commentedI modified the vocabulary machine name to 'product_category' and all seems ok.
But I think this is not normal that you can't decide to use another machine name for this vocabulary.
Comment #10
lsolesen CreditAttribution: lsolesen commented@grzegorz.bartman Could you create a patch to solve this issue?
Comment #11
grzegorz.bartman CreditAttribution: grzegorz.bartman commented@lsolesen on Wednesday I will create patch for this.
Comment #12
grzegorz.bartman CreditAttribution: grzegorz.bartman commentedI have got this error on existing website based on Kickstart.
Now i tried find problem on fresh installation of Commerce Kickstart and it looks like works OK.
Basic information:
- when you enable demo store in installation you will use module commerce_kickstart_product with taxonomy 'machine_name' => 'category',
- when you install without demo you will use module commerce_kickstart_lite_product with taxonomy 'machine_name' => 'product_category',
- in commerce_kickstart_system_info_alter() one of modules above is hidden, depends what you selected in installation
In my case I installed Kickstart without demo but somehow in my system was taxonomy 'machine_name' => 'category', instead of 'machine_name' => 'product_category'. I don't have idea how to reproduce this problem now.
Comment #13
lsolesen CreditAttribution: lsolesen commentedComment #14
rszrama CreditAttribution: rszrama at Centarro commentedCommerce Kickstart 2.x is in minimal maintenance mode. Closing out all outdated tickets now to maintain focus on Commerce Kickstart 3.x.