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