- Issue created by @mingsong
- Status changed to Needs review
6 months ago 12:29pm 7 August 2024 - 🇮🇳India Shaikh Sadab
Hi,
We have fixed the construct error. However, after fixing it, we encountered another issue:
Error: Type of Drupal\same_page_preview\Form\SettingsForm::$typedConfigManager must be Drupal\Core\Config\TypedConfigManagerInterface (as in class Drupal\Core\Form\ConfigFormBase) in C:\wamp64\www\drupal-alpha\modules\contrib\same_page_preview\src\Form\SettingsForm.php on line 15
To resolve this error, we needed to use "typedConfigManager" since we are using the "ConfigFormBase". We have fixed the issue. Please review the patch.
Thank you!
- 🇺🇸United States cosmicdreams Minneapolis/St. Paul
Thanks for your report. Reviewing your patch.
- First commit to issue fork.
- 🇬🇧United Kingdom scott_euser
Patch didn't work, constructor promotion was in the parent class, so adding the variable was double-declaring it. Also fixed whitespace issues. Converted to MR to make it easier as well.
- Before applying the MR /admin/config/content/same-page-preview has a fatal error as described in the issue summary.
- After applying the MR /admin/config/content/same-page-preview is now working without fatal error.
Agreed this is 'Major' as the module is not usable in Drupal 11 without it unless we consider manually setting the config as a valid workaround, but that takes a particular skillset.
Thanks!
- 🇺🇸United States cosmicdreams Minneapolis/St. Paul
Hiya Scott. This issue has a high priority for me. I'll be getting some time to fix it next week it seems.
- 🇺🇸United States cosmicdreams Minneapolis/St. Paul
@scott_euser would it be alright to bounce this edit back to you. The fix is the same in principal. But I felt it was important to get the order of injected objects to be the same as what I'm seeing in core.
-
cosmicdreams →
committed 98720bea on 2.1.x authored by
scott_euser →
Issue #3466500 by scott_euser, shaikh sadab, cosmicdreams: Fatal error...
-
cosmicdreams →
committed 98720bea on 2.1.x authored by
scott_euser →
Automatically closed - issue fixed for 2 weeks with no activity.
- 🇫🇮Finland YevKo Espoo
This change is not being pulled when the last version of the module is installed.