Great module, during testing I found a minor issue with line 245 of sms_tropo.module. Incoming messages would fail with the "Something went wrong and I wasn't able to send your message to Drupal..." message. Checking the php error log, I noticed: "PHP Fatal error: Cannot use object of type stdClass as array in
/sites/all/modules/smsframework/modules/sms_tropo/sms_tropo.module on line 245". Changing 243 from:
$received = json_decode($received); to
$received = json_decode($received, true); allowed the incoming SMS to be properly processes by sms_tropo_incoming_callback. It looks like http://php.net/json_decode requires you to specify if you want an associative array instead of an object from a json_decode. Thanks for your work on this!

Comments

akalsey’s picture

Status: Active » Fixed

Fixed in dev

akalsey’s picture

Status: Fixed » Closed (fixed)

Deployed in 1.1