Welcome, Guest
Username: Password: Remember me

TOPIC: Persistence not working after migrate

Persistence not working after migrate 4 years 10 months ago #58300

  • vidiadakis
  • vidiadakis's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 11
  • Karma: 0
Hello to all,

I am quite new to LimeSurvey and I'm having some problems.

After migrate my installation to a different server, I can't get answer persistence to work. Appropriate settings are correct in the administration panel (Enable token-based answers persistence and NOT Anonymous survey) and there are proper tables/entries with tokens in the database.

Lime Survey version is 1.85RC3 (7008), PHP is 5.3.5 VC6 (thread safe), Apache is 2.2 and MySQL is 5.5.8. Could this be a platform incompatibility? Previous setup was PHP 5.2.0 and MySQL 5.0.something.

Thank you in advance
The administrator has disabled public write access.

Persistence not working after migrate 4 years 10 months ago #58307

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 8249
  • Thank you received: 1126
  • Karma: 336
vidiadakis wrote:
Lime Survey version is 1.85RC3 (7008), PHP is 5.3.5 VC6 (thread safe), Apache is 2.2 and MySQL is 5.5.8. Could this be a platform incompatibility? Previous setup was PHP 5.2.0 and MySQL 5.0.something.
Can(t you uupdate to last version ?
The administrator has disabled public write access.

Persistence not working after migrate 4 years 10 months ago #58321

  • vidiadakis
  • vidiadakis's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 11
  • Karma: 0
It's a bit diffcult rigth now, because the survey is already activated - there wasn't enough time to fully test it before going live.

Shouldn't it be working as is though?
The administrator has disabled public write access.

Persistence not working after migrate 4 years 10 months ago #58325

  • Mazi
  • Mazi's Avatar
  • Online
  • LimeSurvey Team
  • Posts: 5843
  • Thank you received: 348
  • Karma: 261
You should never use the RC (release candidate) version for production use because they might not be stable/bug free. I recommend to manually update to 1.85 stable or to the latest 1.90 stable version.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Persistence not working after migrate 4 years 10 months ago #58342

  • vidiadakis
  • vidiadakis's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 11
  • Karma: 0
Basically I'm stuck with this version now. Anyway, how can I verify the way persistence is or is not working? Is it javascript based or php based? I can't seem to identify the proper code segment to update the lime_survey_XXXXX table containing the answers after every reply of the user.
The administrator has disabled public write access.

Persistence not working after migrate 4 years 10 months ago #58593

  • vidiadakis
  • vidiadakis's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 11
  • Karma: 0
Bump!

So, we ended up installing the latest LS (1.90+) on a different directory for testing purposes and to try if persistence is working, but the results are the same.

Does by any chance the all-in-one option of our survey cause this behaviour? Are there any specific PHP extensions required for this to work?

Thanks in advance...
The administrator has disabled public write access.

Persistence not working after migrate 4 years 10 months ago #58597

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 8249
  • Thank you received: 1126
  • Karma: 336
vidiadakis wrote:
Does by any chance the all-in-one option of our survey cause this behaviour? Are there any specific PHP extensions required for this to work?
Answer of question are only fill when you submit the actual page. When you fill and don't submit, you don't send something to the server , then LimeSurvey can't remind the answer.

It can work with all-in-one, because in all-in-one you submit and close y=the survey.

If you want a semi all-in one :
Use a big group with all question, and a little group of confirlation (just a boiler plate : "when you click submit your answer was closed" or something like that )
The administrator has disabled public write access.

Persistence not working after migrate 4 years 10 months ago #58598

  • vidiadakis
  • vidiadakis's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 11
  • Karma: 0
But what you describe is not persistence... and I quote from the online documentation:
Enable token-based response persistence: If your survey uses tokens and is not anonymous, then you may want to enable this feature. If you turn this on, then an auto-save is performed each time a participant answers a question, meaning that even if he hasn't submitted the survey and his browser crashes, he will find his survey answers still in place when returns to the survey. This can be used for designing pre-filled surveys as well (see data entry and importVV facility when not finalizing answers).

Like a save button embedded on each answer.

Am I wrong?
The administrator has disabled public write access.

Persistence not working after migrate 4 years 10 months ago #58599

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 8249
  • Thank you received: 1126
  • Karma: 336
Difference between submit a survey and submit a page.

Like i say, LS is unable to do survey persistance if you don't submit something to the server.

In all in one , you can use it to prefill a survey with data entry.
The administrator has disabled public write access.

Persistence not working after migrate 4 years 10 months ago #58600

  • mdekker
  • mdekker's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 343
  • Thank you received: 68
  • Karma: 38
Ok that description might be a little misleading. It is a wiki so feel free to improve it :)

Basically the persistance means that each time you go to the next section (that can be question or group) the answers are saved. In all-in-one mode you can only submit a complete survey. The only thing persistance could do there is partially save when not all questions pass validation and submit throws you back to the survey. Not sure if that really works that way, but that is the only thing it can do for you in all-in-one mode.
---
Menno Dekker
The administrator has disabled public write access.

Persistence not working after migrate 4 years 10 months ago #58601

  • vidiadakis
  • vidiadakis's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 11
  • Karma: 0
I'm sorry, but I cant find any relevance between
submit a page

and
...even if he hasn't submitted the survey and his browser crashes

Does the above mean, that I have persistence only if I save/submit the page I am working on and then my browser crashes? Because this is what I understand from your saying until now, but it is totally different from what the online documentation states.
The administrator has disabled public write access.

Persistence not working after migrate 4 years 10 months ago #58602

  • mdekker
  • mdekker's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 343
  • Thank you received: 68
  • Karma: 38
I try to explain for question-by-question mode:

When i answer the first question, i click next and go the the next question. The browser does a submit. Now my first answer is saved. When I now leave the survey and come back the first answer is still there and I can continue with the second question. Without persistance I would have to start over again, as only the final 'submit survey' on the last question would save my answers.

For group-by-group mode this works only for complete groups of questions and for all-in-one mode there is only the final submit button so it is not going to help you a lot.

So in all-in-one mode there is no difference between submit a page and submit a survey, but for the other two survey modes there is a difference.
---
Menno Dekker
The administrator has disabled public write access.

Persistence not working after migrate 4 years 10 months ago #58603

  • vidiadakis
  • vidiadakis's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 11
  • Karma: 0
mdekker wrote:
Ok that description might be a little misleading. It is a wiki so feel free to improve it :)

Basically the persistance means that each time you go to the next section (that can be question or group) the answers are saved. In all-in-one mode you can only submit a complete survey. The only thing persistance could do there is partially save when not all questions pass validation and submit throws you back to the survey. Not sure if that really works that way, but that is the only thing it can do for you in all-in-one mode.

OK, this seems a bit more useful.

So basically, persistence as a procedure is semi-automatic in by-group surveys, using the next and previous options.

Could I use a Save button? Next to the submit one for example? I believe I saw such functionality but it required a username and password, different from the ones already used on the login page.
The administrator has disabled public write access.

Persistence not working after migrate 4 years 10 months ago #58604

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 8249
  • Thank you received: 1126
  • Karma: 336
vidiadakis wrote:
Could I use a Save button? Next to the submit one for example? I believe I saw such functionality but it required a username and password, different from the ones already used on the login page.
Like i say in 58597:
Use a big group with all question, and a little group of confirlation (just a boiler plate : "when you click submit your answer was closed" or something like that )


PS : Thanks mdekker for best explaination :)
The administrator has disabled public write access.

Persistence not working after migrate 4 years 10 months ago #58605

  • mdekker
  • mdekker's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 343
  • Thank you received: 68
  • Karma: 38
Not really sure how that works, probably the docs are accurate on that one. The user can pick his own details to store his result but he has to keep track of that so he can retrieve the answers later when he wants to continue.

When you already have a token, and use group or question mode the answer persistance feels more intuitive so I always disable saving.
---
Menno Dekker
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.284 seconds