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
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
Comment #4
malcomio commentedsee https://git.drupalcode.org/project/twilio/-/merge_requests/27
Comment #5
keshavv commentedFacing 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.
Comment #8
shashank5563 commentedComment #9
shashank5563 commentedComment #10
shashank5563 commented