Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After upgrading to Drupal 10.2, my website won't work anymore because getDescription signature of ConfigEntityDescriptionTrait is not compatible with EntityDisplayModeBase class
Edit : Erratum, the issue is only on 10.2
Composer installed 10.2.aplha instead of 10..1.7 for no good reason.
Comment | File | Size | Author |
---|---|---|---|
#9 | 3408813_fatal_type_declaration.patch | 551 bytes | Goldfit |
Issue fork lightning_core-3408813
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
arnaud-brugnon CreditAttribution: arnaud-brugnon commentedHere's a fix
Comment #4
arnaud-brugnon CreditAttribution: arnaud-brugnon commentedComment #6
viren18febS CreditAttribution: viren18febS at Concinnity Media Technologies for Concinnity Media Technologies commentedI have resolved the issue & added patch, please review.
Comment #7
ckhalilo CreditAttribution: ckhalilo as a volunteer commentedMust add string as Type of function getDescription()
public function getDescription() :string {
You can simply add (string) in return
return (string) $this->getThirdPartySetting('lightning_core', 'description');
Environment
- PHP8.2
- D10.2
Comment #8
GoldfitI have resolved the issue with the provided changes.
Comment #9
GoldfitPatch without the header informations :)
Comment #10
siddharthjain CreditAttribution: siddharthjain at Horizontal commentedThe patch shared in #9 applies smoothly. Thanks for the patch @Goldfit
Comment #11
tommasorandazzo+1 to patch in #9.
Comment #12
tommasorandazzoComment #13
tommasorandazzoComment #14
Alina Basarabeanu CreditAttribution: Alina Basarabeanu at Cyber-Duck commentedWe came across the same error after upgrading to Drupal core 10.2.
The patch provided by #9 fixed the issue.
Please add this to a new stable release.
Comment #15
ananthakrishnan.kr CreditAttribution: ananthakrishnan.kr commentedAfter upgrading to Drupal core 10.2 we also came across the same error.
Patch #9 fixed the issue.
Comment #16
manikandank03 CreditAttribution: manikandank03 as a volunteer commentedI am also facing the same issue after upgrade Drupal 10.2.2 with PHP 8.2 and tried this patch #9, the issue fixed now and site was working fine.
Comment #17
SamLerner CreditAttribution: SamLerner at CivicActions for Centers for Medicare and Medicaid Services commentedThe patch in #9 worked for me as well, upgrading to 10.2 with PHP 8.1. Thanks!