'Drupal\graph_mail\Plugin\Mail\GraphMail' does not implement method 'getEditableConfigNames'

Created on 14 November 2023, about 1 year ago
Updated 16 November 2023, about 1 year ago

We are using Drupal 10.1.6
We are using GraphMail 2.0Alpha

I've setup all the required information. Also installed microsoft/microsoft-graph.
Configured mail system. selected graph_mail from mail system setting.

When I'm trying to send mail, I'm getting below fatal error.

Fatal error: Class Drupal\graph_mail\Plugin\Mail\GraphMail contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Drupal\graph_mail\Plugin\Mail\GraphMail::getEditableConfigNames) in /home/ide/project/docroot/modules/contrib/graph_mail/src/Plugin/Mail/GraphMail.php on line 28

Please check attached screenshots for your reference.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇮🇳India soutams

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

Comments & Activities

  • Issue created by @soutams
  • Status changed to Fixed about 1 year ago
  • 🇮🇹Italy apaderno Brescia, 🇮🇹

    This has been already fixed in the 2.0.x branch. The GraphMail class implements MailInterface and ContainerFactoryPluginInterface, which do not define that method.

  • 🇮🇳India soutams

    Can you please share the patch link, if you have any?

  • Status changed to Active about 1 year ago
  • 🇮🇹Italy apaderno Brescia, 🇮🇹

    I meant the development snapshot, not the alpha release: composer require 'drupal/graph_mail:2.0.x-dev@dev'.

  • 🇮🇳India soutams

    I tried that.
    Ran composer require 'drupal/graph_mail:2.0.x-dev@dev'
    Enabled 'graph_mail' module. dursh en graph_mail
    When I'm going drush cr it is giving a error, 'In CheckExceptionOnInvalidReferenceBehaviorPass.php line 86:
    The service "graph_mail.helper" has a dependency on a non-existent service "queue.factory". Did you mean this: "im
    age.factory"?
    '
    If I go to extend page, it is showing enabled but setting page is not opening '/admin/config/services/graph_mail'

  • 🇧🇪Belgium BramDriesen Belgium 🇧🇪

    The service "graph_mail.helper" has a dependency on a non-existent service "queue.factory"

    Is something that is normally solved after a cache clear. What happens if you try a cache clear again?

  • 🇮🇳India soutams

    when I'm doing 'drush cr' I'm still getting the same error.

    I just reinstalled the alpha version. Now I'm able to enable the module and also can able to configure the module but it is giving the same fatal error when sending mail.

  • 🇮🇳India soutams

    hi,

    is there any update? can you please help me to resolve the issue?

    Thanks,
    Soutam

Production build 0.71.5 2024