Problem/Motivation
I had the older version of the quick_node_clone(8.x-1.16) module and group module(2.2.1). After updating to its latest versions quick_node_clone(8.x-1.17) module and group module(2.2.2) I am encountering the following error 'Error: Class "Drupal\quick_node_clone\Entity\ManageVersionGroup" not found' in several files.I noticed that 'use Drupal\quick_node_clone\ManageVersionGroup;' is missing in the following files:
- docroot/modules/contrib/quick_node_clone/quick_node_clone.module
- docroot/modules/contrib/quick_node_clone/src/Entity/QuickNodeCloneEntityFormBuilder.php
but present in the 'docroot/modules/contrib/quick_node_clone/src/Form/QuickNodeCloneNodeForm.php' file.
Steps to reproduce
Update from quick_node_clone(8.x-1.16) module and group module(2.2.1) to quick_node_clone(8.x-1.17) module and group module(2.2.2)
Proposed resolution
Import the classes in the mentioned files.
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | manageversiongroup_class_not_found_error_fix.patch | 942 bytes | enaznin |
Issue fork quick_node_clone-3415081
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
enaznin commentedComment #3
enaznin commentedComment #4
enaznin commentedComment #5
markdorisonThank you for the issue and patch! Before review, it needs to be re-rolled as a merge request so that GitLabCI tests will run against it.
Comment #6
enaznin commentedComment #9
viren18febs commentedI have created the MR for same patch, please review.
Comment #10
markdorisonPHPCS is flagging these additions because
ManageVersionGroupis not used in those changed files.What led you to those specific files as needing the use statements?
Comment #17
samitk commentedThis code
Drupal\quick_node_clone\Entity\ManageVersionGroupfromusestatement, is already removed in8.x-1.18tag.Comment #18
markdorisonI am not seeing any changes in the MR 27 diff. Am I missing something?
Comment #19
samitk commentedHi @markdorison,
Actually when i rebase it with new code that changes all the changes was already there. Following are the changes i pushed with 27 MR.
https://git.drupalcode.org/project/quick_node_clone/-/merge_requests/27/...
I guess we can close this ticket as the issue is already resolved.
Thanks
Samit K.
Comment #20
gg24 commentedThis issue is not reproducible anymore and the class mentioned is not needed to be imported anymore in the mentioned classes. Hence closing this issue. Feel free to reopen the issue if needed.
Thanks!