Thanks so much for the quick response, and for a fantastic module. We do need a little help though with editing responses after initial creation. In LimeSurvey, there is a setting that allows users to return and edit their answers. Every time we try to return to the response node to edit an unfinished survey, we click save and it responds "You don't have access to this page." This occurs when we use an iframe. The save feature does work when we use "automatic and immediate redirection" instead of an iframe. Is there something we can do to make the iframe work?

Comments

thedut’s picture

Hi swamiman,

This seems to be a bug. I am in vacation right now, i will explore this issue within 2 weeks.
Anyway, I am able to edit a completed answer using iframe... This issue may occure on specific (unkown) conditions.

thedut’s picture

You could explore yourself this issue during the meantime : the function ls_answ_fill_survey_access() may be involved [EDIT : see next post]. It is declared into the ls_answ/ls_answ.module file (line 305).
This function is quite complex, be carefull when editing it.

thedut’s picture

Status: Needs review » Active

Hi,

I had made a mistake, the involved function was not ls_answ_fill_survey_access() but ls_answ_back_from_ls_access().
Anyway, this issue was not cause by my module but by a bug from the LimeSurvey software : I have reported it on the LimeSurvey bug tracker :
06497: Wellcome screen shown when editing completed answer

However, I provide a patch in order to fix the access denied, even with the LimeSurvey bug.
As a bonus included into this patch, the url port is handle now : you can set the limesurvey software to an url like http://www.example.com:8087/limesurvey.

I won't create a new limesurve_sync release file for that issue, because I guess the LimeSurvey team will solve it soon and and I want to add more new features for the next realease.

Please test the patch and report !

thedut’s picture

Status: Active » Needs review
StatusFileSize
new6.39 KB
thedut’s picture

Note : The LimeSurvey team has not solve this issue yet.

Here is a better description of this issue :
When the user has finished to fill a survey, it is redirected to the Drupal site and meet an denied access page.
The answers are correctly recorded into the LimeSurvey database, it is a minor issue.

This issue should only occur for surveys matching all those settings together :

  • On the Limesurvey admin interface :
  • On the Drupal Admin interface :
    • Note that the module force you to use this kind of 'End Url' for some options :
      • iframe feature,
      • or for automatcally import answer,
      • or for redirecting to a specific page.
    • This issue should occur to if the 'automatic and immediate redirection' is set depending on the 'End Url' (see above).

This issue is due to a minor bug from the limeSurvey software, people are working on it but it is not solved yet.
Anyway, the provided patch should fix the access denied issue, even if the LimeSurvey bug is not fixed.

thedut’s picture

Status: Active » Needs review

Note : I have just upgraded the demosite with this patch, fixing the access denied occuring at the end of the quick survey.

thedut’s picture

At last, this LimeSurvey issue has been fixed by the LimeSurvey Team on the LimeSurvey v2.00 version, but not in the v1.92 version.
I will fix the code to handle specifically the buggy 1.92 version Into the next LimeSurvey Sync release.

thedut’s picture

Status: Needs review » Patch (to be ported)
thedut’s picture

Status: Patch (to be ported) » Closed (fixed)

Fixed into the LimeSurvey Sync 7.x-1.2 and 6.x-1.2 releases.