Problem/Motivation

/admin/commerce/fees|4||Error: Interface 'Drupal\Component\Plugin\ConfigurablePluginInterface' not found in include() (line 20 of drupal9/html/modules/contrib/commerce_fee/src/Plugin/Commerce/Fee/FeeInterface.php)

Steps to reproduce

Edit a fee that you created
hist save
WSOD

Proposed resolution

Similar solution to:
https://www.drupal.org/project/commerce_license/issues/3164266

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

SocialNicheGuru created an issue. See original summary.

socialnicheguru’s picture

Issue summary: View changes
socialnicheguru’s picture

Status: Active » Needs review
StatusFileSize
new1.05 KB
marciaibanez’s picture

Assigned: Unassigned » marciaibanez

I'll review this.

marciaibanez’s picture

Assigned: marciaibanez » Unassigned
Status: Needs review » Needs work

I had another error when I tried to create/edit a fee: Error: Call to a member function dispatch() on null in Drupal\commerce\CommerceContentEntityStorage->postLoad() (line 48 of /app/modules/contrib/commerce/src/CommerceContentEntityStorage.php)
I used the patch to see if it could fix the problem, but it didn't. I tested removing the code that is on line 48 and it worked, but I don't know if it would be the best way to fix it. I'll upload a patch here, but you can ignore it if this solution isn't the best approach.

marciaibanez’s picture

Assigned: Unassigned » marciaibanez
marciaibanez’s picture

Assigned: marciaibanez » Unassigned
Status: Needs work » Reviewed & tested by the community

Hi! Please ignore my previous comment, now I see that it was on the Commerce module, not the same in the issue, sorry for the misunderstanding. The patch is working fine, the only problem I found was the one I mentioned in my previous comment.

socialnicheguru’s picture

@marciaibanez, take a look at https://www.drupal.org/project/commerce/issues/2903716#comment-14307787
the combination of patches and mine above will help with your issue.

marciaibanez’s picture

@SocialNicheGuru thank you! I reviewed both issues and tested the patches, everything is working perfectly now :)

jsacksick’s picture

Status: Reviewed & tested by the community » Fixed

Committed!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.