Simple Membership Plugin › Forums › Simple Membership Plugin › WordPress user role not being updated
- This topic has 5 replies, 3 voices, and was last updated 7 years, 8 months ago by
musicmegga.
-
AuthorPosts
-
June 3, 2018 at 10:44 am #14590
Kingsley
ParticipantHi,
My Simple membership user levels get reflected correctly after payment, from a free account, to a premium account. However, the corresponding user under wordpress is not updated. Please advise.
Below is my log:
[06/03/2018 10:32 AM] – SUCCESS: Member registration complete email sent to: xxx@gmail.com. From email address value used:xxx@gmail.com
[06/03/2018 10:32 AM] – SUCCESS: Admin notification email sent to: xxxs@gmail.com
[06/03/2018 10:32 AM] – SUCCESS: Auto login after registration feature is enabled in settings. Performing auto login for user: freemaggie
[06/03/2018 10:32 AM] – SUCCESS: Handling auto login request…
[06/03/2018 10:33 AM] – SUCCESS: Paypal Class Initiated by 173.0.81.1
[06/03/2018 10:33 AM] – SUCCESS: Post string : transaction_subject=xxx
[06/03/2018 10:33 AM] – SUCCESS: Checking if PayPal IPN response is valid
[06/03/2018 10:33 AM] – SUCCESS: Connecting to: https://www.paypal.com/cgi-bin/webscr
[06/03/2018 10:33 AM] – SUCCESS: IPN successfully verified.
[06/03/2018 10:33 AM] – SUCCESS: Creating product Information to send.
[06/03/2018 10:33 AM] – SUCCESS: Transaction Type: Buy Now/Subscribe
[06/03/2018 10:33 AM] – SUCCESS: Item Number: 1255
[06/03/2018 10:33 AM] – SUCCESS: Item Name: Get Premium Access Now!
[06/03/2018 10:33 AM] – SUCCESS: Item Quantity: 1
[06/03/2018 10:33 AM] – SUCCESS: Item Total: 1.00
[06/03/2018 10:33 AM] – SUCCESS: Item Currency: USD
[06/03/2018 10:33 AM] – SUCCESS: Membership payment paid for membership level ID: 3
[06/03/2018 10:33 AM] – SUCCESS: Transaction type: subscr_payment. Checking if the member profile needed to be updated
[06/03/2018 10:33 AM] – SUCCESS: Updating subscription start date if applicable for this subscription payment. Subscriber ID: I-YURF6CMYUYJB Email: xxx@gmail.com
[06/03/2018 10:33 AM] – SUCCESS: Did not find an existing record in the members table for subscriber ID: I-YURF6CMYUYJB
[06/03/2018 10:33 AM] – SUCCESS: This is a new subscription payment for a new subscription agreement.
[06/03/2018 10:33 AM] – SUCCESS: Saving transaction data to the database table.
[06/03/2018 10:33 AM] – SUCCESS: Transaction data saved.
[06/03/2018 10:33 AM] – SUCCESS: Paypal class finished.——————————————————————
[06/03/2018 10:33 AM] – SUCCESS: Paypal Class Initiated by 173.0.81.1
[06/03/2018 10:33 AM] – SUCCESS: Post string : txn_type=xxx
[06/03/2018 10:33 AM] – SUCCESS: Checking if PayPal IPN response is valid
[06/03/2018 10:33 AM] – SUCCESS: Connecting to: https://www.paypal.com/cgi-bin/webscr
[06/03/2018 10:33 AM] – SUCCESS: IPN successfully verified.
[06/03/2018 10:33 AM] – SUCCESS: Creating product Information to send.
[06/03/2018 10:33 AM] – SUCCESS: Subscription signup IPN received… (handled by the subscription IPN handler)
[06/03/2018 10:33 AM] – SUCCESS: Found a membership level ID. Creating member account…
[06/03/2018 10:33 AM] – SUCCESS: swpm_handle_subsc_signup_stand_alone(). Custom value: subsc_ref=3&user_ip=202.21.158.37&swpm_id=11, Unique reference: I-YURF6CMYUYJB
[06/03/2018 10:33 AM] – SUCCESS: Modifying the existing membership profile… Member ID: 11
[06/03/2018 10:33 AM] – SUCCESS: Setting access starts date value to: 2018-06-03
[06/03/2018 10:33 AM] – SUCCESS: Updating the current membership level (2) of this member to the newly paid level (3)
[06/03/2018 10:33 AM] – SUCCESS: Member signup/upgrade completion email successfully sent to: xxx@gmail.com
[06/03/2018 10:33 AM] – SUCCESS: Paypal class finished.——————————————————————
June 3, 2018 at 7:12 pm #14592The Assurer
ModeratorThis is the expected behavior.
- The Membership Level “Role” designations only serve to populate the initial WP User table entries, whenever a new Member profile is first created.
- The scope of operation for SWPM is “content access.”
- The scope of operation for WordPress User Roles is “to give the site owner the ability to control what users can and cannot do within the site.”
https://codex.wordpress.org/Roles_and_Capabilities
- Role escalation & de-escalation is beyond the scope of operation for SWPM.
June 4, 2018 at 12:46 am #14602Kingsley
ParticipantThanks for the clarification.
July 31, 2018 at 10:50 pm #15093musicmegga
ParticipantThe Membership Level “Role” designations only serve to populate the initial WP User table entries, whenever a new Member profile is first created.
The scope of operation for SWPM is “content access.”
The scope of operation for WordPress User Roles is “to give the site owner the ability to control what users can and cannot do within the site.”
https://codex.wordpress.org/Roles_and_CapabilitiesMay I tag in on this question? I understand the different scope of SWPM and WP Users. It sounds like you are saying that If a member is deleted in SWPM, they will still be listed as a subscriber in the Users table. is that right?
Further, if I delete a User from the WP Users table, will I still need to delete them from the Members table?
Why would I do this? to clean up a really messed up group of users and members from someone not completing the setup of SWPM a few months ago.
August 1, 2018 at 12:35 pm #15096The Assurer
ModeratorThe SWPM Member tables are indexed to the WP User tables. If you delete a WP User, you should also delete the corresponding SWPM Member; because being a WP User is a prerequisite to being an SWPM Member. If you delete an SWPM Member, they can still be a WP User. Does that help?
August 2, 2018 at 10:17 pm #15112musicmegga
ParticipantYes, thanks.
- The Membership Level “Role” designations only serve to populate the initial WP User table entries, whenever a new Member profile is first created.
-
AuthorPosts
- You must be logged in to reply to this topic.