I have a client who is running UC 6.x-2.9 and about 80-90% of all orders are giving users errors when they try to click the file download links in their email or login and download.

The error they receive is "You have attempted to download an incorrect file URL too many times. Please contact the site administrator if this message has been received in error."

The permissions are set correctly, users are automatically logged in upon purchase, but I have no clue why the errors are happening.

The server is CentOS and the site uses Varnish for caching, but the errors happened even with the default Drupal cache.

Was this fixed between 2.9 and 2.14? They are very reluctant to do a full upgrade, but if there's a patch I'd gladly apply it...

I'm dying for help here. I've been looking for answers for weeks.

Comments

longwave’s picture

Status: Active » Postponed (maintainer needs more info)

There have been no significant fixes to uc_file since 6.x-2.9. However as nobody else is reporting this problem it sounds more like an issue with your specific setup.

There is protection in place to limit downloads by IP address. Does Drupal see all your users as coming from the same IP address, perhaps due to Varnish or some other reverse proxy? There is some configuration you can add to settings.php so the correct IP address is discovered, as long as the proxy adds the correct headers on the way.

haysuess’s picture

Correct you are. Thanks for the tip on the config for reverse proxy. That seems to have fixed the issue.

All users show in watchdog as coming from their own IPs, and 0 support emails today so far instead of the usual 50 :)

For anyone else experiencing this issue, I used this guide: https://www.urbaninsight.com/2013/02/11/configuring-varnish-for-drupal

It mentions some necessary changes for you default.vcl file on top of the settings.php changes for Drupal.

longwave’s picture

Status: Postponed (maintainer needs more info) » Fixed

Thanks for letting us know, hopefully this will help anyone else in the same situation.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.