I upgraded from UC 2.4 to 2.6, and now users can't download the files they've purchased. Clicking on any file simply increments the download counter and re-loads the */purchased-files page. The log doesn't show any error, and there's an entry that says the user has started the download of that particular file.

When I log in as an admin and try to download the file from their profile page, it increments the counter and redirects me to my own user's */purchased-files page.

For now I've reverted back to UC 2.4 which has solved the problem (though switching between versions has in itself has caused a few issues...). I'd greatly appreciate any help!

CommentFileSizeAuthor
#3 file_downloads.patch443 bytesTR
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

TR’s picture

Did you run update.php? There have been very few changes to uc_file between 2.4 and 2.6, and those changes were minor.

ktf’s picture

Yes, I ran update.php. With the exception of a minor uc_coupon issue (that has since been resolved), everything else has been fine with 2.6. I'm not sure what else could be causing this behavior, but I've gotten enough emails about it to know it's not just a local problem. Maybe there've been other changes elsewhere that have affected uc_file? Or maybe I'm just unlucky :P

TR’s picture

Version: 6.x-2.6 » 6.x-2.x-dev
Status: Active » Needs review
FileSize
443 bytes

Try this patch and see if it fixes the problem.

TR’s picture

@ktf: So, does the patch work?

TR’s picture

Priority: Critical » Normal

@ktf: I cannot reproduce this error, so I cannot test the fix. If this problem is happening to you, I need you to apply the patch and tell us if it worked.

ktf’s picture

Sorry TR, been out of town, haven't had a chance to test. But your patch seems to have solved the problem! Thanks for the fast response.

TR’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

plato1123’s picture

I had this issue so I updated to ubercart 6.x.29 and now nothing related to digital downloads works at all. Any ideas?

plato1123’s picture

I spent a day troubleshooting this and finally rolled back to 6.x.24 to get working again. I'm also following this issue here:
http://drupal.org/node/1679310
http://drupal.org/node/1463304
http://www.ubercart.org/forum/support/32025/updating_ubercart_6x29_broke...
http://drupal.org/node/1247034