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 »
  • Using CiviSMS »
  • "ERR: 107, Empty message" after upgrading Clickatell extension
Pages: [1]

Author Topic: "ERR: 107, Empty message" after upgrading Clickatell extension  (Read 889 times)

Barnacle

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 2
    • White Fuse Media
  • CiviCRM version: 4.4
  • CMS version: Drupal 7
  • MySQL version: 5.x
  • PHP version: 5.3
"ERR: 107, Empty message" after upgrading Clickatell extension
November 17, 2014, 08:35:00 am
Hi,

I just upgraded from 4.2.14 to 4.5.2 on Drupal 7. I have installed the new Clickatell extension and created a new SMS provider with the same user details.

But when I try to send an SMS I get the following error: "ERR: 107, Empty message"

The SMS is not empty. I have typed a bunch of stuff in to test it.

I've cleared the cache, checked that the 'resource URL' and 'extension directory' are in the correct location. What am I missing?

Any help would be greatly appreciated :)
--
http://whitefusemedia.com/

Barnacle

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 2
    • White Fuse Media
  • CiviCRM version: 4.4
  • CMS version: Drupal 7
  • MySQL version: 5.x
  • PHP version: 5.3
Fixed!
November 26, 2014, 08:47:38 am
For the record, I fixed this.

in the file CRM/Activity/BAO/Activity.php the sendSMS() function was collecting the wrong field name of the SMS message.

It should be "sms_text_message" but it was trying to retrieve "text_message" instead.

Code: [Select]
    $text = &$activityParams['text_message'];
    $html = &$activityParams['html_message'];
I changed this to:
Code: [Select]
    $text = &$activityParams['sms_text_message'];
    $html = &$activityParams['html_message'];

Because it had the wrong variable name, it was getting an empty result, and passing that on to Clickatell. Clickatell was quite correctly complaining that there was an empty message.

I have had to modify a core CiviCRM file to get this to work, so it should probably be considered a bug?
--
http://whitefusemedia.com/

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: "ERR: 107, Empty message" after upgrading Clickatell extension
December 01, 2014, 11:05:51 am
Yes please, probably. How come you upgraded to 4.5.2, not 4.5.4?

Before you submit the report, you might want to check the latest version and see what is happening in the code base there, and also to see if anyone else has reported / fixed this bug already.
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Barnacle

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 2
    • White Fuse Media
  • CiviCRM version: 4.4
  • CMS version: Drupal 7
  • MySQL version: 5.x
  • PHP version: 5.3
Re: "ERR: 107, Empty message" after upgrading Clickatell extension
December 02, 2014, 01:46:06 am
At the time that I upgraded, 4.5.2 was the latest. It took a couple of weeks before the problem was discovered.

I've just had a look at the code for 4.5.4 and the bug is still there. How/where do I submit a report?
--
http://whitefusemedia.com/

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: "ERR: 107, Empty message" after upgrading Clickatell extension
December 02, 2014, 02:08:09 am
Here you go: civicrm.org/bug-reporting
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Heather O.

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
  • CiviCRM version: 4.x.x
  • CMS version: Drupal 6 & 7
  • MySQL version: 5
  • PHP version: 5
Re: "ERR: 107, Empty message" after upgrading Clickatell extension
December 04, 2014, 06:52:39 am
Hi guys,

Just found this in 4.5.4 too. I've posted this on Jira: https://issues.civicrm.org/jira/browse/CRM-15686

Heather.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviSMS »
  • "ERR: 107, Empty message" after upgrading Clickatell extension

This forum was archived on 2017-11-26.