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
Comment #1
akalsey commentedFixed in dev
Comment #2
akalsey commentedDeployed in 1.1