View Issue Details

IDProjectCategoryView StatusLast Update
15494Bug reports[All Projects] _ Unknownpublic2019-11-28 14:51
Reportercberghoff Assigned Tocdorin  
PrioritynoneSeveritymajor 
Status assignedResolutionopen 
Product Version3.19.2 
Target VersionFixed in Version 
Summary15494: Survey won't save with PASSTHRU variable
Description

My survey will not save when attempting to use PASSTHRU in the End URL field.

TagsNo tags attached.
Complete LimeSurvey version number (& build)Version 3.19.3+191023
I will donate to the project if issue is resolvedNo
Browserfirefox/safari/chrome
Database & DB-VersionMySQL 5.6.41-84.1
Server OS (if known)linux
Webserver software & version (if known)apache 2.4.39
PHP Version7.0

Activities

cdorin

cdorin

2019-11-03 18:06

manager   ~54366

Hey there! Could you please submit an .lss file?

cberghoff

cberghoff

2019-11-04 15:16

reporter   ~54391

I'm trying to passthru the id parameter.



limesurvey_survey_986415.lss (287,742 bytes)
cberghoff

cberghoff

2019-11-27 18:25

reporter   ~54842

Any update on this? My study just got IRB approval, but I still can't integrate with our Sona Systems because our survey won't save when we have a passthru variable in the End URL.

cdorin

cdorin

2019-11-27 18:28

manager   ~54843

I am checking now.

You can also ping me on IRC if you are on now :) , @cberghoff .

cdorin

cdorin

2019-11-27 18:29

manager   ~54844

is Ajax turned off? (theme settings)

cdorin

cdorin

2019-11-27 18:33

manager   ~54845

Ok, it seems not to be a bug. The parameters are incorrectly set. for ID I have NULL. You are also using {consent}, but I do not see any parameter related to it.

Please check the manual for more on the usage of parameters: https://manual.limesurvey.org/Panel_integration .

For further help on survey design, try the forum as well: limesurvey.org/forum .

cberghoff

cberghoff

2019-11-27 18:35

reporter   ~54846

The current End URL was one that saved as a temp placeholder. When I try to use a passthru variable, it won't save. The save gear icon just spins. Try this sample URL from Sona...

https://yourschool.sona-systems.com/webstudy_credit.aspx?experiment_id=123&credit_token=4e48f9b638a&survey_code={PASSTHRU:id}

cdorin

cdorin

2019-11-27 18:42

manager   ~54847

In panel integration, you have parameter id which does not target any question (at least in the provided .lss)

cberghoff

cberghoff

2019-11-27 18:43

reporter   ~54848

That is a URL provided parameter that I don't want in the dataset, I just want to passthru at the end.

jelo

jelo

2019-11-28 00:16

partner   ~54849

Last edited: 2019-11-28 00:29

View 2 revisions

Did I get it right. When entering {PASSTHRU:id} as part of an EndURL, cberghoff cannot save the survey in LimeSurvey?
I cannot reproduce that "save"-issue with 3.20.2+191119 running Firefox / Windows 7.

@cdorin: Why are you pointing towards panel integration?
PASSTHRU was introduced long before the panelintegration. You never needed to define the passthrou parameter inside the panelintegration.
The GET URL parameter are just there.

BUT PASSTHRU seems to be broken since a long time. I was not able to get the PASSTHRU variable content piped through the survey.
I checked it today with 3.20.2+191119 . I got no PASSTHRU.

There might be some requirements, which are not documented for newer versions. I would be interested in an LSS export which worked for PASSTHRU under LS3 or LS4.

cdorin

cdorin

2019-11-28 12:18

manager   ~54855

Can't make it work in 2.50 either. Do you know in which version was last time working? Do you have an .lss example that worked in the past, @jelo?

I kind of understand now how it was used in the past - will check with the others what happened to it.

For @cberghoff, what is your id parameter? what exactly you want to "send out" ?

jelo

jelo

2019-11-28 12:38

partner   ~54857

@cdorin: cberghoff is using {PASSTHRU:id} . So the URL INTO LimeSurvey has &id=XYZ1234 and the URL out has &id=XYZ1234 too.

No longterm user of LimeSurvey trust PASSTHRU. Even in times where is worked, the next update broke it.
Ask the others and you will be surprised.

The real issue might be EndURL and it's code. Expressionmanager inside EndURL worked in older times too.
Now most use workarounds (Create a EquationQuestion, do ExpressionManager stuff there and only use the EquationVariable inside EndURL.

cdorin

cdorin

2019-11-28 13:25

manager   ~54858

Last edited: 2019-11-28 13:26

View 2 revisions

@jelo, this is how passthru has to be used in case you do not want to store any value in the response table (tested in 3.20.2).

From what I understand, in the past you did not need to define the parameter in the panel integration panel - however, this was changed some time ago.



passthru.lss (22,722 bytes)
jelo

jelo

2019-11-28 13:38

partner   ~54860

The only purpose of PASSTHRU is to pass a variable through LimeSurvey WITHOUT saving anything inside the response table.
Getting URL variables into and out of LimeSurvey was always possible via hidden questions (which was then saved in the responses).
If PASSTRU is now saving data inside the response table, the purpose of offering the function is unclear.

cdorin

cdorin

2019-11-28 13:47

manager   ~54861

In my example, no data is being stored in the response table.

jelo

jelo

2019-11-28 13:52

partner   ~54862

I wasn't able to get your passthu.lss working with Version 3.20.2+191119.

The EndURL is showing an empty ?idout=

I tried ?newtest=Y&lang=ro?id=3535 and ?newtest=Y&lang=ro?id=XYZ.
Survey is activated and via browser anonymous mode access to have a fresh session in every way.

jelo

jelo

2019-11-28 13:54

partner   ~54863

BTW: Mantis: I get an "Access Denied" when I want to edit my comments here.

Corrected sentence:
"Survey is activated and accessed via browser anonymous mode to have a fresh session in every way."

jelo

jelo

2019-11-28 14:02

partner   ~54864

@cdorin: Perhaps just a bug in my URL. I'll check again and report back.

cdorin

cdorin

2019-11-28 14:05

manager   ~54865

@jelo, use "&" and it should work.

Thx for the sentence correction. Will inform Carsten.

jelo

jelo

2019-11-28 14:39

partner   ~54866

Correction: I checked again. I confirm, that PASSTHRU.lss is working.
Sorry for not talking additional steps when checking your LSS export.

I was able to reproduce correct working under the following conditions:

Survey activated
Survey not activated
Autoload URL activated
Autoload URL not activated

In all cases the passthrou variable was correct in the EndURL.

I have modified the manual about passthru a bit .
https://manual.limesurvey.org/URL_fields#Passthrough_fields

So the last difference between normal panel integration and passthru is that NULL question parameter can be accessed via (PASSTHRU:Variable).

@cberghoff: Can you try passthru.lss on your LimeSurvey installation?

cdorin

cdorin

2019-11-28 14:51

manager   ~54867

Perfect, thx for the quick update.

Issue History

Date Modified Username Field Change
2019-10-30 15:11 cberghoff New Issue
2019-11-03 18:06 cdorin Note Added: 54366
2019-11-03 18:07 cdorin Assigned To => cdorin
2019-11-03 18:07 cdorin Status new => feedback
2019-11-04 15:16 cberghoff File Added: limesurvey_survey_986415.lss
2019-11-04 15:16 cberghoff Note Added: 54391
2019-11-04 15:16 cberghoff Status feedback => assigned
2019-11-27 18:25 cberghoff Note Added: 54842
2019-11-27 18:28 cdorin Note Added: 54843
2019-11-27 18:29 cdorin Note Added: 54844
2019-11-27 18:33 cdorin Note Added: 54845
2019-11-27 18:34 cdorin Status assigned => feedback
2019-11-27 18:35 cberghoff Note Added: 54846
2019-11-27 18:35 cberghoff Status feedback => assigned
2019-11-27 18:42 cdorin Note Added: 54847
2019-11-27 18:43 cberghoff Note Added: 54848
2019-11-28 00:16 jelo Note Added: 54849
2019-11-28 00:29 jelo Note Edited: 54849 View Revisions
2019-11-28 12:18 cdorin Note Added: 54855
2019-11-28 12:38 jelo Note Added: 54857
2019-11-28 13:25 cdorin File Added: passthru.lss
2019-11-28 13:25 cdorin Note Added: 54858
2019-11-28 13:26 cdorin Note Edited: 54858 View Revisions
2019-11-28 13:38 jelo Note Added: 54860
2019-11-28 13:47 cdorin Note Added: 54861
2019-11-28 13:52 jelo Note Added: 54862
2019-11-28 13:54 jelo Note Added: 54863
2019-11-28 14:02 jelo Note Added: 54864
2019-11-28 14:05 cdorin Note Added: 54865
2019-11-28 14:39 jelo Note Added: 54866
2019-11-28 14:51 cdorin Note Added: 54867