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

  1. Install Group 3.x
  2. Setup your group implementation
  3. Install the module as you would with any other
  4. Go to the products overview
  5. 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.

CommentFileSizeAuthor
#2 3488941-1.patch6.56 KBblacksnipe
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

blacksnipe created an issue. See original summary.

blacksnipe’s picture

Status: Active » Needs review
StatusFileSize
new6.56 KB

Supplied initial patch.

blacksnipe’s picture

Add related topic for Quick Node Clone.

jesus_md made their first commit to this issue’s fork.

jesus_md’s picture

jesus_md’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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