When I try to download the webform results in Excel or Text format and no matter which delimiter I choose, the output is displayed on the screen as an HTML file and doesn't get downloaded as a file.
I have tried this with FireFox and IE with the same results.
Is there a solution for it?
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | screen.jpg | 187.09 KB | vako |
| #2 | screen.jpg | 188.39 KB | vako |
Comments
Comment #1
vernond commentedThat sounds rather odd. Can you give us a screen shot to goggle at? Have you made any changes to Webform code at all?
Comment #2
vako commentedhaven't done any changes to the Webform code. please see the screen shot attached.
There are only 600 entries on the list, so I don't suppose it's a memory issue.
Note that there are foreign characters on the entries that are not showing-up correctly, would that cause the issue perhaps?
Thanks.
Comment #3
vernond commentedWow, that's more than just a little weird... At the risk of sounding desperate, do you get the same effect using Garland theme? I honestly cannot think of why you'd be getting the "edit" and "delete" bits in there...
Comment #4
vako commentedI added the Edit and Delete fields and use them, they shouldn't be exported, but that's another issue.
Now how can I solve this issue?? I will post this on the general forum, maybe it will get more hits....:(
Comment #5
quicksketchCould you open the "Page info" window after the CSV file opens in your browser window? Webform should be sending headers to the browser that tells the browser it is a CSV or Excel file and that it should be downloaded instead of displaying inline in the browser like this.
If those headers are not being set the file may be displayed in the browser like you're experiencing. The most likely cause of headers not being set is because something has already started outputting to the page (like trailing white space after a ?> tag in a module or theme). Usually errors will be saved to your error logs on the server. You might also check watchdog (admin/reports/dblog) for errors.
Comment #6
vako commentedI'm not sure what you mean by "Page info", but when I opened "view Page Source" I got a very weird screen with ? before every character. please see the attached image.
Also please notice the space " " at the very beginning which might be the culprit.
The watchdog shows the following error, which I am not sure what it means:
I have other petitions on the same domain that work fine.
Comment #7
vako commentedAfter copy and paste of the screen data to a txt file, I got the following:
Note the garbage characters at the beginning, any idea what they are and how we can remove them? I bet that's the reason the export is failing.
Comment #8
quicksketchExcellent, exactly as I suspected:
If you disable Webform Report, the problem will go away. Most likely it is executing custom PHP that you have entered somewhere into its interface that is causing a problem.
Comment #9
vako commentedActually I noticed that the Webform download is working fine and this specific issue is related to Webform_report. So changing the module.
Can anyone test with your webform_reports to see if you have the same issue?