Incompatible with supported version of Country module

Created on 27 April 2024, about 2 months ago
Updated 21 May 2024, about 1 month ago

Attempting to update to the new 2.0.1 supported version of the Country module results in breaking implementations of the flags_country submodule, with the following error in the logs:

ArgumentCountError: Too few arguments to function Drupal\country\Plugin\Field\FieldFormatter\CountryDefaultFormatter::__construct(), 7 passed in /home/customer/www/dev.kobejet.com/web/modules/contrib/flags/flags_country/src/Plugin/Field/FieldFormatter/CountryFlagFormatter.php on line 35 and exactly 8 expected in Drupal\country\Plugin\Field\FieldFormatter\CountryDefaultFormatter->__construct() (line 53 of /home/customer/www/dev.kobejet.com/web/modules/contrib/country/src/Plugin/Field/FieldFormatter/CountryDefaultFormatter.php).

The older 1.0.1 version of the Country module is no longer supported, so looking to upgrade while still maintaining the flags functionality provided by this module.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States W01F

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024