Error: Call to undefined method Drupal\commerce_product\Event\ProductVariationEvent::getVariations() in Drupal\eca_commerce\Plugin\ECA\Event\EcaEvent->getData() (line 958 of modules/contrib/eca_commerce/src/Plugin/ECA/Event/EcaEvent.php).

Created on 18 July 2024, 5 months ago
Updated 8 August 2024, 5 months ago

Problem/Motivation

Error: Call to undefined method Drupal\commerce_product\Event\ProductVariationEvent::getVariations() in Drupal\eca_commerce\Plugin\ECA\Event\EcaEvent->getData() (line 958 of modules/contrib/eca_commerce/src/Plugin/ECA/Event/EcaEvent.php).

This method is undefined. The actual method is "getProductVariation", not "getVariations".

Steps to reproduce

Create a model using the "Product Variation is updated" event. Clear cache.

Proposed resolution

I think under 1.x, this just failed silently. After upgrading to 2.x, it's breaking the entire site!

πŸ› Bug report
Status

Fixed

Version

2.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States freelock Seattle

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024