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

Bug: Identical rows in members list export #3152

Open
3 tasks done
dwanjuki opened this issue Oct 2, 2024 · 1 comment
Open
3 tasks done

Bug: Identical rows in members list export #3152

dwanjuki opened this issue Oct 2, 2024 · 1 comment

Comments

@dwanjuki
Copy link
Contributor

dwanjuki commented Oct 2, 2024

Describe the bug
The Members List export CSV file contains some duplicate rows if more than two iterations are required to process all the members. Sites with 4000+ members affected.

To Reproduce
Steps to reproduce the behavior:

  1. Filter pmpro_set_max_user_per_export_loop so that the maximum users per export loop is less than half your member count.
  2. Export the Members List CSV.
  3. Sort your CSV file by email or id columns.
  4. Observe that identical rows exist for some members.

Screenshots
Export from a test site with 3 members and pmpro_set_max_user_per_export_loop set to 1.
Row 5 is a duplicate of row 4.

duplicate-row

Benchmark log from the above export:

PMPRO_BENCHMARK - Total records to process: 3
PMPRO_BENCHMARK - Will process 3 iterations of max 1 records per iteration.
PMPRO_BENCHMARK - For iteration #1 of 3 - Records processed: 1
PMPRO_BENCHMARK - For iteration #2 of 3 - Records processed: 2
PMPRO_BENCHMARK - For iteration #3 of 3 - Records processed: 1

Expected behavior
There should not be any completely identical rows in the export file.

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

WP 6.6.2 PMPro 3.1.4
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

2 participants
@dwanjuki and others