CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Unable to send SMS to contact
Pages: [1]

Author Topic: Unable to send SMS to contact  (Read 1321 times)

LeslieRD

  • I’m new here
  • *
  • Posts: 6
  • Karma: 1
  • CiviCRM version: 4..2
  • CMS version: Drupal 7
  • MySQL version: 5.X
  • PHP version: 5.X
Unable to send SMS to contact
November 22, 2012, 07:15:00 pm
Hello everyone, after I've made a fresh installation of CiviCRM on Drupal installed on a Ubuntu server 11.10, I've removed most of the components and leave only CiviGrant and CiviReport, now while i'm on my way testing the send SMS feature after configuring an SMS provider with clickatell, the system gives me an error right after I've click on the send button

this error is : "Sorry but we are not able to provide this at the moment.
Return to home page"

with a path show on my address bar :(http://) Computer_IP_Address/Site_Name/index.php?q=civicrm/activity/sms/add

I'm only at one week experiencing this software, can you please help me.

now in Ubuntu tit show me this :


Server error
The website encountered an error while retrieving http://192.168.1.250/fokalgrants/index.php?q=civicrm/activity/sms/add. It may be down for maintenance or configured incorrectly.
Here are some suggestions:
Reload this webpage later.
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

Thank You.
« Last Edit: November 23, 2012, 10:47:28 am by LeslieRD »

LeslieRD

  • I’m new here
  • *
  • Posts: 6
  • Karma: 1
  • CiviCRM version: 4..2
  • CMS version: Drupal 7
  • MySQL version: 5.X
  • PHP version: 5.X
Re: Unable to send SMS to contact
November 22, 2012, 08:29:25 pm
Thank you very much, while I was testing all the parameters I 've found that the main problem is that my API url was https I've change it to http the non secure connection and it works


LeslieRD

  • I’m new here
  • *
  • Posts: 6
  • Karma: 1
  • CiviCRM version: 4..2
  • CMS version: Drupal 7
  • MySQL version: 5.X
  • PHP version: 5.X
Re: Unable to send SMS to contact
November 23, 2012, 09:16:18 am
unfortunately it wors fo a site hostin on a windows PC but not in the ubuntu one please help

now in Ubuntu tit show me this :


Server error
The website encountered an error while retrieving http://192.168.1.250/fokalgrants/index.php?q=civicrm/activity/sms/add [nofollow]. It may be down for maintenance or configured incorrectly.
Here are some suggestions:
Reload this webpage later.
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

Thank You.

please help
« Last Edit: November 23, 2012, 10:48:16 am by LeslieRD »

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Unable to send SMS to contact
November 23, 2012, 11:16:11 am
More details are needed to debug this. Check your apache logs for related error messages, as well as the CiviCRM log file which is in <your drupal root>/sites/default(or your specific site)/files/civicrm/ConfigAndLog
Protect your investment in CiviCRM by  becoming a Member!

LeslieRD

  • I’m new here
  • *
  • Posts: 6
  • Karma: 1
  • CiviCRM version: 4..2
  • CMS version: Drupal 7
  • MySQL version: 5.X
  • PHP version: 5.X
Re: Unable to send SMS to contact
November 23, 2012, 11:39:53 am
Thank U, there is the last part of the apache log

[Fri Nov 23 12:05:57 2012] [error] [client 192.168.1.254] PHP Fatal error:  Call to undefined function curl_init() in /var/www/fokalgrants/sites/all/modules/civicrm/CRM/SMS/Provider/Clickatell.php on line 128, referer: http://192.168.1.250/fokalgrants/index.php?q=civicrm/activity/sms/add&action=add&reset=1&cid=3&selectedChild=activity&atype=4
[Fri Nov 23 12:07:21 2012] [error] [client 192.168.1.254] PHP Fatal error:  Call to undefined function curl_init() in /var/www/fokalgrants/sites/all/modules/civicrm/CRM/SMS/Provider/Clickatell.php on line 128, referer: http://192.168.1.250/fokalgrants/index.php?q=civicrm/activity/sms/add&action=add&reset=1&cid=3&selectedChild=activity&atype=4
[Fri Nov 23 12:11:37 2012] [error] [client 192.168.1.254] PHP Fatal error:  Call to undefined function curl_init() in /var/www/fokalgrants/sites/all/modules/civicrm/CRM/SMS/Provider/Clickatell.php on line 128, referer: http://192.168.1.250/fokalgrants/index.php?q=civicrm/activity/sms/add&action=add&reset=1&cid=3&selectedChild=activity&atype=4
[Fri Nov 23 12:12:30 2012] [error] [client 192.168.1.254] PHP Fatal error:  Call to undefined function curl_init() in /var/www/fokalgrants/sites/all/modules/civicrm/CRM/SMS/Provider/Clickatell.php on line 128, referer: http://192.168.1.250/fokalgrants/index.php?q=civicrm/activity/sms/add&action=add&reset=1&cid=3&selectedChild=activity&atype=4
[Fri Nov 23 12:13:14 2012] [error] [client 192.168.1.254] PHP Fatal error:  Call to undefined function curl_init() in /var/www/fokalgrants/sites/all/modules/civicrm/CRM/SMS/Provider/Clickatell.php on line 128, referer: http://192.168.1.250/fokalgrants/index.php?q=civicrm/activity/sms/add&action=add&reset=1&cid=4&selectedChild=activity&atype=4
[Fri Nov 23 12:13:22 2012] [error] [client 192.168.1.254] PHP Fatal error:  Call to undefined function curl_init() in /var/www/fokalgrants/sites/all/modules/civicrm/CRM/SMS/Provider/Clickatell.php on line 128, referer: http://192.168.1.250/fokalgrants/index.php?q=civicrm/activity/sms/add&action=add&reset=1&cid=4&selectedChild=activity&atype=4
[Fri Nov 23 12:13:22 2012] [error] [client 192.168.1.254] File does not exist: /var/www/favicon.ico
[Fri Nov 23 12:13:30 2012] [error] [client 192.168.1.254] PHP Fatal error:  Call to undefined function curl_init() in /var/www/fokalgrants/sites/all/modules/civicrm/CRM/SMS/Provider/Clickatell.php on line 128, referer: http://192.168.1.250/fokalgrants/index.php?q=civicrm/activity/sms/add&action=add&reset=1&cid=4&selectedChild=activity&atype=4
[Fri Nov 23 12:14:58 2012] [error] [client 192.168.1.254] PHP Fatal error:  Call to undefined function curl_init() in /var/www/fokalgrants/sites/all/modules/civicrm/CRM/SMS/Provider/Clickatell.php on line 128, referer: http://192.168.1.250/fokalgrants/index.php?q=civicrm/activity/sms/add&action=add&reset=1&cid=4&selectedChild=activity&atype=4
[Fri Nov 23 12:18:34 2012] [error] [client 192.168.1.254] PHP Fatal error:  Call to undefined function curl_init() in /var/www/fokalgrants/sites/all/modules/civicrm/CRM/SMS/Provider/Clickatell.php on line 128, referer: http://192.168.1.250/fokalgrants/index.php?q=civicrm/activity/sms/add&action=add&reset=1&cid=3&selectedChild=activity&atype=4
[Fri Nov 23 12:18:35 2012] [error] [client 192.168.1.254] File does not exist: /var/www/favicon.ico
[Fri Nov 23 12:18:45 2012] [error] [client 192.168.1.254] PHP Fatal error:  Call to undefined function curl_init() in /var/www/fokalgrants/sites/all/modules/civicrm/CRM/SMS/Provider/Clickatell.php on line 128, referer: http://192.168.1.250/fokalgrants/index.php?q=civicrm/activity/sms/add&action=add&reset=1&cid=3&selectedChild=activity&atype=4
[Fri Nov 23 12:20:12 2012] [error] [client 192.168.1.254] PHP Fatal error:  Call to undefined function curl_init() in /var/www/fokalgrants/sites/all/modules/civicrm/CRM/SMS/Provider/Clickatell.php on line 128, referer: http://192.168.1.250/fokalgrants/index.php?q=civicrm/activity/sms/add&action=add&reset=1&cid=3&selectedChild=activity&atype=4
[Fri Nov 23 12:20:12 2012] [error] [client 192.168.1.254] File does not exist: /var/www/favicon.ico
[Fri Nov 23 12:30:57 2012] [error] [client 192.168.1.254] PHP Fatal error:  Call to undefined function curl_init() in /var/www/fokalgrants/sites/all/modules/civicrm/CRM/SMS/Provider/Clickatell.php on line 128, referer: http://192.168.1.250/fokalgrants/index.php?q=civicrm/activity/sms/add&action=add&reset=1&cid=3&selectedChild=activity&atype=4
[Fri Nov 23 13:29:44 2012] [error] [client 192.168.1.254] PHP Fatal error:  Call to undefined function curl_init() in /var/www/fokalgrants/sites/all/modules/civicrm/CRM/SMS/Provider/Clickatell.php on line 128, referer: http://192.168.1.250/fokalgrants/index.php?q=civicrm/activity/sms/add&action=add&reset=1&cid=3&selectedChild=activity&atype=4
[Fri Nov 23 13:38:30 2012] [notice] caught SIGTERM, shutting down
[Fri Nov 23 13:38:31 2012] [notice] Apache/2.2.20 (Ubuntu) PHP/5.3.6-13ubuntu3.9 with Suhosin-Patch configured -- resuming normal operations
[Fri Nov 23 13:38:37 2012] [notice] caught SIGTERM, shutting down
[Fri Nov 23 13:38:38 2012] [notice] Apache/2.2.20 (Ubuntu) PHP/5.3.6-13ubuntu3.9 with Suhosin-Patch configured -- resuming normal operations
[Fri Nov 23 13:40:22 2012] [notice] caught SIGTERM, shutting down
[Fri Nov 23 13:40:23 2012] [notice] Apache/2.2.20 (Ubuntu) PHP/5.3.6-13ubuntu3.9 with Suhosin-Patch configured -- resuming normal operations
[Fri Nov 23 13:40:25 2012] [notice] caught SIGTERM, shutting down
[Fri Nov 23 13:40:26 2012] [notice] Apache/2.2.20 (Ubuntu) PHP/5.3.6-13ubuntu3.9 with Suhosin-Patch configured -- resuming normal operations
[Fri Nov 23 13:40:36 2012] [error] [client 192.168.1.254] PHP Fatal error:  Call to undefined function curl_init() in /var/www/fokalgrants/sites/all/modules/civicrm/CRM/SMS/Provider/Clickatell.php on line 128, referer: http://192.168.1.250/fokalgrants/index.php?q=civicrm/activity/sms/add&action=add&reset=1&cid=3&selectedChild=activity&atype=4
[Fri Nov 23 13:50:16 2012] [error] [client 192.168.1.254] PHP Fatal error:  Call to undefined function curl_init() in /var/www/fokalgrants/sites/all/modules/civicrm/CRM/SMS/Provider/Clickatell.php on line 128, referer: http://192.168.1.250/fokalgrants/index.php?q=civicrm/activity/sms/add&action=add&reset=1&cid=3&selectedChild=activity&atype=4
[Fri Nov 23 13:50:47 2012] [error] [client 192.168.1.254] PHP Fatal error:  Call to undefined function curl_init() in /var/www/fokalgrants/sites/all/modules/civicrm/CRM/SMS/Provider/Clickatell.php on line 128, referer: http://192.168.1.250/fokalgrants/index.php?q=civicrm/activity/sms/add
[Fri Nov 23 14:00:58 2012] [error] [client 192.168.1.254] PHP Fatal error:  Call to undefined function curl_init() in /var/www/fokalgrants/sites/all/modules/civicrm/CRM/SMS/Provider/Clickatell.php on line 128, referer: http://192.168.1.250/fokalgrants/index.php?q=civicrm/activity/sms/add&action=add&reset=1&cid=3&selectedChild=activity&atype=4




and this is for the civicrm log file

Nov 22 15:31:37  [info] $Fatal Error Details = Array
(
    [message] =>
   
Code: [Select]
=>
)


Nov 22 15:31:37  [info] $backTrace = #0 /var/www/fokalgrants/sites/all/modules/civicrm/CRM/Core/Error.php(312): CRM_Core_Error::backtrace("backTrace", TRUE)
#1 /var/www/fokalgrants/sites/all/modules/civicrm/CRM/Utils/Token.php(943): CRM_Core_Error::fatal()
#2 /var/www/fokalgrants/sites/all/modules/civicrm/CRM/Contact/Form/Task/SMSCommon.php(187): CRM_Utils_Token::getTokenDetails((Array:0), (Array:5), FALSE, FALSE)
#3 /var/www/fokalgrants/sites/all/modules/civicrm/CRM/Contact/Form/Task/SMS.php(87): CRM_Contact_Form_Task_SMSCommon::buildQuickForm(Object(CRM_Contact_Form_Task_SMS))
#4 /var/www/fokalgrants/sites/all/modules/civicrm/CRM/Core/Form.php(350): CRM_Contact_Form_Task_SMS->buildQuickForm()
#5 /var/www/fokalgrants/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Display.php(93): CRM_Core_Form->buildForm()
#6 /var/www/fokalgrants/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Display->perform(Object(CRM_Contact_Form_Task_SMS), "display")
#7 /var/www/fokalgrants/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Contact_Form_Task_SMS), "display")
#8 /var/www/fokalgrants/sites/all/modules/civicrm/CRM/Core/Controller.php(289): HTML_QuickForm_Page->handle("display")
#9 /var/www/fokalgrants/sites/all/modules/civicrm/CRM/Utils/Wrapper.php(115): CRM_Core_Controller->run()
#10 /var/www/fokalgrants/sites/all/modules/civicrm/CRM/Core/Invoke.php(186): CRM_Utils_Wrapper->run("CRM_Contact_Form_Task_SMS", "Activities", (Array:1))
#11 /var/www/fokalgrants/sites/all/modules/civicrm/drupal/civicrm.module(500): CRM_Core_Invoke::invoke((Array:4))
#12 [internal function](): civicrm_invoke("activity", "sms", "add")
#13 /var/www/fokalgrants/includes/menu.inc(517): call_user_func_array("civicrm_invoke", (Array:3))
#14 /var/www/fokalgrants/index.php(21): menu_execute_active_handler()
#15 {main}


Nov 23 11:38:39  [info] $Fatal Error Details = Array
(
    [message] =>
    [code] =>
)


Nov 23 11:38:39  [info] $backTrace = #0 /var/www/fokalgrants/sites/all/modules/civicrm/CRM/Core/Error.php(312): CRM_Core_Error::backtrace("backTrace", TRUE)
#1 /var/www/fokalgrants/sites/all/modules/civicrm/CRM/Utils/Token.php(943): CRM_Core_Error::fatal()
#2 /var/www/fokalgrants/sites/all/modules/civicrm/CRM/Contact/Form/Task/SMSCommon.php(187): CRM_Utils_Token::getTokenDetails((Array:0), (Array:5), FALSE, FALSE)
#3 /var/www/fokalgrants/sites/all/modules/civicrm/CRM/Contact/Form/Task/SMS.php(87): CRM_Contact_Form_Task_SMSCommon::buildQuickForm(Object(CRM_Contact_Form_Task_SMS))
#4 /var/www/fokalgrants/sites/all/modules/civicrm/CRM/Core/Form.php(350): CRM_Contact_Form_Task_SMS->buildQuickForm()
#5 /var/www/fokalgrants/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Display.php(93): CRM_Core_Form->buildForm()
#6 /var/www/fokalgrants/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Display->perform(Object(CRM_Contact_Form_Task_SMS), "display")
#7 /var/www/fokalgrants/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Contact_Form_Task_SMS), "display")
#8 /var/www/fokalgrants/sites/all/modules/civicrm/CRM/Core/Controller.php(289): HTML_QuickForm_Page->handle("display")
#9 /var/www/fokalgrants/sites/all/modules/civicrm/CRM/Utils/Wrapper.php(115): CRM_Core_Controller->run()
#10 /var/www/fokalgrants/sites/all/modules/civicrm/CRM/Core/Invoke.php(186): CRM_Utils_Wrapper->run("CRM_Contact_Form_Task_SMS", "Activities", (Array:1))
#11 /var/www/fokalgrants/sites/all/modules/civicrm/drupal/civicrm.module(500): CRM_Core_Invoke::invoke((Array:4))
#12 [internal function](): civicrm_invoke("activity", "sms", "add")
#13 /var/www/fokalgrants/includes/menu.inc(517): call_user_func_array("civicrm_invoke", (Array:3))
#14 /var/www/fokalgrants/index.php(21): menu_execute_active_handler()
#15 {main}


Nov 23 12:05:06  [info] $Fatal Error Details = Array
(
    [message] =>
    [code] =>
)


Nov 23 12:05:06  [info] $backTrace = #0 /var/www/fokalgrants/sites/all/modules/civicrm/CRM/Core/Error.php(312): CRM_Core_Error::backtrace("backTrace", TRUE)
#1 /var/www/fokalgrants/sites/all/modules/civicrm/CRM/Utils/Token.php(943): CRM_Core_Error::fatal()
#2 /var/www/fokalgrants/sites/all/modules/civicrm/CRM/Contact/Form/Task/SMSCommon.php(187): CRM_Utils_Token::getTokenDetails((Array:0), (Array:5), FALSE, FALSE)
#3 /var/www/fokalgrants/sites/all/modules/civicrm/CRM/Contact/Form/Task/SMS.php(87): CRM_Contact_Form_Task_SMSCommon::buildQuickForm(Object(CRM_Contact_Form_Task_SMS))
#4 /var/www/fokalgrants/sites/all/modules/civicrm/CRM/Core/Form.php(350): CRM_Contact_Form_Task_SMS->buildQuickForm()
#5 /var/www/fokalgrants/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Display.php(93): CRM_Core_Form->buildForm()
#6 /var/www/fokalgrants/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Display->perform(Object(CRM_Contact_Form_Task_SMS), "display")
#7 /var/www/fokalgrants/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Contact_Form_Task_SMS), "display")
#8 /var/www/fokalgrants/sites/all/modules/civicrm/CRM/Core/Controller.php(289): HTML_QuickForm_Page->handle("display")
#9 /var/www/fokalgrants/sites/all/modules/civicrm/CRM/Utils/Wrapper.php(115): CRM_Core_Controller->run()
#10 /var/www/fokalgrants/sites/all/modules/civicrm/CRM/Core/Invoke.php(186): CRM_Utils_Wrapper->run("CRM_Contact_Form_Task_SMS", "Activities", (Array:1))
#11 /var/www/fokalgrants/sites/all/modules/civicrm/drupal/civicrm.module(500): CRM_Core_Invoke::invoke((Array:4))
#12 [internal function](): civicrm_invoke("activity", "sms", "add")
#13 /var/www/fokalgrants/includes/menu.inc(517): call_user_func_array("civicrm_invoke", (Array:3))
#14 /var/www/fokalgrants/index.php(21): menu_execute_active_handler()
#15 {main}


Nov 23 12:05:10  [info] $Fatal Error Details = Array
(
    [message] =>
    [code] =>
)


Nov 23 12:05:10  [info] $backTrace = #0 /var/www/fokalgrants/sites/all/modules/civicrm/CRM/Core/Error.php(312): CRM_Core_Error::backtrace("backTrace", TRUE)
#1 /var/www/fokalgrants/sites/all/modules/civicrm/CRM/Utils/Token.php(943): CRM_Core_Error::fatal()
#2 /var/www/fokalgrants/sites/all/modules/civicrm/CRM/Contact/Form/Task/SMSCommon.php(187): CRM_Utils_Token::getTokenDetails((Array:0), (Array:5), FALSE, FALSE)
#3 /var/www/fokalgrants/sites/all/modules/civicrm/CRM/Contact/Form/Task/SMS.php(87): CRM_Contact_Form_Task_SMSCommon::buildQuickForm(Object(CRM_Contact_Form_Task_SMS))
#4 /var/www/fokalgrants/sites/all/modules/civicrm/CRM/Core/Form.php(350): CRM_Contact_Form_Task_SMS->buildQuickForm()
#5 /var/www/fokalgrants/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Display.php(93): CRM_Core_Form->buildForm()
#6 /var/www/fokalgrants/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Display->perform(Object(CRM_Contact_Form_Task_SMS), "display")
#7 /var/www/fokalgrants/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Contact_Form_Task_SMS), "display")
#8 /var/www/fokalgrants/sites/all/modules/civicrm/CRM/Core/Controller.php(289): HTML_QuickForm_Page->handle("display")
#9 /var/www/fokalgrants/sites/all/modules/civicrm/CRM/Utils/Wrapper.php(115): CRM_Core_Controller->run()
#10 /var/www/fokalgrants/sites/all/modules/civicrm/CRM/Core/Invoke.php(186): CRM_Utils_Wrapper->run("CRM_Contact_Form_Task_SMS", "Activities", (Array:1))
#11 /var/www/fokalgrants/sites/all/modules/civicrm/drupal/civicrm.module(500): CRM_Core_Invoke::invoke((Array:4))
#12 [internal function](): civicrm_invoke("activity", "sms", "add")
#13 /var/www/fokalgrants/includes/menu.inc(517): call_user_func_array("civicrm_invoke", (Array:3))
#14 /var/www/fokalgrants/index.php(21): menu_execute_active_handler()
#15 {main}

LeslieRD

  • I’m new here
  • *
  • Posts: 6
  • Karma: 1
  • CiviCRM version: 4..2
  • CMS version: Drupal 7
  • MySQL version: 5.X
  • PHP version: 5.X
Re: Unable to send SMS to contact
November 23, 2012, 12:03:26 pm
Thank You very Much I've understood the apache log, so I've went to the clickatel.php file , saw the function and decided to install php-curl and it works thak you very much
 ;D

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Unable to send SMS to contact

This forum was archived on 2017-11-26.