All of the commerce_file links (e.g. /file/275/download?token=xxxxxxxxx) produce 'Page not found' errors. This is happening to both anonymous and authenticated users. It's happening in checkout and also when I click on the links in the admin backend. Help would be greatly appreciated.

Comments

bojanz’s picture

Are you using file_entity, and which version?

The issues I've seen so far have all been due to file_entity 1.x (which is not supported by commerce_file 2.x, we integrate only with file_entity 2.x).

bojanz’s picture

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

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Two weeks without a reply.
Reopen if you have additional information that would allow me to help.

K.MacKenzie’s picture

Issue summary: View changes
Status: Closed (cannot reproduce) » Active

I believe that this problem is directly related to:

https://drupal.org/node/1069072

There is a check in the commerce_file.module around line 82 that sees if (is_file($file->uri)); and if not it returns a 404.

For me this was returning false because of some funky stuff going on with file system. (URI was set, but PHP didn't like it)

Check out that issue link above to make sure that's not the problem you're having.

K.MacKenzie’s picture

Status: Active » Closed (fixed)