An issue I have found and after much trying with different settings I am unable to solve:
Once completed and published a survey, I am unable to access it. Once I click the node I end up with a warning about too many redirections and the log of Drupal gets instantly filled with a bunch of these messages: "The answer has just been edited"
A few things which may eventually help (or not) find the possible causes:
1 - The above behaviour happens for me as admin as well as for any authenticated user who has answered.
2 - I am nevertheless able to use the "compare answers" feature and see the results there.
3 - I am able to access the nodes while in "editing" non published status. The problem only happens after they are published/the survey is completed.
4 - Under "options for response synchronization" I have everything checked except "Recycling virgin responses for the same user".
5 - I have set 'allow editing answers after completion' in LimeSurvey to yes. The user has permission to view and edit own content.
Any assistance would be much appreciated. I pretty much lost hope of fixing it by my own.
Thanks again.
Comments
Comment #1
hvalentim commentedComment #2
hvalentim commentedComment #3
hvalentim commentedDon´t ask me why but this seems to self heal after some time!?!?
And no. It must not have anything to do with browsers and cache issues because I tried different browsers clearing everything before and it did not work.
What I do notice is that right now I have recovered access to nodes completed some time ago (around 2 hours) while new ones just completed keep exhibiting the above problem.
Comment #4
thedut commentedI have to dig on this issue.
Thanks to the informations you provided, I guess the ls_answ_view() function is involved.
I will add some code in order to avoid infinite loop.
Comment #5
thedut commentedThis issue was due to an error on the synchronization page settings : Now it handles such case.
If you meet this issue : upgrade to 7.x-1.6 and visit the synchronization setting page (/admin/media/ls_sync) making sure to pass the 3 tests.
Fixed into the LimeSurvey Sync 7.x-1.6 release.
More informations on the demo site (just click on the picture).
Comment #6
mb7419 commentedI had earlier (7.x-1.5) used Node Limit (set to 1 ) and I was able to edit the same node repeatedly. However on migrating to 7.x-1.7, I am getting the same issue as described above. On clicking an already completed node I am unable to view it and the logs show multiple(7) "The answer has just been edited" with Type showing as ls_answ. On trying to edit the node it is the same behavior. The only module I have upgraded so far is LS ..
Tried to diff my way to understand changes .. however not very successful and appreciate some guidance ?
Rgds.
Comment #7
thedut commentedHello mb7419,
Try this :
Comment #8
mb7419 commentedThanks that worked !!
Regards
Comment #9
thedut commentedGreat !
Comment #10
mb7419 commentedHi There,
I am facing the problem again as I pick back this one where I last left. I had to make modifications to the survey so had to delete it and created a fresh one. Now as I am getting the same issue as described above, when I am trying to view a filled in survey (published),nothing happens and I get "The answer has just been edited" a few times (random) .
I am using v 7.x-1.7 and trying the solution #7, which in fact worked earlier for me but does not help now, all the tests on /admin/media/ls_sync show as passed
Regards,
Comment #11
thedut commentedHello mb7419,
OK, all the tests on /admin/media/ls_sync show as passed but did you check if the LimeSurvey server time (admin/admin.php?action=globalsettings#general on your LimeSurvey admin interface) is the same that the one the admin/media/ls_sync page ?
Because it can only be a human check.
Comment #12
mb7419 commentedThey indeed are , though from the admin/config/media/ls_sync interface I can see only the limesurvey server time and not the time after adding the "time difference" settings on limesurvey.
Giving below the situation with an example. The current clock time on the drupal site is say 07:48 . The server time on limesurvey is 4:18 and by adding time diff (3.5 hours) I have made it same (so limesurvey is showing corrected time as 7:48).
However the issue seems to have set itself right after I try doing this again after 7/8 hours of creating the node. This is reported in comment #1 as well.
Regards
Comment #13
mb7419 commentedHi,
I moved my code from localhost to a server and I am not facing this problem anymore, however the behavior on my localhost is as reported above.
Regards,