Jump to:
| Project: | SMS Framework |
| Version: | 5.x-1.2 |
| Component: | SMS User |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
I have this module installed and all notifications are working fine.....except when it needs to send out an SMS. I have tracked down WHERE the problem is happening, but am clueless how to fix it.
in this function:
/**
* Send a message to a user.
*/
function sms_user_send($uid, $message) {
$account = ($uid);
if ($account->sms_user[0]['status'] == 2) {
return sms_send($account->sms_user[0]['number'], $message, $account->sms_user[0]['gateway']);
}
else {
return FALSE;
}
}it just doesn't seem to load the $uid. I turned on watchdog for this, and it does get the UID, but you cannot identify the number of the status. This is how I logged it to watchdog, and what returned to the log files was a blank line:
watchdog('sms',$account->sms_user[0]['status'],watchdog_notice);
watchdog('sms',$account->sms_user[0]['number'],watchdog_notice);I can confirm that the number is setup and confirmed on this user.
I also turned on devel.module, and here is the information from that module on the user (changed the number for privacy purposes):
sms_user
Array
(
[0] => Array
(
[number] => 9995551212
[status] => 2
[code] =>
[gateway] => Array
(
[country] => 1
)
)
)I am logged on as the main administrator, so there shouldn't be any access permission issues.
So, obviously as it can't see the user status, it isn't going to go any further and send the SMS, but WHY isn't it seeing the user status? Where should I be looking?
Comments
#1
Just a further note...it is correctly passing the $uid (which in this case is 1).
#2
Closing this issue since it's over a year old and D5 is now not supported with release of d7
#3
Automatically closed -- issue fixed for 2 weeks with no activity.