Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: Maximum number of tokens generated from Web UI

Maximum number of tokens generated from Web UI 1 Jahr 4 Monate her #97005

  • vidiadakis
  • vidiadakiss Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 11
  • Karma: 0
Hello to all,

We are currently using version 2.00+ Build 130611 and we have a problem with the token generation. At first we imported 55.000 rows using 5 different .csv files but we ended up having a lot of duplicate tokens. We decided to delete the tokens by hand and then use the Generate Tokens functionality from the administrative interface, but only 32768 tokens were created and the rest were left NULL.

During all the above, we were using 15 characters length for the token size. We tried 16 (2048 tokens created), 17 (8192 tokens created), 7 (32768 tokens created) and a few others, but our top-limit has always been 32768 tokens. We also tested this on both 32bit and 64bit with the same behaviour. We also changed the php maximum_memory (in php.ini) from 128MB to 256MB, with no result.

Up until 1.92+ this was a known bug but it was fixed with a patch on that version. We also verified the patch is also implemented in the code of our version, as it should.

So, how can I create more that 32768 tokens from the administrative interface?

Is there a variable somewhere that enforces this limit? Can we override/change it?

Can I create them by hand using something like:

UPDATE lime_tokens_12345 SET token=UPPER(MD5(CONCAT(tid,firstname,lastname,email)));

or would it somehow influence tha funcionality of the survey (p.x. saving answers, printing them, and so on)?

Thank you in advance
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Maximum number of tokens generated from Web UI 1 Jahr 4 Monate her #97015

  • mdekker
  • mdekkers Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 341
  • Dank erhalten: 68
  • Karma: 38
I am not really sure where your problems is. I was able to create 43000 tokens without problem. Do you receive an error?

There is no problem when you create the tokens yourself as long as they are unique.
---
Menno Dekker
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Maximum number of tokens generated from Web UI 1 Jahr 4 Monate her #97016

  • mdekker
  • mdekkers Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 341
  • Dank erhalten: 68
  • Karma: 38
Btw, are you on a windows box? If so, could you try to modify the code a little to see if that solves your problem? In application\helpers\common_helper.php line 5308 and 5310 change the rand to mt_rand
---
Menno Dekker
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Maximum number of tokens generated from Web UI 1 Jahr 4 Monate her #97017

  • vidiadakis
  • vidiadakiss Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 11
  • Karma: 0
On a total of 55.000 entries in our lime_tokens table, if I issue a Generate Tokens, only 32768 tokens are generated/completed correctly and the rest are left NULL.

No error are received from the UI.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Maximum number of tokens generated from Web UI 1 Jahr 4 Monate her #97018

  • mdekker
  • mdekkers Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 341
  • Dank erhalten: 68
  • Karma: 38
I can replicate on windows xampp. The line numbers i mentioned are not correct it should be 5301 and 5303
---
Menno Dekker
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Maximum number of tokens generated from Web UI 1 Jahr 4 Monate her #97019

  • vidiadakis
  • vidiadakiss Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 11
  • Karma: 0
All the platforms we used for testing are Windows based (2003/32bit and 7/64bit).

Ok, I will try the code corrections and post an update.

Thank you!
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Maximum number of tokens generated from Web UI 1 Jahr 4 Monate her #97029

  • vidiadakis
  • vidiadakiss Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 11
  • Karma: 0
Just confirmed that after changing rand -> mt_rand, the token generation seems to work OK.

We were able to generate more than 90.000 unique tokens during a test.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.134 Sekunden
Donation Image