Problem/Motivation
Hitting the following error when updating to Drupal 10.3
TypeError: Drupal\cl_editorial\NoThemeComponentManager::__construct(): Argument #1 ($pluginManager) must be of type Drupal\sdc\ComponentPluginManager, Drupal\Core\Theme\ComponentPluginManager given, called in /var/www/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php on line 261 in Drupal\cl_editorial\NoThemeComponentManager->__construct() (line 23 of modules/contrib/cl_editorial/src/NoThemeComponentManager.php).
Proposed resolution
- Switch from
sdctocorein namespaces.
Maybe a new branch to support components (SDC) in Drupal core, and keep the old branch to work with the sdc
Remaining tasks
- File an issue
- Patch/MR
- Test
- Review
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 3456850-3.patch | 8.1 KB | qusai taha |
Issue fork cl_editorial-3456850
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 #3
qusai taha commentedAttach a patch for the fix
Comment #4
carolpettirossi commentedI was facing this error:
The MR code solved the error.
Comment #5
carolpettirossi commentedSorry, I moved to RTBC too soon.
I'm now facing a different error when I access "Manage Display" tab on the Basic Page CT:
Comment #6
carolpettirossi commentedI just realized that the error is not on cl_editorial, and it is, in fact, on sdc_display.
Created an issue here: https://www.drupal.org/project/sdc_display/issues/3458639
Moving to "Needs review" for some other community members to review the patch provided if they use cl_editorial only.
Comment #7
tongadall commentedI was facing this error #4 too en Drupal 10.3, and #3 patch solved the error.
Comment #8
tongadall commentedNote for anyone who needs to know how to apply the patches, add these patches to composer.json:
And execute:
composer update drupal/cl_editorialSee the doc https://www.drupal.org/docs/develop/git/using-gitlab-to-contribute-to-dr...
Comment #9
digitaltodd commentedposted a comment - re: applying the above patch - in the wrong place, so I deleted it and reentered at
https://www.drupal.org/project/sdc_display/issues/3458639
Comment #10
tongadall commentedCan we release a new version with this patch so this module work in Drupal 10.3 out of the box?
Comment #11
rajab natshahComment #12
rajab natshahThank you, for the MR12 and the static patch file.
It's working.
Using the static patch file with Composer Patches, which identical of MR12
Comment #13
tongadall commentedHello @rajab. Out of curiosity, why do you use a static version of the patch and not the MR version as I suggested in #8? The MR version may make it more unstable, but it will include the latest changes from the patch which should be good. Is it because of this instability that you prefer the static version?
Comment #14
rajab natshahGastón, nice to ask. I think you got it right.
This is a better practice rule for patching in my company.
Why Direct Links for Merge Requests Aren't Preferred
Choosing direct merge requests over patching isn't the best option for maintaining stability, especially considering Drupal's shift from patching to merge requests.
Comment #15
tongadall commentedThanks Rajab, perfect make sense.
Comment #16
pcambraI think this should grant a 3.x branch that requires drupal >10.3
Comment #19
pcambraComment #21
pcambraMany thanks to all, I've now released a 3.x version and tagged a rc with this.
Comment #22
tongadall commented@pcambra super! thanks to all.
Comment #23
liam morlandThis should also be done in submodule
sdc_tags.Comment #24
tongadall commentedAnd maybe in module sdc_block to solve this issue? https://www.drupal.org/project/sdc_block/issues/3456851
Comment #26
liam morlandThe merge request contains the change on 2.x to update
core_version_requirementinsdc_tags. A similar change should also be done in 3.x.Does this actually work in Drupal 9? If not,
core_version_requirementshould not declare that compatibility.Comment #27
heddnThat's all fine and well to commit the changes for here, but https://git.drupalcode.org/project/sdc_block/-/merge_requests/3 is now left out and needs some love too.
Comment #28
pcambraOne at at a time, thanks heddn.
@liam morland, thanks for noticing that, I've pushed a 3.0.0-rc2 tag with this.