Argument Count Error: Too Few Arguments prevents upgrade to D10

Created on 19 October 2023, about 1 year ago
Updated 13 July 2024, 6 months ago

Problem/Motivation

Updating from D9 to D10, the site is generating this error and a white screen on front page--but is resolving correctly for single content pages:

ArgumentCountError: Too few arguments to function Drupal\image\Plugin\Field\FieldFormatter\ImageFormatter::__construct(), 9 passed in /var/www/html/MY_SITE/web/modules/contrib/formatter_suite/src/Plugin/Field/FieldFormatter/GeneralImageFormatter.php on line 107 and exactly 10 expected in Drupal\image\Plugin\Field\FieldFormatter\ImageFormatter->__construct() (line 75 of /var/www/html/MY_Site/web/core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatter.php).

I am unable to uninstall the module, as the error prevents uninstallation. Even manually removing the module doesn't clear the error, nor did it work to uninstall and reinstall the module.

Steps to reproduce

Upgraded to D10 via composer. Error continues even after multiple cache clear, database updates performed via Drush and the Web interface.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇺🇸United States Cynthia Ewer

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024