Check out the LimeSurvey source code on GitHub!

export to spss with internet explorer under HTTPS

More
7 years 4 months ago #32293 by jooghe
Dear,

Our limesurvey is accessed through https. It all works fine except for downloading the results in SPSS or R format. This problem only occurs with internet explorer. All other browsers I tested work fine.

When I click on the link to download the SPSS file IE prompts me to download server.xx/admin/admin.php?action=exports...ubaction=dlstructure instead of just the plain filename (eg survey_97274_SPSS_syntax_file.sps). When I click "Save" I got an error : "Internet Explorer cannot download admin.php from server" . So instead of letting me save the result of the request IE tries to save the script that executes the request.

When changing the HTTP header pragma from no-cache to cache or public it does work fine. So we could change that in the export scripts, but I'm not sure if this is the best solution, especially since it's only for IE that we need to change it. What do you think is it a save change ? Is there another solution,apart from telling the users to use another browser ? Anyone else had this problem ?

Thanks,
Jan.

Please Log in to join the conversation.

More
7 years 4 months ago #32300 by Mazi
1. Which Limesurvey version do you use?

2. Which IE version causes the problems?

3. Does everything work fine when using other borwsers like firefox?


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
7 years 4 months ago #32302 by jooghe
Mazi,

We are working with LS 1.85+.
Both IE7 and IE8 give this problem.
Firefox, Mozilla and Chrome are working fine.

It seems to be related to support.microsoft.com/kb/812935 . So I centainly wouldn't call it a bug in limesurvey, it's more how to cope with certain IE "features" .

I found some discussions about this header problem in IE on be2.php.net/manual/en/function.header.php .

Seems like be2.php.net/manual/en/function.header.php#83219 is proposing a workable solution. But it involves turning on caching and I hope that this does not generate other problems.

I've posted it to check if anyone else has experience with it and also to document this behavior for Limesurvey.

Thanks,
Jan.

Please Log in to join the conversation.

More
7 years 4 months ago #32306 by Mazi
Please test if the problem still exists at the latest release . If so please open a ticket at the Bugtracker and...

1. Give as much information as possible

2. Attach your survey. You can mark your ticket "private" so that only the developers will be able to take a look at it.

3. Provide step-by-step instructions how to reproduce the problem.

4. If possible/helpful please provide screenshots

Afterwards please post the link to the Bugtracker so we can follow the progress.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
7 years 4 months ago - 7 years 4 months ago #32881 by mdekker
I suppose it is not only related to exports spps/r but to all downloads because it is a headers problem. Please confirm. I tried some of the fixes on my localhost install and got mixed results. Sometimes I was able to download but on a retry it failed again. Now I remember why I stopped using IE ;-)

When there proves to be no reliable way to fix this, it might be an idea to document workarounds in the docs that tell what settings to change in the browser. I don't have any experience with it myself, but a general page about https installs (what to change where) might be good.

Just for the record, I used IE8 on a local xampp install to test the fixes. Might be impossible, as some things just work different on localhost.

There used to be problems on every pageload (in the admin part) when https was on. Something about mixed content but that seems to be fixed in 1.86 release :)

---
Menno Dekker
Last Edit: 7 years 4 months ago by mdekker.

Please Log in to join the conversation.

More
7 years 4 months ago #32889 by Mazi
mdekker wrote:

When there proves to be no reliable way to fix this, it might be an idea to document workarounds in the docs that tell what settings to change in the browser. I don't have any experience with it myself, but a general page about https installs (what to change where) might be good.

I totally agree! Is there anybody running Limesurvey on https without problems who can share his/her experience? Any volunteers?


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
7 years 4 months ago - 7 years 4 months ago #33014 by mdekker
I ran into problems with mixed content on 1.86 version. Every page on the admin part showed an error in IE6! The fix was to change something in the admin/scripts/tooltip.js

Line 45 reads:
dhtmlgoodies_iframe.src = '#';

and should be changed to:
dhtmlgoodies_iframe.src = 'javascript: false;';

I noticed in svn this file doesn't exist anymore. A test on 1.87 showed no fancy tooltips in IE6 but didn't have the problems with mixed content. So when 1.87 is released those problems shoulde be fixed. The download problems should still be checked.

---
Menno Dekker
Last Edit: 7 years 4 months ago by mdekker.

Please Log in to join the conversation.

More
6 years 9 months ago - 6 years 9 months ago #41723 by rom
I can confirm the SPSS File download issue of the OP by using https and Internet Explorer 7 and 8.

We used Limesurvey 1.72 (5737) for a long time, and we always had that problem. We updated our installation about 5 minutes ago to the most recent Version 1.87+ Build 8518, still the same issue.

There is no problem downloading the SPSS file using alternate Browsers like Firefox, only Internet Explorer 7/8 have this issue.


(offtopic edit: strange, i am still called a "fresh lemon"? we donated a while ago, and we got a promise that our forum status has been changed because of our donation... well, not that I care very much about it ;)

edit2: never mind, i just had to take a look into my profile... doh )
Last Edit: 6 years 9 months ago by rom.

Please Log in to join the conversation.

More
6 years 9 months ago #41728 by holch
Today the forum system seems to be a little mixed up.

I had moderator status yesterday, today I have Gold lime or something like that.

Maybe just a hickup of Joomla? ;-)

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
6 years 9 months ago #41752 by Mazi
rom: Please open a ticket at the Bugtracker and...

1. Give as much information as possible

2. Attach your survey. You can mark your ticket "private" so that only the developers will be able to take a look at it.

3. Provide step-by-step instructions how to reproduce the problem.

4. If possible/helpful please provide screenshots

Afterwards please post the link to the Bugtracker so we can follow the progress.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
6 years 9 months ago #41773 by rom
Thanks for your Reply, Mazi.

This is the link to the Bugtracker Ticket:
bugs.limesurvey.org/view.php?id=4299

Please Log in to join the conversation.

More
6 years 9 months ago #41976 by rom
we got an *untested* workarround, which works for me.

If it proves to work it will go into all relevant sections for the next release.

(quoted a developer)


Workarround:
in \admin\export_data_spss.php find:
if ($subaction=='dldata') {
    header("Content-Type: application/download; charset=utf-8");
    header("Content-Disposition: attachment; filename=survey_".$surveyid."_SPSS_data_file.dat");
    header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
    header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
    header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
    header('Pragma: no-cache');
 
    $na = "";
    spss_export_data($na);
 
    exit;
}

change the 2 lines regarding cache-control and pragma to:
header('Cache-Control: must-revalidate, post-check=0, pre-check=0, maxage=1'); //temporary workarround	
header("Pragma: public"); //temporary workarround


apply the same cache-control and pragma changes to the subaction "dlstructure" right below, so you can download both SPSS Files (Data and Syntax file). Apply those changes in the "export_data_r.php" file, if you need to download R-Files.

Please keep an eye on strange things like getting cached results. This is not an official fix for the problem (yet)!

Please report further problems regarding this fix here: bugs.limesurvey.org/view.php?id=4299

Please Log in to join the conversation.

More
6 years 9 months ago #41980 by Mazi
Thanks for your very helpful feedback, rom!

Problem is solved, if you find further bugs don't hesitate to report them.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
5 years 9 months ago - 5 years 9 months ago #59994 by nancypassarelli
Ibm service center certification examines rational quality management skills that include the ability of any individual to mange sales call and is commonly used to identify sales skills in closing any sales call.IBM Mastery test targets technical sales professional who can provide comprehensive and easy solution to customers. Any individual or professional interested for IBM test can register with prometric testing centre that gives opportunity to appear for an online test.
www.redhatinfotech.com/
Last Edit: 5 years 9 months ago by nancypassarelli.

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form