Cannot redeclare Drupal\commerce_abandoned_carts\Mail\AbandonedCartMail::getFromAddress()

Created on 10 December 2024, 9 days ago

I installed dev version of the module because I want to use the queue feature, but I get this error:

Cannot redeclare Drupal\commerce_abandoned_carts\Mail\AbandonedCartMail::getFromAddress()

And also the time service is declared a second time on line 53, which also cause an error.

🐛 Bug report
Status

Active

Version

2.1

Component

Code

Created by

🇬🇧United Kingdom gillarf

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

Comments & Activities

  • Issue created by @gillarf
  • 🇳🇱Netherlands megachriz

    That's odd, I don't see getFromAddress() being declared twice in this file:
    https://git.drupalcode.org/project/commerce_abandoned_carts/-/blob/2.1.x...

    Also, when I download 2.1.x-dev module manually and search for "getFromAddress", it only appears in the file AbandonedCartMail.php.

    I also don't see protected $time; twice in AbandonedCartMail.php.

    Do you perhaps have patched applied to the module? Or maybe you have two copies of this module on the system?

  • 🇬🇧United Kingdom gillarf

    Ah sorry and thanks - I did try to patch another branch of the module, then updated to the dev version, and the patch then failed, but clearly updated this file.

    I didn't know a patch could partly fail, my bad.

    Thanks for your help.

  • 🇳🇱Netherlands megachriz

    Thanks for reporting back! I close this issue then.

Production build 0.71.5 2024