Welcome to the LimeSurvey Community Forum

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

Panel Integrations and lastpage set to -1

  • aellison9
  • aellison9's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 4 months ago #176190 by aellison9
Hi Everyone.

We are currently running the current version of LS.
$config = '3.14.11';
$config = 355;
$config = '180926';
$config = true;
$config = '30059';

We have a survey which utilizes the Panel Integration capabilities to capture variables passed in via the query string. In our case, the parameter is named "segment" and it is mapped to a hidden question.

The issue we are encountering is the Welcome Page is not displayed correctly in situations where a participant clicks the survey link, lands on the Welcome Page, chooses not to take the survey at this time, and clicks the link later to return to complete the survey.

We believe the issue is related to a record being written to the "survey_####### " table to store the query string parameter and setting the "lastpage" equal to -1.

When the participant returns later, they receive a window with a negative (-200%) progress number and no welcome text. We tried dropping the Welcome Page and using text on a survey page but still continue to encounter the issue.

Steps to reproduce:
1) setup survey
2) create dummy tokens and activate survey
3) construct survey URL which includes segment and token query string variables
Code:
http://localhost:8080/index.php?r=survey/index&sid=648628&lang=en&segment=0&token=LFHiCzwkJr9LojB
4) open constructed link in Incognito window
5) Land on first page but take no further action
6) Close Incognito window
7) Open new Incognito Window with same constructed URL

You should see a screen similar to the screenshot labeled "no welcome message" which is attached.

I've attached screenshots as well as sample surveys which should allow for reproduction of the issue. 648628 utilizes the normal welcome page and 639921 attempts to shift the Welcome message to a text block within a Question Group.

The issue seems to reside with the DB record written to store the Panel Integration variable which notes the "lastpage" with a value of -1. Based upon the PHP and progress_bar.twig debugging performed, the -1 causes issues with the progress calculation and the rendering of the "first page".

With debug=1, there is a PHP warning displayed but it seems to occur upstream of the actual issue. Screenshots attached just in case.

Any thoughts or suggestions would be welcomed.

Thanks in advance.
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 4 months ago #176196 by tpartner
Replied by tpartner on topic Panel Integrations and lastpage set to -1
I can reproduce the problem in version 3.15.1. Please file a bug report.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • aellison9
  • aellison9's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 4 months ago #176238 by aellison9
Replied by aellison9 on topic Panel Integrations and lastpage set to -1
Thank you. Bug submitted.
bugs.limesurvey.org/view.php?id=14204
The following user(s) said Thank You: DenisChenu, tpartner
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose