Problem/Motivation
When installing version 1.1.2 of this module, I get the following error when viewing the product overview.
Error: Class "Drupal\group\Entity\GroupContent" not found in _commerce_quick_node_clone_has_clone_permission() (line 53 of modules/contrib/commerce_quick_node_clone/commerce_quick_node_clone.module).
After a quick patch - based on issue #3306677 for Quick Node Clone -, I get another error:
TypeError: Drupal\group\Entity\GroupRelationship::loadByEntity(): Argument #1 ($entity) must be of type Drupal\Core\Entity\EntityInterface, null given, called in /var/www/html/web/modules/contrib/commerce_quick_node_clone/src/Controller/QuickNodeCloneNodeController.php on line 83 in Drupal\group\Entity\GroupRelationship::loadByEntity() (line 165 of modules/contrib/group/src/Entity/GroupRelationship.php).
Steps to reproduce
- Install Group 3.x
- Setup your group implementation
- Install the module as you would with any other
- Go to the products overview
- See the page is broken
Proposed resolution
Update the code, so Group 3.x is supported.
See patch below for an initial approach based on issue #3306677 for Quick Node Clone.
Remaining tasks
None.
User interface changes
None.
API changes
None.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3488941-1.patch | 6.56 KB | blacksnipe |
Issue fork commerce_quick_node_clone-3488941
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
Comment #2
blacksnipeSupplied initial patch.
Comment #3
blacksnipeAdd related topic for Quick Node Clone.
Comment #7
jesus_md commentedComment #10
jesus_md commented