I am unable to download the form submissions. The issue queue lists several similar bug reports, and I have read them all without being able to identify the problem. I have 15 submissions in the webform.

A few facts on my server setup:

Server Apache/2.2.11 (Unix) PHP/5.2.9
error_reporting E_ALL
memory_limit 256M
safe_mode Off
max_execution_time 180
disable_functions readfile,shell_exec,exec,virtual,passthru,proc_close,proc_get_status,proc_open,proc_terminate,system

When I click the download button the file is downloaded immediately (i.e. no wait for some timeout), but it is empty. Nothing is written to the error log file. It does not work on other sites on the same server either.

I have another server with a similar setup, but results export works on this server.

Any ideas on how to track down the error?

Comments

haaid’s picture

we have the same issue on our site

Drupal Version: 6.19
Webform version: 6.x-2.10

We had 10 results before the upgrade; after the upgrade we registered one more (shows up in "submissions") but the download file is empty (both delimited text and excel).

Happy to provide more info.

quicksketch’s picture

Information on how to reproduce this issue from a clean installation for Drupal will be necessary; I can't reproduce this.

vernond’s picture

Are you sure that your sites temp directory is writable? Webform creates the report in a temp file prior to download, if this is not created it could explain the problem.

Perhaps you should test this by adding a file upload component to one of your forms and check that it does upload correctly?

ulrikls’s picture

The temp directory exists and is writable. I tried adding a file upload component to a new form. File upload works just fine, but results download not.

vernond’s picture

Oops, just spotted my oversight: readfile is a disabled function on your server... it is also the function that webform uses to stream the temp file to client side. You'll have to beg and plead with your server admin to enable readfile.

quicksketch’s picture

@vernond is correct. Webform can't make a POST request generate a download file without readfile(). I think requesting the function or changing hosts is your best option.

ulrikls’s picture

Status: Active » Fixed

I got my server admin to enable readfile, and now results download works. Thanks for your help.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

danharper’s picture

How do enable readfile(), can it be done in php.ini?

I have searched the internet and although I can find all the information about the function I can't work out how you can turn it on or off.

Cheers Dan

danharper’s picture

Found it in php.ini the following line.

disable_functions =

Cheers Dan

surya.sairaam’s picture

Hi, Just make sure that your hosting is not full eg: 100mb hosting and you have already 99mb. On this time you will have the same type of problem.