• Resolved dspanogle

    (@dspanogle)


    I have SWPM Show Member Info plugin (Add in) 2.1
    The [swpm_show_member_info column=”expiry_date”] creates an error if it exists in a page that is protected to logged in users only and page is opened by a person NOT LOGGED IN. Here is code:

    [swpm_protected visible_to="logged_in_users_only"]

    Hello [swpm_show_member_info column="first_name"] [swpm_show_member_info column="last_name"]
    Membership Level: [swpm_show_member_info column="membership_level_name"]Account Status: [swpm_show_member_info column="account_state"]
    Membership Expires: [swpm_show_member_info column="expiry_date"]


    [/swpm_protected]

    That code gets this error message when page is selected and NO account holder is logged in:

    Error! This member profile (Member ID: ) does not have a valid membership level assigned. The site admin needs to assign a valid membership level to this member profile.

    However if I remove the expiry_date line then it works as expected when NO user is logged in

    [swpm_protected visible_to="logged_in_users_only"]

    Hello [swpm_show_member_info column="first_name"] [swpm_show_member_info column="last_name"]
    Membership Level: [swpm_show_member_info column="membership_level_name"]
    Account Status: [swpm_show_member_info column="account_state"]

    [/swpm_protected]

    Gives this expected result:
    This content is for members only.

    This seems to be a bug in the plugin or add in

    Any thoughts?

    • This topic was modified 3 months, 1 week ago by dspanogle.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support mbrsolution

    (@mbrsolution)

    Thank you for reaching out to us. I just completed a test using the same details as yourself in my dev site and it works for me. I am using the latest WordPress version 6.6.1 and the latest WP Simple Membership plugin version 4.5.1. The addons are both up to date, SWPM Partial Protection version 2.0 and SWPM Show Member Info version 2.2. Please make sure both of the addons and the plugin in your site are up to date.

    Let me know if this helps you.

    Kind regards.

    Thread Starter dspanogle

    (@dspanogle)

    Thank you for taking the time to test this.

    You are correct. Updating the two Add-ons fixed the issue. Site is on all the current versions as per your reply.

    I had not realized (or forgot) that some add-ons do not update automatically.

    Plugin Support mbrsolution

    (@mbrsolution)

    I am glad it is working as expected ?? Enjoy the plugin.

    Kind regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.