Reset membership number

  • David Fletcher
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
5 years 6 months ago #118177 by David Fletcher
Reset membership number was created by David Fletcher
Tuan
I have been using the automatic membership ID generator for new members, in our case a 4 digit number.
The system has lost it's memory and is providing numbers in a sequence far in excess of the next available number.
I have tried to reset the start number under configuaration to the next availalbe, but the system still persists in it own sequence.
How can i reset the memory?
thanks
David

Please Log in or Create an account to join the conversation.

More
5 years 6 months ago #118179 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Reset membership number
Hi David

The issue is not very clear to me. What's the expected Membership ID? And what's generated Membership ID?

Maybe you can submit a support ticket sending us super admin account of your site so that I can check your setup to see what's wrong and get it corrected for you.

Tuan

Please Log in or Create an account to join the conversation.

  • David Fletcher
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
5 years 6 months ago #118418 by David Fletcher
Replied by David Fletcher on topic Reset membership number
Tuan
Sorry for delay in reponse
The next number free is 8222 but the actual one generated is 8502.
This has happened several times, the previous wrong number was 8501, and I manually reset to 8221. The system appears to be counting OK but it is not clear to me how its memory is set so that it knows what the next number should be.
What plugin is doing this? Maybe I have it disabled??
I am reluctant to give super admin access at this time, GDPR etc
David
.

Please Log in or Create an account to join the conversation.

More
5 years 6 months ago #118434 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Reset membership number
Hi David

1. The only plugin generates Membership ID is System - Membership Pro, method generateMembershipId. However, don't disable that plugin, it's required for Membership Pro to work properly

2. The actual code which calculate next Membership ID is getMembershipId method in components/com_osmembership/helper/helper.php . The logic is simple, just get max of current membership id + 1 to generate the Membership ID for that new member. So I really don't have any clue why it uses that strange number in your case

Honestly, without testing it directly on your site, there is no way for me to see the reasons and get it corrected. This is the first time I hear about this strange issue in the last few years

Tuan
The following user(s) said Thank You: David Fletcher

Please Log in or Create an account to join the conversation.

  • David Fletcher
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
5 years 5 months ago #118660 by David Fletcher
Replied by David Fletcher on topic Reset membership number
Solved

I cleared the joomla cache, and now it works correctly!

thank you for your guidance

David

Please Log in or Create an account to join the conversation.

More
5 years 5 months ago #118669 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Reset membership number
Great. Happy to hear that. Thanks for confirming David

Regards,

Tuan

Please Log in or Create an account to join the conversation.