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???

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Daniel.uww’s picture

Assigned: Daniel.uww » Unassigned
Daniel.uww’s picture

Issue summary: View changes
lsolesen’s picture

Status: Active » Postponed (maintainer needs more info)

Can you please try 2.13 and enclose exact steps to reproduce this?

lsolesen’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
grzegorz.bartman’s picture

FileSize
140.98 KB

I 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.

grzegorz.bartman’s picture

Status: Closed (cannot reproduce) » Active
grzegorz.bartman’s picture

It looks like problem is in module commerce_kickstart_lite_product. There is line 'vocabulary' => 'product_category' but I don't have vocabulary product_category

William Aubert’s picture

Hello,

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

William Aubert’s picture

I 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.

lsolesen’s picture

Status: Active » Postponed (maintainer needs more info)

@grzegorz.bartman Could you create a patch to solve this issue?

grzegorz.bartman’s picture

@lsolesen on Wednesday I will create patch for this.

grzegorz.bartman’s picture

I 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.

lsolesen’s picture

Status: Postponed (maintainer needs more info) » Active
rszrama’s picture

Status: Active » Closed (outdated)

Commerce Kickstart 2.x is in minimal maintenance mode. Closing out all outdated tickets now to maintain focus on Commerce Kickstart 3.x.