Problem/Motivation

With the latest version of twilio getting below error message

The website encountered an unexpected error. Please try again later.
ArgumentCountError: Too few arguments to function Drupal\twilio\Services\Sms::__construct(), 3 passed in /var/www/app/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 and exactly 4 expected in Drupal\twilio\Services\Sms->__construct() (line 49 of modules/contrib/twilio/src/Services/Sms.php).
Drupal\twilio\Services\Sms->__construct(Object, Object, Object) (Line: 259)

Steps to reproduce

With composer require 'drupal/twilio:^3.0@alpha'

Once the twilio configuration are added, we try to access the class were the sms dependencies is injected. It throws the error.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork twilio-3377666

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mangesh.borukar created an issue. See original summary.

malcomio made their first commit to this issue’s fork.

malcomio’s picture

keshavv’s picture

Priority: Normal » Critical
Status: Needs review » Reviewed & tested by the community

Facing the same issue, As it encountered an unexpected error on the configuration page.
Thank you for your MR. It works well.
Changing priority to Critical and Moving to RTBC.

shashank5563 made their first commit to this issue’s fork.

shashank5563’s picture

shashank5563’s picture

Status: Reviewed & tested by the community » Fixed
shashank5563’s picture

Status: Fixed » Closed (fixed)