Error: Cannot call abstract method Drupal\Core\Messenger\MessengerInterface::addMessage() in animate_css_install()

Created on 17 July 2022, over 2 years ago
Updated 19 March 2023, over 1 year ago

Problem/Motivation

Error on install
[error] Error: Cannot call abstract method Drupal\Core\Messenger\MessengerInterface::addMessage() in animate_css_install() (line 20 of /home/a/Public/d9/web/modules/contrib/animate_css/animate_css.install) #0 [internal function]: animate_css_install()

Steps to reproduce

drush en animate_css

Proposed resolution

replace:
MessengerInterface::addMessage(t('Animate CSS module requires the animate library. <a href=":anim_link">Download animate library</a> and unzip into /libraries/animate.css.', [':anim_link' => DOWNLOAD_URL]));

with:
\Drupal::messenger()->addMessage(t('Animate CSS module requires the animate library. <a href=":anim_link">Download animate library</a> and unzip into /libraries/animate.css.', [':anim_link' => DOWNLOAD_URL]));

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇮🇹Italy afagioli Rome

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024