- Issue created by @Alexius
- ๐ณ๐ฑNetherlands batigolix Utrecht
So this error comes from the Flags module which cannot extend the CountryFlagAutocompleteController class anymore since a recent change in the County module.
I guess we should not have defined the CountryAutocompleteController as final class in the country module.
This needs a bit more research.
- ๐บ๐ธUnited States w01f
I am seeing this on a site recently updated to 10.3.7 and using both country and flags modules. The php_errorlog file shows the following error:
[09-Nov-2024 10:44:22 Asia/Tokyo] PHP Fatal error: Class Drupal\flags_country\Controller\CountryFlagAutocompleteController cannot extend final class Drupal\country\Controller\CountryAutocompleteController in /home/customer/www/kobejet.com/web/modules/contrib/flags/flags_country/src/Controller/CountryFlagAutocompleteController.php on line 0
Flags (Flags Country) version 2.0.0-alpha1
Country version 2.1.0 - ๐ฎ๐ณIndia dev2.addweb
nilesh.addweb โ made their first commit to this issueโs fork.
- Merge request !20Fixed final class issue as it is extended by other. โ (Merged) created by Unnamed author
- ๐ฎ๐ณIndia dev2.addweb
Yes, @batigolix. I removed the
final
keyword fromCountryAutocompleteController.php
as itโs extended byCountryFlagAutocompleteController.php
in the flags_country module.Actually, this issue originates from #3458116 ๐ Make code pass the gitlab pipeline Fixed . We've made some adjustments to pass the GitLab pipeline.
- ๐บ๐ธUnited States w01f
Confirming removing "final" line 15 in /src/Controller/CountryAutocompleteController.php file allows the site to correctly run drush updb/cr or run update.php from the site again.
-
batigolix โ
committed c26f5ea1 on 2.x authored by
nilesh.addweb โ
Issue #3485939 by nilesh.addweb, alexius, batigolix, w01f: Error after...
-
batigolix โ
committed c26f5ea1 on 2.x authored by
nilesh.addweb โ
Automatically closed - issue fixed for 2 weeks with no activity.