Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

"This is a controlled survey" error when linking from automated email

  • ttenbergen
  • ttenbergen's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 3 weeks ago #131156 by ttenbergen
We have a series of surveys that require tokens to access. One goes out about weekly to the same list of participants. Participants are receiving the invite email and filling out surveys at the expected rate, so this is working for the majority. However, one participant gets the following error upon clicking the link in the email:
"This is a controlled survey. You need a valid token to participate. We are sorry but you are not allowed to enter this survey. For further information please contact ..."
I initially suspected user error on this, but visited the participant and he was able to demonstrate the problem.

I sent an invite to the survey to myself and do not see this error message.


Any ideas why this might be and how to fix?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
9 years 3 weeks ago #131158 by DenisChenu
The URL seems strange %7E %3C seems to be added by the mail user agent.

You can search his token in token table and fix (if needed).

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The following user(s) said Thank You: ttenbergen
The topic has been locked.
  • ttenbergen
  • ttenbergen's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 3 weeks ago #131159 by ttenbergen
Thanks DenisChenu, I missed that the URL is odd.

I compared how his link looks to how mine looks on a test survey.
For mine,
P93iAFq2EMl8EUh actual token
P93iAFq2EMl8EUh&lang=en is URL

For his,
DYU8kztXk9E~ohA his actual token
DYU8kztXk9E%7EohA%C3=en on the URL

So, for him something changes the URL starting at the tilde ~, but last week's survey didn't have a tilde in the token, so I wonder if the actual difference has to do with the language tag that gets mangled. There was some reference to that elsewhere.

Sending him a manually corrected token would fix the issue for this survey, but it would have to be done each time. What is the mail user agent? Why would it change a URL? Thanks!
The topic has been locked.
  • ttenbergen
  • ttenbergen's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 3 weeks ago #131167 by ttenbergen
Just had a look at the email that was received, and DenisChenu is right: it shows like this
Click on the following link to complete the survey:
www.xxxxxx.ca/limesurvey/index.php/82234...JnnIxxHVcwu7&lang=en
< www.xxxxxx.ca/limesurvey/index.php/822345?token=ttrJnnIxxHVcwu7 <=en>

Problem is, it seems to do so consistently for this participant.
I am now looking into whether we have any other email addresses at his domain on our list.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
9 years 3 weeks ago #131169 by DenisChenu
Hi ttenbergen, in fcat : we update the token generator to use Yii. ~ is OK in url.

Actually ~ updated to %7E and &lang= updated to %C3

It's the mail user agent here ....

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
  • ttenbergen
  • ttenbergen's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 3 weeks ago #131272 by ttenbergen
This is in 2.06, so no Yii yet. Maybe that's what you meant...

We seem to have emails go wrong consistently to this participant, they were changed similarly. I have now convinced him to use his personal address and that works. Will be interesting to see if there end up being other entries in this post of people with similar problems.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
9 years 3 weeks ago #131276 by DenisChenu
Upated in last time of 2.06 , not in 2.5.

This allow ~ : maybe this one must be removed.
Did you have some information on the user email ?
- User email agent (thunderbird etc .. ) for example : same for personnal account or professional account ?
Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
  • ttenbergen
  • ttenbergen's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 3 weeks ago #131279 by ttenbergen
The email address that is not working is a research institute's address. When I saw him log in it looked like an outlook web mail, but I am not certain.
The address that worked was a gmail one.
What allows -? I don't really want to post the address here publicly, but it did not have any characters other than letters.
The topic has been locked.
Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose