White screen of death on survey completion

More
4 months 2 weeks ago #171674 by DB1324
DB1324 created the topic: White screen of death on survey completion
Hi there,


We are running Version 2.65.1+170522


I have created a survey and when participants submit their answers on the last page, an error seems to occur because rather than seeing the end message, they get a white screen of death. When I inspect this page, I see the following:

Uncaught ReferenceError: setJsVar is not defined


Has anyone come across this before?


I have lots of surveys up and running which work fine indicating it's something specific to this particular questionnaire, but I'm not a code expert and can't seem to fix this.

Any help much appreciated.

Thanks :)

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks ago #171679 by Joffm
Joffm replied the topic: White screen of death on survey completion
Hi,

if it seems to be specific to this questionnaire you should provide it (*.lss), so we can inspect and hopefully find the error.

Best regards
Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks ago #171682 by DB1324
DB1324 replied the topic: White screen of death on survey completion
Hello,

I'm not sure that I can share that file without authorisation. I was hoping the error message might be familiar to someone, but I understand if this isn't enough information to work from; back to the old trial and error.


I did find mention of this same error in another post , but my French isn't good enough to understand it..!

Thanks

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks ago #171715 by jelo
jelo replied the topic: White screen of death on survey completion
The function "setJsVar" tries to get all globally used variables.
It ensures that all JavaScript variables are set before rendering the page.

Was the survey created from scratch? Or a copy from the current LS installation? Or from a different LS installation?

Depending on the structure and length of the surveyfile, I would remove parts and check if the issue vanishes. Any question with RegExpressions?
First copy the survey and activate again. Same issue?
Then copy the survey again.
Removing all questions except one. Same issue?
If no, then use a new copy and remove parts to find the issue.
If yes, remove last question and add a question. If it still is buggy, you might need to create a new survey and start importing questions.

Are you a student conducting a survey? If yes, tell me why you use LimeSurvey?
www.limesurvey.org/forum/development/116...y-you-use-limesurvey
The following user(s) said Thank You: DB1324

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks ago #171720 by DenisChenu
DenisChenu replied the topic: White screen of death on survey completion
SetJsVar is send even if Survey broke somewhere else.

Maybe another issue elsewhere and page are broken.

1: set template to Vanilla
2: activate debug mode
3: Test again

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 .
The following user(s) said Thank You: DB1324

Please Log in or Create an account to join the conversation.

More
4 months 1 week ago #171880 by DB1324
DB1324 replied the topic: White screen of death on survey completion
Thanks everyone for the guidance.

I rebuilt the survey question by question, and (naturally) the problem was with the final question:

'Date completed'
- Defaulting to today , always hidden

If I take off 'always hide this question', the survey works.

If I keep the question hidden, but take out the default, the survey works.

Please Log in or Create an account to join the conversation.

More
4 months 1 week ago #171881 by DenisChenu
DenisChenu replied the topic: White screen of death on survey completion
Are you on the last version ?

Quick fix : use a short text question (finally you have same value). What default value you use : this one : www.limesurvey.org/forum/design-issues/9...date-question#110101 ?
If you are on 3.12 or 13 : please report the issue (we must accept bad value and fix it transparently)

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 .

Please Log in or Create an account to join the conversation.

More
4 months 1 week ago - 4 months 1 week ago #171882 by tpartner
tpartner replied the topic: White screen of death on survey completion
Try hiding the question by assigning a CSS class "hidden".

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 4 months 1 week ago by tpartner.

Please Log in or Create an account to join the conversation.

More
3 months 7 hours ago #173775 by DB1324
DB1324 replied the topic: White screen of death on survey completion
Thank you all for your help.

DenisChenu, I have gone with your solution and it works brilliantly.

We are not on the latest version, and sadly have little scope to change that at the moment.

Thanks again everyone!

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!