I am trying to integrate Twilio to send SMS notifications using this guide
https://www.open-emr.org/wiki/index.php/Short_Message_Service
.
I have done all required changes and when I visit http://x.x.x.x/openemr/modules/sms_email_reminder/cron_sms_notification.php
,
I receive the following error
Error in SMS authorization! (ERR: 108, Invalid or missing api_id)
Checking further, I can see the following at the end of /var/log/apache2/error.log
when I visit the link
[Wed Dec 09 11:20:51.317933 2020] [php7:notice] [pid 3841] [client x.x.x.x:57122] PHP Notice: Undefined variable: argc in /var/www/openemr/modules/sms_email_reminder/cron_sms_notification.php on line 25 [Wed Dec 09 11:20:51.318489 2020] [php7:warn] [pid 3841] [client x.x.x.x:57122] PHP Warning: mysqli_query() expects at least 2 parameters, 1 given in /var/www/openemr/modules/sms_email_reminder/cron_sms_notification.php on line 41 [Wed Dec 09 11:20:51.318585 2020] [php7:warn] [pid 3841] [client x.x.x.x:57122] PHP Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given in /var/www/openemr/modules/sms_email_reminder/cron_sms_notification.php on line 42 [Wed Dec 09 11:20:51.318672 2020] [php7:notice] [pid 3841] [client x.x.x.x:57122] PHP Notice: Undefined variable: AccountSid in /var/www/openemr/modules/sms_email_reminder/cron_sms_notification.php on line 50 [Wed Dec 09 11:20:51.319012 2020] [php7:notice] [pid 3841] [client x.x.x.x:57122] PHP Notice: Undefined variable: AccountSid in /var/www/openemr/modules/sms_email_reminder/cron_sms_notification.php on line 98
I configured Twilio Account Sid, Twilio Auth Token and Twilio From name as per the guide and I can confirm that my Twilio account has enough balance.
OpenEMR Version
Version Number: v5.0.1 (6)
Browser:
Chrome & FireFox
Operating System
Mac OSX