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 CiviMail (Moderator: Piotr Szotkowski) »
  • Checksum Token error "is not of the type Positive"
Pages: [1]

Author Topic: Checksum Token error "is not of the type Positive"  (Read 491 times)

TeNNoX

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 0
  • CiviCRM version: v4.4.x
  • CMS version: Drupal v7.x
  • MySQL version: newest
  • PHP version: PHP 5
Checksum Token error "is not of the type Positive"
August 19, 2014, 03:12:54 am
I wanted to create a link in a mailing for the receiver to edit his contact info.
The link looks like this:
Code: [Select]
http://10.0.0.2/crm/index.php?q=civicrm/profile/edit&reset=1&gid=N&{contact.checksum}&id={contact.contact_id}
The link in the mail looks like:
Code: [Select]
http://10.0.0.2/crm/index.php?q=civicrm/profile/edit&reset=1&gid=N&cs=e4b7e2659a4b36f4b8b527471f12da3e_1408442839_168&id=413
But when I click on the link in the mail, I get this error:
Code: [Select]
http://i.gyazo.com/8c96438a8dceee058a5bec0b895563b1.png
What have I done wrong?

joanne

  • Administrator
  • Ask me questions
  • *****
  • Posts: 852
  • Karma: 83
  • CiviCRM version: 4.4.16
  • CMS version: Drupal 7
Re: Checksum Token error "is not of the type Positive"
August 19, 2014, 03:45:15 am
in your link you have gid=N

You need to replace N with the id of the profile you are using.

TeNNoX

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 0
  • CiviCRM version: v4.4.x
  • CMS version: Drupal v7.x
  • MySQL version: newest
  • PHP version: PHP 5
Re: Checksum Token error "is not of the type Positive"
August 19, 2014, 03:56:19 am
Oh yes, forgot that, thanks!

But now I get this error:
The requested profile (gid=419) is inactive or does not exist

The new link looks like:
http://10.0.0.2/crm/index.php?q=civicrm/profile/edit&reset=1&gid={contact.contact_id}&{contact.checksum}&id={contact.contact_id}

What ID should I use then?

joanne

  • Administrator
  • Ask me questions
  • *****
  • Posts: 852
  • Karma: 83
  • CiviCRM version: 4.4.16
  • CMS version: Drupal 7
Re: Checksum Token error "is not of the type Positive"
August 19, 2014, 06:01:13 am
N id the id of the profile where they edit their information.

eg looking at http://drupal.demo.civicrm.org/civicrm/admin/uf/group?reset=1 , if you want them to edit their name and address that is profile  gid= 1.

so you would need:

http://10.0.0.2/crm/index.php?q=civicrm/profile/edit&reset=1&gid=1&{contact.checksum}&id={contact.contact_id}

TeNNoX

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 0
  • CiviCRM version: v4.4.x
  • CMS version: Drupal v7.x
  • MySQL version: newest
  • PHP version: PHP 5
Re: Checksum Token error "is not of the type Positive"
August 19, 2014, 08:18:18 am
Quote from: joanne on August 19, 2014, 06:01:13 am
N id the id of the profile where they edit their information.

eg looking at http://drupal.demo.civicrm.org/civicrm/admin/uf/group?reset=1 , if you want them to edit their name and address that is profile  gid= 1.

so you would need:

http://10.0.0.2/crm/index.php?q=civicrm/profile/edit&reset=1&gid=1&{contact.checksum}&id={contact.contact_id}

That works!
Perfect :)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Checksum Token error "is not of the type Positive"

This forum was archived on 2017-11-26.