Twilio SMS Error After 4.2.2 Upgrade

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 :

[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:

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