when survey options with "the way to redirect the user to the LimeSurvey site" is set to "iframe" : when submiting the LimeSurvey answer, the redirection to the end url fails, leading to an access denied page.

Original Post : hello, I have some issue. I was create survey and set them following instruction, choose "the way to redirect the user to the LimeSurvey site" is ifame , and leave it blank for "the way to redirect the user to the LimeSurvey site". Then, after complete survey end url will return redirect ifame.

Comments

thedut’s picture

Hello armmyy,

I don't understant your message.
What is the issue ? In other word : What did you do, what did you expect, and what happen ?

armmyy’s picture

StatusFileSize
new107.57 KB

sorry thedut,

I want to show survey in interface of drupal via ifame. but after i answer question of survey complete, it doesn't redirect to index following that i was set. it was redirect in fame of lime survey.

armmyy’s picture

StatusFileSize
new104.01 KB

if i choose automatic and immediate redirection, after i was answer complete it will show Access denied

You are not authorized to access this page.

armmyy’s picture

StatusFileSize
new180.54 KB

I check log file. there are 2 error

thedut’s picture

Hum,
The error log is interesting :
Try this :
edit the ls_api/limesurvey_sync_ls_api_fields.inc file on line 439 :replace
limesurvey_sync_ls_api_map_fieldnames($ls_key_noprefix, $way);
by
limesurvey_sync_ls_api_map_fieldnames($ls_key_noprefix, 'dp2ls');
and tell me if it fix

  1. the error log 'undefined variable way...'
  2. the access denied.
armmyy’s picture

StatusFileSize
new73.71 KB

Hi, thedut
Now, all error was fixed. Thank you very much

  • thedut committed 86aebc8 on 7.x-2.x
    Issue #2455273 by thedut: access denied on end url iframe.
    
thedut’s picture

Title: after complete survey end url will return redirect into ifame » Access denied on end url iframe
Assigned: Unassigned » thedut
Category: Support request » Bug report
Issue summary: View changes
Status: Active » Fixed
StatusFileSize
new707 bytes

Great, Here is the corresponding patch fixing this issue. I have changed title and description of this issue.

armmyy’s picture

Thank you very much, thedut

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.