Good day,
My survey is on-premise hosted. When someone tries to register to obtain a token, the error 500 - Failed to create unique access code in 50 attempts appears. I have increased the if $count > 50 to a greater number in Tokens.php, but his does not solve the problem.
Any ideas?
First of all, it is always important to mention the LS version. There are about 3-5 different major versions still in use and the problem can highly depend on the version, of course. If the helpers in the forum know the version they can try to reproduce your error, if a reasonable version of Limesurvey was used (nothing too old).
Help us to help you!
Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
I was running 4.2.x. after the Token.php file modification did not seem to resolve the problem, I upgraded to the latest 4.3.2.
Issue was still there.
I changed the token length to 20, and it appears the problem has gone away. The original setting was 15 inherit.
I will keep a close eye on it.