Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 UTC on 18 March 2024, to get $100 off your ticket.
We've just recently updated CK to 7.22, in light of the Drupal core update.
Now Product Reference is logging notices such as this:
Notice: Undefined index: product_display in commerce_product_reference_node_types() (line 1456 of /home/territor/public_html/profiles/commerce_kickstart/modules/contrib/commerce/modules/product_reference/commerce_product_reference.module).
The site is functioning fine otherwise, as far as I can tell.
Looks like there was a similar issue a couple of years ago:
https://www.drupal.org/node/1967262
Any advice appreciated.
Comments
Comment #1
chrismais CreditAttribution: chrismais commentedYep seeing exactly the same.
Front end of the site is functioning fine but Product Display is missing from my Content Types and I'm unable to Add/Edit any products.
Comment #2
Sam MooreNow that you mention it, I'm missing Product Display from Content types as well.
Comment #3
simonalwild CreditAttribution: simonalwild commentedI am also experiencing this problem after updating.
Comment #4
oakulm CreditAttribution: oakulm commentedSame here... Only update done is Drupal core to 7.36
Comment #5
harings_rob CreditAttribution: harings_rob commentedYup can confirm the issue,
I worked around the error messages by wrapping the line in the error by
This is not a fix, but gets rid of the errors wich could slow down your drupal installation.
Comment #6
Stephen OllmanSame here....I did a D7.36 core update but not the Commerce update....does that make a difference?
Comment #7
Stephen OllmanJust read that 7.36 may be the cause....rolling back to 7.35 if I can to test.
Comment #8
Stephen OllmanNo luck with rolling back to 7.35.....error still occurs.
I've hidden it from the public with:
.not-logged-in .error {display:none;}
Anyone else have any clues?
Comment #9
rszrama CreditAttribution: rszrama commentedSee the known issues section of Drupal 7.36 for notes re: Features defined content types.
https://www.drupal.org/drupal-7.36-release-notes
Comment #10
Stephen OllmanWow, you hit the nail on the head...checked the features and sure enough under 'Commerce Kickstart', Commerce Kickstart Lite Product was disabled. Re-enabling it solved the problem.
Comment #11
chrismais CreditAttribution: chrismais commentedThanks rszrama / Stephen. Solved.
Comment #12
rszrama CreditAttribution: rszrama commentedw00t, great.
Comment #13
sahaj CreditAttribution: sahaj commentedI have the same error, using only Commerce and Inline Entity Form (no Kickstart, no Features).
Here is the related issue under Drupal Commerce: https://www.drupal.org/node/2476549 and still don't know how to fix it.
Any hint?
Comment #14
Sam MooreLikewise here - re-enabling Commerce Kickstart Lite Product brought back product display.
Thanks folks.
Comment #16
smndey CreditAttribution: smndey commented#10 Works for me. Thanks Stephen Ollman