- Issue created by @Rajan Kumar
- Status changed to Needs review
over 1 year ago 9:28am 19 May 2023 - 🇮🇳India shashank5563 New Delhi
@rajan, I have fixed the issue the 8.x-3.x branch.
- Status changed to Fixed
over 1 year ago 9:33am 19 May 2023
When I install this module added configuration of twilio at /admin/config/system/twilio page.
Next, when I try to register user account and put mobile number in phone number field and save then giving below errors.
The website encountered an unexpected error. Please try again later.
Twilio\Exceptions\ConfigurationException: Credentials are required to create a Client in Twilio\Rest\Client->__construct() (line 167 of /app/vendor/twilio/sdk/src/Twilio/Rest/Client.php).
Drupal\twilio\Services\Sms->messageSend('+919507800000', Array) (Line: 108)
Drupal\twilio\Services\Sms->twilioUserSendConfirmation(Object, '+919507800000', '91') (Line: 89)
twilio_register_submit(Array, Object)
call_user_func_array('twilio_register_submit', Array) (Line: 114)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 52)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 595)
Drupal\Core\Form\FormBuilder->processForm('user_register_form', Array, Object) (Line: 323)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 169)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 718)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Fixed
Code
@rajan, I have fixed the issue the 8.x-3.x branch.