I installed the results_export module after I had made revisions to some quiz nodes. This seems to be a problem.
When I would click on any of the html/xml/csv I would get a "This web page has not been found" error as if the file is not downloaded. I did get one node to export to csv because it had no revisions made so the original vid to the certificate and results were 'locked' to the orignal nid/vid.
I also had to add the patch which adds export_results.admin.inc line 75 this function:
function results_export_invoke_file_transfer($filename, $output) {
ob_start();
$filepath = file_directory_temp() . '/' . $filename;
$handle = @fopen($filepath, 'w');
fwrite($handle, $output);
fclose($handle);
$ext = pathinfo($filename, PATHINFO_EXTENSION);
$headers = array('Content-Type: text/'. $ext, 'Content-Disposition: attachment; filename='. $filename);
ob_clean();
file_transfer($filepath, $headers);
ob_end_clean();
}
Here is what watchdog had to say if I had a different quiz node vid.
1. fwrite(): supplied argument is not a valid stream resource in /home/mydomain/public_html/sites/all/modules/quiz_ei/results_export/results_export.admin.inc on line 79.
2.fclose(): supplied argument is not a valid stream resource in /home/mydomain/public_html/sites/all/modules/quiz_ei/results_export/results_export.admin.inc on line 80.
3.fopen() [function.fopen]: Filename cannot be empty in /home/mydomain/public_html/includes/file.inc on line 883.
| Comment | File | Size | Author |
|---|---|---|---|
| no-export-csv.jpg | 41.87 KB | rennsix | |
| export-csv.jpg | 34.69 KB | rennsix |