Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

White screen of death on survey completion

  • DB1324
  • DB1324's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 8 months ago #171674 by DB1324
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 :)
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 8 months ago #171679 by Joffm
Replied by Joffm on 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
The topic has been locked.
  • DB1324
  • DB1324's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 8 months ago #171682 by DB1324
Replied by DB1324 on 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
The topic has been locked.
More
5 years 8 months ago #171715 by jelo
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.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The following user(s) said Thank You: DB1324
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 8 months ago #171720 by DenisChenu
Replied by DenisChenu on 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 , plugin development .
I don't answer to private message.
The following user(s) said Thank You: DB1324
The topic has been locked.
  • DB1324
  • DB1324's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 8 months ago #171880 by DB1324
Replied by DB1324 on 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.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 8 months ago #171881 by DenisChenu
Replied by DenisChenu on 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 , plugin development .
I don't answer to private message.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 8 months ago - 5 years 8 months ago #171882 by tpartner
Replied by tpartner on 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: 5 years 8 months ago by tpartner.
The topic has been locked.
  • DB1324
  • DB1324's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 7 months ago #173775 by DB1324
Replied by DB1324 on 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!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose