
Hello, I have a webform with a file-type field to upload files (pdfs). I created a report for the form but the column for the file type field is not displaying results.
Comment | File | Size | Author |
---|---|---|---|
#22 | 833912-2.x-v3.patch | 4.28 KB | jimbullington |
#18 | 833912-1.x-v3.patch | 2.29 KB | jimbullington |
#16 | 833912-1.x-v2.patch | 1.98 KB | jimbullington |
#15 | 833912-2.x-v2.patch | 3.33 KB | jimbullington |
#10 | 833912-2.x.patch | 1.74 KB | jimbullington |
Comments
Comment #1
jimbullington CreditAttribution: jimbullington commentedI am unable to duplicate this - I have a webform with a file upload field and a webform report with this as a column. When I upload a pdf in the submission, the link to the pdf is displayed and I can download the pdf. If the submission does not have an uploaded file, the column is blank. Can you verifiy that a file has been uploaded?
Comment #2
luthien CreditAttribution: luthien commentedI'm using webform 6.x-3.0-beta5 and webform report 6.x-1.11. Does that matters? I'm also logged in as admin but I'm unable to update the criteria for the report, like I don't have permission.
The goal of that particular form is just to upload the file so I have 70 submissions, all of them with links to download the files.
I can try a different version to see if that works.
Comment #3
digger3d CreditAttribution: digger3d commentedCheck if the file is uploaded? it seems that upload directory permissions are not set...
Comment #4
digger3d CreditAttribution: digger3d commentedit isprobably a database problem, you have to check does your database have all the necessary tables intact... it might happened if you have wrong table structure in your database...
Comment #5
luthien CreditAttribution: luthien commentedThanks for all your help. I reinstalled the beta version, I'm super admin, I created a new report, then I got the message:
It appears that no criteria have been specified for this report. Please click on the Criteria tab to add webform data to your report.
I didn't see the Criteria tab when I clicked edit. How do I check if the DB has the right tables?
I uninstalled the module and reinstalled again but the problem was still present for super admin user. I cleared the cache, logged in with another admin user, and I was able to see the report criteria tab and edit. But not "file" column, it is still empty.
Comment #6
jimbullington CreditAttribution: jimbullington commentedYou probably just need to clear the site cache - goto admin/settings/performance and click the Clear cached data button.
Comment #7
luthien CreditAttribution: luthien commentedI cleared cache from admin and using drush, that did not solved the problem of the empty "file" column. Any other ideas of what can be wrong? the webform report displays the file links perfectly fine. Maybe it is a permission issue. Download csv is giving me a permission error. All the module's options were enabled for admin users, not authenticated.
Comment #8
jimbullington CreditAttribution: jimbullington commentedThank you for the updates - sorry this is taking so long...
Can you gather some debug information for me?
If so, in the file webform_report.inc insert the following code temporarily after line 520:
Then view the report you are having trouble with and upload a screen shot. Take the code out after you are done. Thank you for your help.
Comment #9
Yanivs CreditAttribution: Yanivs commentedI am having the same problem after updating the webform module from 6.x-2.9 to 6.x-3.0-beta6.
I am using:
drupal 6.17
webform 6.x-3.0-beta6
webform report 6.x-2.0-beta3
When updating the webform module from 6.x-2.9 to 6.x-3.0-beta6 there were a lot of table modifications (alter).
Thanks,
Yaniv
Comment #10
jimbullington CreditAttribution: jimbullington commentedThanks alfa8007 - I think you have figured this out.
I have attached a patch for webform reports version 2.x (beta) that should (hopefully) fix this problem. Let me know if it works - I have not installed the new webform beta so I have not tested it myself yet.
Comment #11
jimbullington CreditAttribution: jimbullington commentedA patch for webform reports version 1.x is attached.
Comment #12
luthien CreditAttribution: luthien commentedpatch did not fixed the problem, here is the output to the debug code:
raw: Array
(
[0] => 397
)
tmp:
raw: Array
(
[0] => 403
)
tmp:
raw: Array
(
[0] => 407
)
tmp:
raw: Array
(
[0] => 408
)
etc...
Comment #13
jimbullington CreditAttribution: jimbullington commentedThank you - however I think the problem has been identified as a change in the webform file upload component handler. This information confirms that.
Please try the patch I uploaded here.
Comment #14
luthien CreditAttribution: luthien commentedthe patch did not solved the problem. I will wait for input from any of the other users from this post having the same issue to see if the patch solved the problem. thanks for the prompt reply!
I'm using beta versions:
drupal 6.17
webform 6.x-3.0-beta6
webform report 6.x-2.0-beta4
Comment #15
jimbullington CreditAttribution: jimbullington commentedSorry, I should have been more careful.
The attached patch seems to work.
Also had some issues with date/time fields - there may be problems with other field types as well, but I haven't noted any so far.
Comment #16
jimbullington CreditAttribution: jimbullington commentedAn updated patch for webform reports 6.x-1.x is attached.
Comment #17
luthien CreditAttribution: luthien commentedthe patch solved the problem. I have not tested the patch for the beta version but the one for v1.11 worked fine. Thanks.
another bug: the csv file displays the file column with the html code instead of just the name linking to the path:
Comment #18
jimbullington CreditAttribution: jimbullington commentedOK - I've added a strip_tags() call to remove the tags from the CSV output in the attached patch. See if that works for you.
Comment #19
luthien CreditAttribution: luthien commenteddo you have the patch for the beta version?
Comment #20
jimbullington CreditAttribution: jimbullington commentedThis code (removing tags for CSV output) should already be in the beta version.
Comment #21
luthien CreditAttribution: luthien commentedyou were right, the only comment about the csv file is that instead of displaying just the name of the file, you should display the full path to the file, this way it can be downloaded quickly. Thanks for the prompt replies!
Comment #22
jimbullington CreditAttribution: jimbullington commentedI have created another patch that addresses your last comment - full paths are in the csv download.
Comment #23
jimbullington CreditAttribution: jimbullington commented