# Twilio SMS Error After 4.2.2 Upgrade

**URL:** <https://forum.mautic.org/t/twilio-sms-error-after-4-2-2-upgrade/24030>\
**Category:** 3rd Party Addons\
**Tags:** community\
**Created:** [May 7, 2022, 10:53pm UTC](https://forum.mautic.org/t/twilio-sms-error-after-4-2-2-upgrade/24030 "2022-05-07T22:53:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pointclick](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/pointclick/32/6346_2.png) [@pointclick](https://forum.mautic.org/u/pointclick)\
**Post date:** [May 7, 2022, 10:53pm UTC](https://forum.mautic.org/t/twilio-sms-error-after-4-2-2-upgrade/24030/1 "2022-05-07T22:53:49Z")

</div>

**Your software**  
_Mautic Version_: 4.2.2  
_My PHP version is_ : PHP Version 7.4.29  
_MariaDB version_: 10.4.24-MariaDB-1:10.4.24+maria~bionic  
_Operation System_: Ubuntu 18.04.6 LTS  
_Control Panel_: Cyberpanel

_These errors are showing in the Mautic log_ :

```auto
[2022-05-07 18:22:10] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type null - in file /public_html/app/bundles/SmsBundle/Form/Type/SmsSendType.php - at line 84 {"builder":"[object] (Symfony\\Component\\Form\\FormBuilder: {})","options":{"block_name":null,"disabled":false,"label_format":null,"label_translation_parameters":[],"attr_translation_parameters":[],"translation_domain":null,"auto_initialize":true,"trim":true,"required":true,"property_path":null,"mapped":true,"by_reference":true,"inherit_data":false,"compound":true,"method":"POST","action":"","post_max_size_message":"The uploaded file was too large. Please try to upload a smaller file.","allow_file_upload":false,"help_translation_parameters":[],"error_mapping":[],"invalid_message":"This value is not valid.","invalid_message_parameters":[],"allow_extra_fields":false,"extra_fields_message":"This form should not contain extra fields.","csrf_protection":true,"csrf_field_name":"_token","csrf_message":"The CSRF token is invalid. Please try to resubmit the form.","csrf_token_manager":"[object] (Symfony\\Component\\Security\\Csrf\\CsrfTokenManager: {})","csrf_token_id":null,"block_prefix":null,"label":false,"row_attr":[],"attr":[],"data":null,"data_class":null,"empty_data":"[object] (Closure: {})","error_bubbling":true,"label_attr":[],"upload_max_size_message":"[object] (Closure: {})","help":null,"help_attr":[],"help_html":false,"validation_groups":null,"constraints":[],"update_select":"campaignevent_properties_sms"},"windowUrl":"/s/sms/new?contentOnly=1&updateSelect=campaignevent_properties_sms"} []
[2022-05-07 22:25:08] mautic.NOTICE: Error: Call to undefined function curl_init() (uncaught exception) at /public_html/vendor/twilio/sdk/src/Twilio/Http/CurlClient.php line 32 while running console command `mautic:campaigns:trigger` [] []
[2022-05-07 22:25:08] mautic.WARNING: Command `mautic:campaigns:trigger` exited with status code 1 [] []

```

Cron Campaign Triggers Output:

```auto
PHP Warning: Use of undefined constant CURLOPT_POST - assumed 'CURLOPT_POST' (this will throw an Error in a future version of PHP) in /public_html/vendor/twilio/sdk/src/Twilio/Http/CurlClient.php on line 142
PHP Warning: Use of undefined constant CURLOPT_POSTFIELDS - assumed 'CURLOPT_POSTFIELDS' (this will throw an Error in a future version of PHP) in /public_html/vendor/twilio/sdk/src/Twilio/Http/CurlClient.php on line 143

In CurlClient.php line 32:

  Attempted to call function "curl_init" from the global namespace.

mautic:campaigns:trigger [-i|--campaign-id [CAMPAIGN-ID]] [--campaign-limit [CAMPAIGN-LIMIT]] [--contact-id [CONTACT-ID]] [--contact-ids [CONTACT-IDS]] [--min-contact-id [MIN-CONTACT-ID]] [--max-contact-id [MAX-CONTACT-ID]] [--thread-id [THREAD-ID]] [--max-threads [MAX-THREADS]] [--kickoff-only] [--scheduled-only] [--inactive-only] [-l|--batch-limit [BATCH-LIMIT]] [--bypass-locking] [-t|--timeout TIMEOUT] [-x|--lock_mode LOCK_MODE] [-f|--force] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command>

```

**Your problem**  
_My problem is_ :

Twilio SMS Campaign fails to send, no SMS logs output within Twilio dashboard.  
Mautic instance reads as action completed.

_Steps I have tried to fix the problem_ :

- List item

Server updates && Upgrades  
Cleared Cache  
Update Schema  
Copied over Mautic 4.2.2 default file & directories  
Checked permissions

- List item
