When using the newer (2010) version of the Twilio PHP library, this error is generated:

Notice: Undefined property: Services_Twilio_Rest_SmsMessage::$IsError in Services_Twilio_InstanceResource->__get() (line 61 of sites/all/libraries/twilio/Services/Twilio/InstanceResource.php).

This was noted here: http://drupal.org/node/1489854#comment-6283390

It looks like we need to check for errors in a different way w/this new API - the error is caused by line 241 in sms_twilio.module.

I've attached a patch to the latest D7 dev version.

CommentFileSizeAuthor
sms_twilio-D7-FixErrorHandling.patch829 bytesnmcclain

Comments

cobadger’s picture

Patch works for me - eliminated the error:

Notice: Undefined property: Services_Twilio_Rest_SmsMessage::$IsError in Services_Twilio_InstanceResource->__get() (line 61 of sites/all/libraries/twilio/Services/Twilio/InstanceResource.php).

cobadger’s picture

Status: Needs review » Reviewed & tested by the community

Changing status to RTBC

mcpuddin’s picture

Status: Reviewed & tested by the community » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

ransomweaver’s picture

This patch is not yet in the dev branch...

tej28’s picture

Issue summary: View changes

The above patch works perfect for me :)

thank you,

Anonymous’s picture

Status: Closed (fixed) » Needs review

Yeah, this still has not been committed to the dev version.

Anonymous’s picture

Status: Needs review » Reviewed & tested by the community

This is actually RTBC, by others previously & now by me.

chrisrockwell’s picture

Assigned: Unassigned » chrisrockwell
bildesbil’s picture

Hello,
I have a little problem with the module sms framework on drupal I would like to know if you can help me!
I use the module with the twilio sms integration module. I have an error every time I try to send an SMS via my drupal site using the twilio gateway.

The framework removes the "+" from the international number and this generates an error in the twilio library. Saying that the number is valid.

I do not know if you can help me solve my problem

Best regards.