- Beiträge: 31
- Dank erhalten: 1
Generating Tokens
- terryaulenbach
-
Autor
- Offline
- Junior Lime
-
This is likely a bug, but I'll ask here first in case I'm missing something obvious.
I initiated the participant table and then tried to generate tokens. I've tried this with 2 different surveys with the same result.
I get a similar message depending on how many participants are in the table:
Create tokens
Only 0 tokens have been created.Need 2 tokens.
I'm not sure what I could be missing.
Terry
Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.
If you just clicked "Generate tokens" you might have forgotten to add participants first.terryaulenbach schrieb: I initiated the participant table and then tried to generate tokens.
If you don't want to import or add participants, but just need a few tokens you can use "Create dummy participants".
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.
- terryaulenbach
-
Autor
- Offline
- Junior Lime
-
- Beiträge: 31
- Dank erhalten: 1
Terry
Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.
I cannot reproduce the issue there. Added participant and let LimeSurvey generate a token.
No issues.
So I cannot confirm a common issue with 3.14.7 and generating tokens.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.
- terryaulenbach
-
Autor
- Offline
- Junior Lime
-
- Beiträge: 31
- Dank erhalten: 1
500: Internal Server Error
Something is wrong with your random generator.
An internal error occurred while the Web server was processing your request.
Please contact Administrator to report this problem.
Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.
- DenisChenu
-
- Offline
- LimeSurvey Community Team
-
- Beiträge: 10482
- Karma: 408
- Dank erhalten: 1854
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.
- terryaulenbach
-
Autor
- Offline
- Junior Lime
-
- Beiträge: 31
- Dank erhalten: 1
Terry
Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.
- DenisChenu
-
- Offline
- LimeSurvey Community Team
-
- Beiträge: 10482
- Karma: 408
- Dank erhalten: 1854
Activate debug mode, save phpinfo file, get all information from your server and report a complete issue.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.
- terryaulenbach
-
Autor
- Offline
- Junior Lime
-
- Beiträge: 31
- Dank erhalten: 1
Attached is the error page that comes up. The problem seems to centre around LSYii generating the tokens.
Terry
Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.
Leave the version empty. They are a bit late updating the version drop down listterryaulenbach schrieb: I tried to submit a bug report, but there's no option for selecting 3.14x.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.
- DenisChenu
-
- Offline
- LimeSurvey Community Team
-
- Beiträge: 10482
- Karma: 408
- Dank erhalten: 1854
+1jelo schrieb:
Leave the version empty. They are a bit late updating the version drop down listterryaulenbach schrieb: I tried to submit a bug report, but there's no option for selecting 3.14x.

And send directly the saved html file, no need a pdf export.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.
I'm experiencing the same problem on Version 3.14.10+180924 with PHP 7.2.10 on IIS10 via Fast Cgi and MSSQL via driver php_pdo_sqlsrv_72_nts_x64.dll
Viewing Survey participants and using the menu (Create dummy participants) as the original ops screen grab, I get the same error. If I switch the value to zero for number of participants I get a success message but obviously no tokens are created.
Any value above 0 shows the error however it does create a single blank participant if there are no empty token records. Clicking the Generate Tokens button and confirming "yes" returns "Created Tokens Only 0 tokens have been created.Need 1 token."
I can manually edit the participants but it is just not viable as we currently use LimeSurveys v1 and generate tokens for a survey which are then used to store against our own participant records. Currently this issue is stopping us from moving to the new version which we would really like to do

I am new to Lime Surveys really so I have no idea how to report the error to you however it does not log anything in iis, php or sys.event logs which is frustrating and my php is set to error_reporting = E_ALL and display_errors is on.
Any help appreciated.
Thanks
Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.
combitz schrieb: I'm experiencing the same problem on Version 3.14.10+180924 with PHP 7.2.10 on IIS10 via Fast Cgi and MSSQL via driver php_pdo_sqlsrv_72_nts_x64.dll
Recommendation for LimeSurvey 3.X under PHP 7.2 for Windows is to activate OpenSSL extension.
Check php.ini for php_openssl.dll . If that extension is not loaded, LimeSurvey won't be able to generate tokens.
PHP 7.2. removed mcrypt, which was used by LimeSurvey when OpenSSL is not available.
The bugticket is available here:
bugs.limesurvey.org/view.php?id=14055
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

I've not found a proper solution yet but the problem looks to be "application\models\Token.php"
public static function generateRandomToken($iTokenLength)
{
return str_replace(array('~', '_'), array('a', 'z'), Yii::app()->securityManager->generateRandomString($iTokenLength));
}
This is failing (not sure why yet) but replacing the code with another random string generator allows it to work fine and I get tokens so I'll try to look into Yii more as I've never used that framework.
Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.
Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.