EmailSpamspanFormatter causes fatal error with spamspan 3.1.0

Created on 13 July 2023, about 1 year ago
Updated 14 July 2023, about 1 year ago

Problem/Motivation

We're currently working on a Drupal 9.5 to 10.1 upgrade. Until today's release of spamspan the upgrade worked fine. With the release of 3.1.0 core's views_post_update_timestamp_formatter() fails:

[notice] Update started: views_post_update_timestamp_formatter
                                                                                                  
drupal [Error] TypeError: Drupal\spamspan\Plugin\Field\FieldFormatter\EmailSpamspanFormatter::__construct(): Argument #8 ($spamspan_service) must be of type Drupal\spamspan\Plugin\Field\FieldFormatter\SpamspanService, Drupal\spamspan\SpamspanService given, called in /var/www/html/web/modules/contrib/spamspan/src/Plugin/Field/FieldFormatter/EmailSpamspanFormatter.php on line 55 in Drupal\spamspan\Plugin\Field\FieldFormatter\EmailSpamspanFormatter->__construct() (line 38 of /var/www/html/web/modules/contrib/spamspan/src/Plugin/Field/FieldFormatter/EmailSpamspanFormatter.php)

#0  /var/www/html/web/modules/contrib/spamspan/src/Plugin/Field/FieldFormatter/EmailSpamspanFormatter.php(55): Drupal\spamspan\Plugin\Field\FieldFormatter\EmailSpamspanFormatter->__construct('email_spamspan', Array, Object(Drupal\Core\Field\BaseFieldDefinition), Array, '', '_custom', Array, Object(Drupal\spamspan\SpamspanService))   

#1 /var/www/html/web/core/lib/Drupal/Core/Field/FormatterPluginManager.php(64): Drupal\spamspan\Plugin\Field\FieldFormatter\EmailSpamspanFormatter::create(Object(Drupal\Core\DependencyInjection\ContainerBuilder), Array, 'email_spamspan', Array)                   

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

3.1

Component

Code

Created by

🇩🇪Germany mkalkbrenner 🇩🇪

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

Comments & Activities

Production build 0.71.5 2024