Welcome, Guest
Username: Password: Remember me

TOPIC: SURVEYURL is not correct on registration mail

SURVEYURL is not correct on registration mail 1 year 7 months ago #89269

  • Zedas
  • Zedas's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 7
  • Karma: 1
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: 1 year 7 months ago by Zedas. Reason: forget to add info
The administrator has disabled public write access.

Re: SURVEYURL is not correct on registration mail 1 year 7 months ago #89273

  • c_schmitz
  • c_schmitz's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 744
  • Thank you received: 99
  • Karma: 87
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.
Support us, too. Donate to the LimeSurvey project and help keep us going!
The administrator has disabled public write access.
The following user(s) said Thank You: Zedas

Aw: SURVEYURL is not correct on registration mail 1 year 7 months ago #89275

  • jelo
  • jelo's Avatar
  • OFFLINE
  • Platinum Lime
  • Posts: 467
  • Thank you received: 52
  • Karma: 16
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 administrator has disabled public write access.
The following user(s) said Thank You: Zedas

Re: SURVEYURL is not correct on registration mail 1 year 7 months ago #89332

  • Zedas
  • Zedas's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 7
  • Karma: 1
@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
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.155 seconds
Donation Image