Hi,

Im trying to create a 'Commerce File License': when uploading the file, I get the error:

The file could not be uploaded, because the destination : is invalid.

I have setup a private file system path, and tried with either 'Public local files served by the webserver.' or 'Private local files served by Drupal.' selected.

Comments

recrit’s picture

Thanks for testing!
This should be fixed per commit acdb6df. Let me know if you are still having issues.

PI_Ron’s picture

Hi recrit,

I'm still getting the warnings after applying that.

What is the correct command to apply the patch? I tried creating acdb6df.patch in the modules root folder, then: patch -p0 < acdb6df.patch

but no luck

recrit’s picture

There is no patch, I was just referencing the commit. To update the module, you have to re-pull the git repo.
Let me know if you are still having issues after that.

PI_Ron’s picture

Ok Ive repulled the repo.

The warning on the 'Add Commercial License' page is gone, however I'm still unable to upload a file.

recrit’s picture

I have update the repo with some modifications to correctly save a manually added license. Try again and let me know if you still cannot add a file.

PI_Ron’s picture

Just wan't to make sure I'm doing this right, I can't install git on my hosting, but I have it on my local machine, clone the repo like:

git clone http://git.drupal.org/sandbox/recrit/1118266.git commerce_file

I then upload the whole commerce_file directory to my site. Still getting the error, and ':' directory has been created at /public_html/:

    The file could not be uploaded, because the destination : is invalid.
    The file in the Licensed file field was unable to be uploaded.
recrit’s picture

there was some fixes to the field for the scheme handling, so do a pull again.
Please do the following:
- delete the incorrect directory ":" or "private:"
- delete commerce file field on your product entity
- uninstalling commerce_file completely. The field that gets automatically added to the license could still have some wrong settings stored so it needs removed. I added some code to do this on module uninstall.
- check that your private file system directory is set at admin/config/media/file-system
- reinstall commerce_file module

PI_Ron’s picture

Success! The file can be uploaded successfully, thanks!. However, a new error occurs after hitting Save.

DatabaseTransactionNoActiveException: in DatabaseConnection->rollback() (line 947 of /home/sitename/public_html/includes/database/database.inc).
The website encountered an unexpected error. Please try again later. 
recrit’s picture

I cannot reproduce this error. Try testing the automatic creation of a license through the order workflow to see if you still get an error. See steps to test at #1162462: Order Workflow Testing.

recrit’s picture

Status: Active » Postponed (maintainer needs more info)
thill_’s picture

Version: » 7.x-1.x-dev
Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
luvRAI’s picture

The file could not be uploaded, because the destination : is invalid.
plz give me suggestion
thanks luv