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 CiviCampaign (Moderators: Kiran Jagtap, xavier) »
  • 3.4.0 petition confirmation email contains dodgy activation URL
Pages: [1]

Author Topic: 3.4.0 petition confirmation email contains dodgy activation URL  (Read 4033 times)

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
3.4.0 petition confirmation email contains dodgy activation URL
April 23, 2011, 11:48:38 pm
In 3.4.0, when I sign a petition as an anonymous user, the confirmation email contains a dodgy URL.

The tokens {$petition.confirmUrlPlainText} and {$petition.confirmUrl} both translate to https://example.com/civicrm/petition/confirm?reset=1&cid=&sid=&h=&a=127035&p=3

CiviCRM complains about "Missing Parameters" and I notice that cid, sid, and h are all empty

Ken
« Last Edit: April 25, 2011, 05:33:12 pm by ken »

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: 3.4.0 petition confirmation email contains dodgy activation URL
April 24, 2011, 02:04:18 am
Hi,

What's the configuration you have on your civicrm.settings for the host ? and on the resource urls page ?

(where are you using these tokens ? in the message template to confirm the signature I'm assuming ?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: 3.4.0 petition confirmation email contains dodgy activation URL
April 24, 2011, 06:32:51 pm
Xavier,

When I click on the link, CiviCRM complains about "Missing input parameters".

The problem is that 'cid', 'sid', and 'h' are not being set in the URL. To answer your questions, ...

In civicrm.settings.php ...
    define( 'CIVICRM_UF_BASEURL'      , 'https://example.com/' );

In Resouce URLs
    CiviCRM Resource URL: https://example.com/sites/all/modules/civicrm
    Image Upload URL: https://example.com/sites/default/files/civicrm/persist/contribute/
    Custom CiviCRM CSS URL: <blank>
    Force Secure URLs: Yes

These settings seem to be fine,

Ken
« Last Edit: April 25, 2011, 05:33:59 pm by ken »

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: 3.4.0 petition confirmation email contains dodgy activation URL
April 24, 2011, 11:08:18 pm
Quote from: ken on April 23, 2011, 11:48:38 pm
The tokens {$petition.confirmUrlPlainText} and {$petition.confirmUrl} both translate to https://___/civicrm/petition/confirm?reset=1&cid=&sid=&h=&a=127035&p=3


To clarify: is the domain name really missing or that's you that have removed it when posting? eg: is it http://example.org/civicrm/petition/confirm...

BTW, you can use example.com or example.org for your examples, they are reserved for that
http://tools.ietf.org/html/rfc2606
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: 3.4.0 petition confirmation email contains dodgy activation URL
April 25, 2011, 05:34:43 pm
I've edited my post and replies to say 'example.com'

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: 3.4.0 petition confirmation email contains dodgy activation URL
April 26, 2011, 06:18:55 am
Solved! Yet concerned!

The problem occurred because I had changed the group "Petition Contacts" so that it wasn't a "Public" group.

This is a potential problem to anyone who invites people to subscribe to their public groups, because now people can subscribe to "Petition Contacts". I expect that's going to be confusing!

Ken

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: 3.4.0 petition confirmation email contains dodgy activation URL
April 26, 2011, 07:25:50 am
Ahh, good catch.

For cost reasons, we re-used part of the existing "confirm you want to register to a public group" as a foundation of the "confirm you sign the petition".

I see your point, would be great if you could contribute untangling the two features.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

jday

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 6
  • CiviCRM version: 4.2
  • CMS version: 7.15
Re: 3.4.0 petition confirmation email contains dodgy activation URL
May 20, 2011, 05:28:09 am
I am getting swamped with emails from signers who say they never got the confirmation email, is there a way to resend those?

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: 3.4.0 petition confirmation email contains dodgy activation URL
May 21, 2011, 12:03:19 am
Hi,

I don't remember how looks the url,but if it's using only the checksum, you might write it directly using token and therefore simply send an email.

As for the feature per se, not yet, but would be useful indeed.

Could you work on it? The easiest is probably to add a mass action task on activity, so you can choose for instance all those signatures in status "schedule" (not confirmed) from 2 weeks ago and send them the confirmation link.


X+

-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

podfish

  • I’m new here
  • *
  • Posts: 11
  • Karma: 1
Re: 3.4.0 petition confirmation email contains dodgy activation URL
May 29, 2013, 03:37:30 pm
Confirming this is still the behavior for CiviCRM 4.3.  "Petition Contacts" must be a public group in order to allow a non-signed-in user to create the record properly and have Civi include the contact ID, user hash, and survey ID in the confirmation URL.

This solves the "Email address verified" page "Sorry but we are not able to provide this at the moment." "missing input parameters" issue in CiviCampaign Petition unregistered user confirmation.
« Last Edit: May 29, 2013, 07:04:28 pm by podfish »

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: 3.4.0 petition confirmation email contains dodgy activation URL
June 06, 2013, 04:08:02 am
@podfish,

I have a patch to fix the public-group-issue at http://forum.civicrm.org/index.php/topic,27952.msg119349.html#msg119349

Ken

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCampaign (Moderators: Kiran Jagtap, xavier) »
  • 3.4.0 petition confirmation email contains dodgy activation URL

This forum was archived on 2017-11-26.