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

Member Export outputs duplicates when using pmpro_set_max_user_per_export_loop filter #3236

Open
3 tasks done
JarrydLong opened this issue Dec 18, 2024 · 0 comments
Open
3 tasks done

Comments

@JarrydLong
Copy link
Contributor

Describe the bug
Using the pmpro_set_max_user_per_export_loop filter to reduce the number of users per export loop results in the export containing duplicates of a member. By the looks of it the start of the next loop includes a user from the previous query/loop.

To Reproduce

I've tested this based on a small number of members however this grows into thousands of records on a site with 5000 members for example (nearly double).

My base of users were 8 users:

image

My export using the default pmpro_set_max_user_per_export_loop = 2000 resulted in 8 records exported. No duplicates.

image

I then set the pmpro_set_max_user_per_export_loop = 2 which resulted in 11 records being exported

image

Just to be sure, I changed pmpro_set_max_user_per_export_loop = 1 which resulted in 17 records

image

Expected behavior
We shouldn't be seeing duplicates. Reducing the pmpro_set_max_user_per_export_loop helps with different server limits so the feature is helpful.

Isolating the problem (mark completed items with an [x]):

  • I have deactivated other plugins and confirmed this bug occurs when only Paid Memberships Pro plugin is active.
  • This bug happens with a default WordPress theme active, or Memberlite.
  • I can reproduce this bug consistently using the steps above.

WordPress Environment

PMPro 3.3.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant