Closed (fixed)
Project:
Commerce File
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Aug 2011 at 15:27 UTC
Updated:
2 Sep 2011 at 07:01 UTC
When I visit an ordinary product display node (which has a product which has a commerce file) I get this message:
Error message
You cannot upload a file. Commerce File requires a private file scheme. Visit admin/config/media/file-system to set your private file path. Optionally, a private scheme other than Drupal's may be implemented.
There are private file schemes available on your system. Visit the field settings to select a private scheme allowed for this field.

| Comment | File | Size | Author |
|---|---|---|---|
| rfay_dell_gazelle_Selection_046.png | 32.81 KB | rfay |
Comments
Comment #1
rfayHmm... and if I'm not mistaken and not crazy, it's also preventing adding to cart.
Comment #2
recrit commentedI believe this was being triggered by cart refresh since there is a file field on the line item... which oddly enough I still got the error even when nothing was in my cart. I have added a check to not validate fields that have been added during install.
http://drupalcode.org/project/commerce_file.git/commitdiff/d428a4c
This should address your issue and provide a temporary fix for #1239304: License File Field should be scheme independent.
Let me know if the error goes away.
Comment #3
rfaySolved my problem! Thanks so much. And I can add things to the cart now too!