- π©πͺGermany Anybody Porta Westfalica
Indeed β¨ Gift card should generate standard commerce events Needs review contains the correct fix! Let's close this, even if it's only partially a duplicate.
Our use cases for commerce_giftcard present the need for two distinct gift card types to differentiate between the two of them. For a while now we've used a single type that is assigned to users and has been working great.
However, we'd like to add purchasable giftcards to the site and that's where I'm starting to run into issues.
Immediately upon creating the second giftcard type, this error presents a WSOD.
Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException: The "commerce_giftcard" entity type did not specify a storage handler. in Drupal\Core\Entity\EntityTypeManager->getHandler() (line 260 of core/lib/Drupal/Core/Entity/EntityTypeManager.php).
I'm not sure if it's possible that having the patch in #3184543 could cause this as I was hoping to use those standard events later on down the road. But it's also worth exploring.
After clearing caches the error goes away and the giftcard type WAS actually created. Seems like clearing caches temporarily resolves the issue and from there the issue persists, although intermittently. Doing some more testing to see if there is any rhyme or reason to the error popping up.
Not 100% certain yet but I'm trying to look at the code to fix it.
Closed: duplicate
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Indeed β¨ Gift card should generate standard commerce events Needs review contains the correct fix! Let's close this, even if it's only partially a duplicate.