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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • If language is Dutch, and anonymous user clicks Cancel on form, then error
Pages: [1]

Author Topic: If language is Dutch, and anonymous user clicks Cancel on form, then error  (Read 1045 times)

Stijn

  • I’m new here
  • *
  • Posts: 11
  • Karma: 1
If language is Dutch, and anonymous user clicks Cancel on form, then error
November 13, 2009, 08:04:27 am
I've created a form where anonymous users get directed to by a personalized newsletter. The form has profile ID 1.
I've configured both a 'redirect URL' and a 'Cancel redirect URL' (both happen to be just simple drupal nodes)
Everything works fine when the default language is set to English, changes get saved, clicking Save and Cancel works appropriately; users get redirected to the proper pages.

However, if the default language is set to Dutch then clicking the 'Cancel' button gives the following error:

"Could not find valid value for gid"

The URL in the adress bar displays: "http://www.mydomain.nl/cms/nl/civicrm/profile?reset=1"    (with no uid or checksum)

Can somebody provide some guidance in solving this issue? I want the users to go to the proper Cancel Redirect URL, no matter what the default language is. Setting the default language permanently to English is no good solution for my users.
Thanks in advance for any effort.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: If language is Dutch, and anonymous user clicks Cancel on form, then error
November 13, 2009, 08:27:07 am

whats the url it returns to when the language is english?

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Stijn

  • I’m new here
  • *
  • Posts: 11
  • Karma: 1
Re: If language is Dutch, and anonymous user clicks Cancel on form, then error
November 13, 2009, 08:51:04 am
Thanks for the quick reply.

Quote from: Donald Lobo on November 13, 2009, 08:27:07 am
whats the url it returns to when the language is english?

If the default language is set to "English (USA)" then clicking the Cancel button in the form redirects the user to the 'Cancel Redirect URL' as specified in the Profile Settings/Advanced settings. In my example this is: "http://www.mydomain.nl/cms/node/7". This works fine.

If the default language is set to Dutch ("Nederlands") then clicking the Cancel button in the form redirects the user to "http://www.mydomain.nl/cms/nl/civicrm/profile?reset=1" and displays the above mentioned error message.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: If language is Dutch, and anonymous user clicks Cancel on form, then error
November 13, 2009, 09:32:31 am

what are the profile urls for the english and dutch version?

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Stijn

  • I’m new here
  • *
  • Posts: 11
  • Karma: 1
Re: If language is Dutch, and anonymous user clicks Cancel on form, then error
November 13, 2009, 10:03:46 am
They are identical for both languages:

Dutch:
http://www.mydomain.nl/cms/nl/civicrm/profile/edit?reset=1&gid=1&id=111&cs=***contact-checksum***

English (USA):
http://www.mydomain.nl/cms/nl/civicrm/profile/edit?reset=1&gid=1&id=111&cs=***contact-checksum***

(Maybe I've understood wrong, but this is the URL as is provided in the newsletter I've created. (http://www.mydomain.nl/cms/nl/civicrm/profile/edit?reset=1&gid=1&id={contact.contact_id}&{contact.checksum}) So I think it's not dependent on the default language setting)

Because of your question I've changed the URL in the browser to:
http://www.mydomain.nl/cms/civicrm/profile/edit?reset=1&gid=1&id=111&cs=***contact-checksum***    (so I left out 'nl') and clicked Cancel.
To no avail; I get redirected to (if language=Dutch):
http://www.mydomain.nl/cms/nl/civicrm/profile?reset=1
If language=English and I paste the adjusted URL then clicking Cancel leads to the correct redirect (http://www.mydomain.nl/cms/node/7)
« Last Edit: November 14, 2009, 04:08:34 am by Stijn »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • If language is Dutch, and anonymous user clicks Cancel on form, then error

This forum was archived on 2017-11-26.