SURVEYURL is not correct on registration mail

More
4 years 8 months ago - 4 years 8 months ago #89269 by Zedas
Zedas created the topic: SURVEYURL is not correct on registration mail
Hi all

This is my first install of Limesurvey and i´m loving It :-)

I´ve created my first survey and EVERYthing is working pretty well except the link provided on the registration mail which always lead me to a Page not found error:

Page Not Found
Unable to resolve the request "988539/lang-pt-BR/tk-fcctgwsnsjacdee".

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.


I´m running the last stable branch 2.00 + and according to my backend version checker there is no a newer one to update.

The funny thing is that on a reminder email the link works pretty well.

Here follows the "wrong" link:

mkt.ceatt.com.br/pesquisa/index.php/9885...R/tk-fcctgwsnsjacdee

Here follows the correct link through the reminder email sent:
mkt.ceatt.com.br/pesquisa/index.php/surv...qw7vgi25f/lang/pt-BR

Any ideas, quick fix or ....?

Thank you;_)
Last Edit: 4 years 8 months ago by Zedas. Reason: forget to add info

Please Log in to join the conversation.

More
4 years 8 months ago #89273 by c_schmitz
c_schmitz replied the topic: SURVEYURL is not correct on registration mail
Actually the first one is a short form and is correct too.
I think the additional hyphen in pt-BR creates a problem


Open /application/config/routes.php
and replace the first two lines of code (17-18) with these ones:
$route['<_sid:\d+>/lang-<_lang:\w+[-\w]+>/tk-<_token:\w+>'] = "survey/index/sid/<_sid>/lang/<_lang>/token/<_token>"; //This one must be first
$route['<_sid:\d+>/lang-<_lang:\w+[-\w]+>'] = "survey/index/sid/<_sid>/lang/<_lang>";

Please check if that solves the problem.

Best regards

Carsten Schmitz
LimeSurvey project leader
The following user(s) said Thank You: Zedas

Please Log in to join the conversation.

More
4 years 8 months ago #89275 by jelo
jelo replied the topic: Aw: SURVEYURL is not correct on registration mail
Looks like a bug,since the reminder template is using the same {SURVEYURL} for generating the link.

I would create the tokenlinks with Excel and use a merge mailing with e.g Word to create emails if you need to start the survey soon.
The following user(s) said Thank You: Zedas

Please Log in to join the conversation.

More
4 years 8 months ago #89332 by Zedas
Zedas replied the topic: SURVEYURL is not correct on registration mail
@c_schmitz

Yeah \0/ The fix works on both cases: registration and reminder email.

@jelo
After this post I´ve found : bugs.limesurvey.org/view.php?id=6977

Thank you for your time

Please Log in to join the conversation.

Did you already participate in our customer survey?

Don't miss your chance for great prices.

Please click here to participate:

Start now

Start now!

Just create your account and start using Limesurvey today.

Register now