Problem/Motivation
PHP Fatal error: Type of Drupal\mercury_editor\Form\MenuSettingsForm::$typedConfigManager must be Drupal\Core\Config\TypedConfigManagerInterface (as in class Drupal\Core\Form\ConfigFormBase) in /home/woldtwerk/Repositories/woldtwerk/woldtwerk-saas/web/modules/contrib/mercury_editor/src/Form/MenuSettingsForm.php on line 16
Steps to reproduce
Install drupal 11 with mercury
Proposed resolution
The $typedConfigManager variable needs to be typed
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | Resolve_Fatal_Error-3467978.patch | 1.88 KB | abhiyanshu |
| #3 | mercury_editor-3467978.patch | 2.21 KB | sarwan_verma |
Issue fork mercury_editor-3467978
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
woldtwerk commentedComment #3
sarwan_verma commentedHi,
I have fixed this issue "TypedConfigManagerInterface" and also attached patch,
please review and verify,
Thanks!.
Comment #4
abhiyanshu commentedThe suggested resolution is that the $typedConfigManager variable needs to be typed.
However, in the attached patch #3, I see this patch removes the TypedConfigManagerInterface entirely, which does not resolve the typing error and conflicts with the requirement for the $typedConfigManager property to be typed as TypedConfigManagerInterface.
And also the service ID 'config.typed' is not appropriate for Drupal 11. Instead it should be
'config.typed_config_manager'.Comment #5
abhiyanshu commentedI have:
Thanks.
Comment #6
woldtwerk commentedThe patches are not correct. It needs to be changed in 3 Files:
src/Form/MenuSettingsForm.php
src/Form/SettingsForm.php
src/Form/SkipFormSettingsForm.php
There already was an issue fork. No need for patches