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]));

CommentFileSizeAuthor
#2 fix_install_module-3296389.patch832 bytesafagioli

Comments

afagioli created an issue. See original summary.

afagioli’s picture

StatusFileSize
new832 bytes
afagioli’s picture

Please test patch in #2

afagioli’s picture

Status: Active » Needs review
vinaygawade’s picture

Status: Needs review » Reviewed & tested by the community

@afagioli Thank you! I applied the patch provided in #2 locally with no issues and it's working fine. Changing status to RTBC.

  • VladimirAus committed f943c369 on 8.x-1.x authored by afagioli
    Issue #3296389 by afagioli, vinaygawade, VladimirAus: Error: Cannot call...
vladimiraus’s picture

Status: Reviewed & tested by the community » Fixed

Thanks everyone! Committed! 🍻

  • VladimirAus committed f943c369 on 2.1.x authored by afagioli
    Issue #3296389 by afagioli, vinaygawade, VladimirAus: Error: Cannot call...
vladimiraus’s picture

Version: 8.x-1.x-dev » 2.0.x-dev

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.