Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.0 - Bundle downloads failing with Error 102: You do not have permission to download this file #9182

Closed
arraypress opened this issue May 13, 2022 · 2 comments · Fixed by #9192
Labels
component-file-delivery type-bug type-regression Something that used to work that doesn't anymore
Milestone

Comments

@arraypress
Copy link
Contributor

Bug Report

Expected behavior

I expect to be able to download all the files from bundle purchases, but in the recent 3.0 branch these are failing.

Actual behavior

I get the following error:

Error 102: You do not have permission to download this file

This does not happen with normal downloads, just bundles. I wil

Steps to reproduce the behavior

  1. Create a bundle product. In my case I had two products assigned
  2. Make sure each product has a single file associated with it (or multiple).
  3. Purchase the bundle and try to download the files. You should see the above error.

Information (if a specific version is affected):

PHP Version: 8.0.0

EDD Version (or branch): 3.0 (latest)

WordPress Version: 5.9

Any other relevant information:

@arraypress arraypress changed the title 3.0 - Bundle downloads failing 3.0 - Bundle downloads failing with Error 102: You do not have permission to download this file May 13, 2022
@mihaijoldis
Copy link
Contributor

I was able to replicate this on the same release/3.0 branch too.

@robincornett robincornett added this to the 3.0 milestone May 14, 2022
@robincornett robincornett added type-bug component-file-delivery type-regression Something that used to work that doesn't anymore labels May 14, 2022
@robincornett
Copy link
Contributor

Confirmed: looks like edd_order_grants_access_to_download_files, which is a function new to 3.0, needs to be updated to account for bundle files.

robincornett added a commit that referenced this issue May 16, 2022
robincornett added a commit that referenced this issue May 16, 2022
robincornett added a commit that referenced this issue May 16, 2022
@robincornett robincornett linked a pull request May 16, 2022 that will close this issue
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component-file-delivery type-bug type-regression Something that used to work that doesn't anymore
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants