Hello, I am getting this error while sending a message using scriptcase 9.7.002.
Fatal error: Uncaught Error: Class ‘Clickatell\ClickatellException’ not found in C:\Program Files\NetMake\v9-php73\wwwroot\scriptcase\prod\third\clickatell\src\Rest.php:72 Stack trace: #0 C:\Program Files\NetMake\v9-php73\wwwroot\scriptcase\prod\third\clickatell\src\Rest.php(119): Clickatell\Rest->handle(false, 0) #1 C:\Program Files\NetMake\v9-php73\wwwroot\scriptcase\prod\third\clickatell\src\Rest.php(131): Clickatell\Rest->curl(‘messages’, Array) #2 C:\Program Files\NetMake\v9-php73\wwwroot\scriptcase\app\Message_MS_lib\lib\php\nm_api.php(588): Clickatell\Rest->sendMessage(Array) #3 C:\Program Files\NetMake\v9-php73\wwwroot\scriptcase\app\Message_MS\send_message\send_message_apl.php(1742): sc_send_sms(Array) #4 C:\Program Files\NetMake\v9-php73\wwwroot\scriptcase\app\Message_MS\send_message\send_message_apl.php(1075): send_message_apl->Valida_campos(NULL, NULL, NULL) #5 C:\Program Files\NetMake\v9-php73\wwwroot\scriptcase\app\Message_MS\send_message\index.php(2205): send_message_apl->controle() #6 {main} thrown in C:\Program Files\NetMake\v9-php73\wwwroot\scriptcase\prod\third\clickatell\src\Rest.php on line 72
This is my code in the onvalidate success.
$phone=array();
$sql="SELECT phone FROM contacts WHERE category = ". {category};
sc_lookup(ds,$sql);
foreach({ds} as $values){
$phone[] = $values[0];
}
$arr_settings = array(
‘message’ =>
[
‘to’ => $phone,
‘message’ => {message}
],
‘settings’ =>
[
‘gateway’ => ‘clickatell’,
‘auth_token’ => ‘have hiden the token’
]);
sc_send_sms($arr_settings);