Forum Replies Created
-
AuthorPosts
-
admin
KeymasterHi, A custom post type archive like /resources isn’t a regular page or post, so it doesn’t have the protection settings box in the editor. Protecting the Elementor template won’t work either, because the template is only a layout.
You can protect it with the URL lockdown feature in the Full Page Protection addon. It works with the page URL, so it doesn’t need a page in the dashboard.
https://simple-membership-plugin.com/full-page-protection-addon-simple-membership/- Install and activate the Full Page Protection addon.
- Go to its settings page in the Simple Membership menu.
- Check the Lockdown Specific Page URL option.
- In the URLs field, enter the full archive URL, including
https://. For example:https://yourdomain.com/resources
If your archive has multiple pages, add /resources/page/ to the URL Patterns field so the paginated pages (/resources/page/2/, etc.) are protected too. - Save the settings, then test the archive in a private/incognito browser window.
- Visitors who aren’t logged in, and members whose account has expired, will see the protection message instead of the archive.
Please note this feature checks whether the visitor is a logged-in member with an active account. It doesn’t check a specific membership level. Since your site uses the Lifetime level, this should be exactly what you need. If you add more membership levels later and want only certain levels to see the archive, let us know and we can suggest a small code snippet for that.
Hope this helps.
October 13, 2026 at 6:06 am in reply to: Login loop caused by POST grace period on expired auth cookie #32373admin
KeymasterHi, Thank you for the detailed report and the clear analysis. It made this easy to track down.
We’ve confirmed the issue. If the login form is submitted within the one-hour POST grace period after the login cookie has expired, the old cookie is still accepted for that request. As a result, the login isn’t processed and no new cookie is set, which causes the loop you described. You were also right that the logout request returns early in that state and leaves the stale cookie in place.
We’ve applied a fix for both:
A login form submission is now always processed, even if an expired cookie is still within the grace period. This creates a fresh login session.
The logout request now clears any leftover auth cookies, even when the login session is no longer valid.
The fix is going through testing now and will be in the next plugin update, which should be out in the next few days. Until then, a member who runs into this can clear the site’s cookies in their browser and log in again.admin
KeymasterThis is expected behavior in the latest version. Starting with v4.8.4, the plugin no longer includes passwords in registration or activation emails, including accounts created from the admin side. This is a security improvement, because emails are not a safe place to store passwords. Existing email templates that use the {password} tag now show a short note instead, telling the member to use the password reset option if needed.
To make the email read cleanly, you can update the template:
1) Go to Simple Membership -> Settings -> Email Settings.
2) In the registration complete email (and the email activation email, if you use it), remove the line that contains {password}.
3) Add a line telling the member how to sign in, for example: “You can log in here: {login_link}. If you don’t know your password, use the ‘Forgot Password’ option on the login page to set a new one.”
If you create accounts manually and want the member to use a password you chose, please share it with them through a separate, secure channel. Otherwise, the member can simply set their own password using the password reset option.
admin
KeymasterThe Show Member Info shortcode is designed to show a message when nobody is logged in. To hide those fields completely from visitors, you can try the following:
Wrap them in the section protection shortcode from our free Partial Protection addon.
Install and activate the addon:
https://simple-membership-plugin.com/apply-partial-section-protection/Wrap your member info shortcodes like this:
[swpm_protected visible_to="logged_in_users_only" do_not_show_protected_msg="1"] Email: [swpm_show_member_info column="email"] Account Status: [swpm_show_member_info column="account_state"] Expiry Date: [swpm_show_member_info column="expiry_date"] Membership Level: [swpm_show_member_info column="membership_level_name"] [/swpm_protected]With this, visitors who are not logged in won’t see anything in that area: no labels, no message, and no empty space. Once a member logs in, the information appears.
As before, please type or paste the shortcode in a Shortcode block (or the Text tab of the classic editor) so the quotes stay straight.
admin
KeymasterThis is most likely a copy-and-paste formatting issue. When shortcodes are copied from the forum, the straight double quotes (“) often get converted into curly quotes (” or “). The shortcode then can’t recognise the field name, so it outputs nothing when you are logged in.
Please delete the existing shortcodes and type them again manually using straight quotes. For example:
[swpm_show_member_info column="email"] [swpm_show_member_info column="account_state"] [swpm_show_member_info column="expiry_date"] [swpm_show_member_info column="membership_level_name"]If you use the block editor, add them inside a Shortcode block. If you use the classic editor, paste them while in the Text tab, not the Visual tab. This keeps the quotes from being reformatted.
The addon documentation also has a tip about this:
https://simple-membership-plugin.com/simple-membership-addon-show-member-info/#tip-for-copying-and-pasting-the-shortcodeIf it still shows empty after that, please let me know the following:
1) Whether the logged-in account is an actual member account (not just a WordPress admin user without a member record).
2) Whether you use any caching plugin. If you do, try excluding that page from caching.
https://simple-membership-plugin.com/understanding-the-impact-of-caching-on-membership-sites/admin
KeymasterThe [swpm_show_expiry_date] shortcode doesn’t currently have an option to change the date that way. It shows the expiry date in the format set under Settings -> General -> Date Format, but it can’t move it to the previous day or add a time.
We’ve added two new filter hooks to this shortcode, and they will be included in the next release of the plugin (v4.8.4). Once you’ve updated, you can add the following code to show the expiry date as the previous day at 11:59pm:
add_filter( 'swpm_show_expiry_date_value', function( $expiry_date, $expiry_timestamp ) { if ( $expiry_timestamp == PHP_INT_MAX ) { return $expiry_date; // No expiry. } return date_i18n( 'F j, Y', $expiry_timestamp - DAY_IN_SECONDS ) . ' at 11:59pm'; }, 10, 2 );You can add it using a plugin like Code Snippets, or in your child theme’s functions.php file. For example, an expiry date of September 6, 2026 will then show as “September 5, 2026 at 11:59pm”.
Please note this code will only work after you update to the new version v4.8.4. I am aiming to release this version within the next few days.
admin
KeymasterIf you want to show individual details of the logged-in member (instead of the combined block shown by the login form), you can use the Show Member Info addon. It gives you a shortcode that outputs one field at a time, for example:
[swpm_show_member_info column=”email”]
[swpm_show_member_info column=”account_state”]
[swpm_show_member_info column=”expiry_date”]
[swpm_show_member_info column=”membership_level_name”]You can place each one anywhere on a page. The full list of supported fields is on the addon page:
https://simple-membership-plugin.com/simple-membership-addon-show-member-info/For the expiry date only, the core plugin also has this shortcode:
[swpm_show_expiry_date]
If you need the data in custom PHP code instead, you can use:
if ( SwpmMemberUtils::is_member_logged_in() ) { $member_id = SwpmMemberUtils::get_logged_in_members_id(); $email = SwpmMemberUtils::get_member_field_by_id( $member_id, 'email' ); }If I’ve misunderstood what you’re trying to do, please give a little more detail on where you want this information to appear or be used.
September 23, 2026 at 5:25 am in reply to: Incomplete user account creation after successful payment #32351admin
KeymasterWhy no email is sent when the account is created at checkout
When the account is created on the WooCommerce checkout page, WooCommerce creates it as a WordPress user, not through our registration form. Our plugin then creates the matching member record automatically, using the “Enable Auto Create Member Accounts” option. That automatic step doesn’t send an email. The Simple Membership registration email only goes out when someone submits our registration form (the [swpm_registration_form] shortcode) or completes their registration through the completion link.
So in this setup, the welcome email at account creation comes from WooCommerce. Go to WooCommerce > Settings > Emails and make sure the New account email is enabled. Once payment is confirmed, the member then gets our upgrade email.
If you want the Simple Membership registration email instead, have users sign up with our registration form before they go to checkout.
Password reset tag
There’s a {password_reset_link} tag, but it only works in the password reset email, because that’s the only time a reset key is generated. In any other email it will be empty.
In the upgrade email, just add your password reset page URL as plain text. For example:
Forgot your password? Reset it here: https://yourdomain.com/membership-login/password-reset/You can copy the exact URL from the Password Reset Page URL field in WP Membership > Settings > General Settings.
September 23, 2026 at 5:21 am in reply to: wp-admin session invalidated (reauth=1) after updating to 4.8.3 #32350admin
KeymasterHi Carlos,
Short answer first: there’s no change in 4.8.3 that touches wp-admin session or cookie validation, so rolling back to 4.8.2 probably won’t help you. Your isolation result is still real though, and I can point you at the exact code in the plugin that’s capable of producing reauth=1, plus why one of your own troubleshooting steps may have made it worse.
On 4.8.3
I went through the full 4.8.2 to 4.8.3 diff before replying. The changes are Stripe/PayPal IPN handling and payment button ID validation, annual fixed-date expiry calculation, some new opt-in subscription renewal email settings, the login event auto-prune window, and moving the auto-login-after-registration handler out of init. None of it calls into WordPress’s auth cookie or session APIs. You read the changelog correctly. We also have no other reports of this from Hostinger or LiteSpeed users.
How the plugin can still cause it
There are three code paths in Simple Membership that call wp_destroy_current_session() and wp_clear_auth_cookie(). They all run on init or wp_loaded, which fire before auth_redirect() in wp-admin. So if one of them triggers, WordPress’s session token check fails milliseconds later in the same request, and you get bounced to wp-login.php?…&reauth=1. That’s exactly your symptom, and it’s why deactivating the plugin makes wp-admin stable.
The most likely of the three is our cookie integrity check. Our auth cookie’s HMAC is derived from your AUTH_KEY and AUTH_SALT values. You mentioned regenerating the salts in wp-config.php as one of your fix attempts, and that invalidates every Simple Membership cookie already sitting in a browser. Our code reacts to a failed check by clearing the WordPress session too. If the stale cookie then doesn’t get removed cleanly (which happens when COOKIE_DOMAIN or COOKIEPATH don’t match whatever originally set it, www vs non-www being the usual culprit), it keeps re-triggering on every request. It’s possible the salt regeneration turned an intermittent problem into a permanent one.
One thing I’d gently push back on: “the public site works” doesn’t actually clear the cookie layer. reauth=1 means auth_redirect() rejected the wordpress_[hash] / wordpress_sec_[hash] cookie, and that one is scoped to /wp-admin. The logged_in cookie at path / can be completely valid at the same time, which is why your front end behaves normally. That also means object caching of the session_tokens user meta isn’t fully ruled out by the tests you ran, even though I agree you’ve been thorough with LiteSpeed.
What would settle this
#1) Clear all cookies for guiacepa.com in your test browser, both www and non-www. This is necessary after a salt change regardless, and it might be the whole fix.
#2) Turn on our auth debug log: WP Membership, Settings, Advanced Settings, “Enable Debug”. Reactivate the plugin, reproduce the logout, then check the wp-content/plugins/simple-membership/log-auth-*.txt. If it shows Validate() function – Bad hash or Active login limit feature – login session token expired at the time of the logout, that narrows it to one specific branch.
#3) Log the WordPress side too. Drop this into wp-content/mu-plugins/auth-debug.php, reproduce, and send the matching lines from your PHP error log:
<?php add_action('auth_cookie_bad_hash', function($c){ error_log('SWPM-DBG bad_hash '.print_r($c,true)); }); add_action('auth_cookie_bad_session_token', function($c){ error_log('SWPM-DBG bad_session_token '.print_r($c,true)); }); add_action('auth_cookie_expired', function($c){ error_log('SWPM-DBG expired '.print_r($c,true)); }); add_action('clear_auth_cookie', function(){ error_log('SWPM-DBG clear_auth_cookie '.wp_debug_backtrace_summary()); });bad_session_token means something destroyed the session. bad_hash points at salts or a cookie scope mismatch. And the clear_auth_cookie backtrace will name the function responsible outright, so if it’s our code, our file will be right there in the trace.
#4) Check three settings under Advanced Settings and tell me whether each is on or off: “Force WP User Synchronization”, “Enable Active Login Limit”, and “Disable Access to WP Dashboard”. All three interact with session handling.
#5) Is your admin WordPress account also a member record? Check for the same username or the same email address under WP Membership, Members. If it is, that links the two session systems together and makes the paths above reachable for your admin user.
#6) Delete and reinstall Simple Membership 4.8.3 from scratch, rather than updating in place. Those 19 HTTP 500s bracketing the 21:39 update, plus Hostinger flagging the site as Inaccessible, look a lot like an interrupted or partially written update. A clean reinstall costs you nothing and rules it out. Your settings and member data live in the database, so nothing is lost.
#7) If you still have them, the PHP error log lines from 21:24 to 21:53 UTC on 2026-09-17 would be a very useful thing you could share with us.
If you’d rather keep the plugin deactivated while we work through this, that’s fine. Do steps 1 and 6 first, and just send the logs from step 2 or 3 if you can reproduce it once. With either log, I can tell you definitively whether this is our code or something in the environment, and if it’s ours, it goes into the next release.
September 22, 2026 at 4:32 am in reply to: Incomplete user account creation after successful payment #32346admin
KeymasterGlad the account-first setup is working.
The empty password is expected. The plugin never stores passwords in readable form. When a user sets a password, it’s encrypted (hashed) right away.
#1) When the user completes registration via the link, the plugin sends the email at the moment the user submits the form. The password they just typed is still available, so the {password} tag gets filled in.
#2) When an existing member upgrades after payment, the account and password were created earlier. By the time the payment email goes out, the plugin only has the encrypted version, so there’s nothing it can put in the {password} tag.
There’s no safe way to show the password in that email. We recommend editing that email template (WP Membership -> Settings -> Email Settings) as follows:
Remove the {password} tag.
Remind the user to log in with the username and password they chose when they created their account.
Include the {login_link} tag, plus a link to your password reset page in case they forgot it.These users only just created their account at checkout, so they’ll normally know their password already.
Email settings documentation:
https://simple-membership-plugin.com/simple-membership-documentation/September 22, 2026 at 4:24 am in reply to: Incomplete user account creation after successful payment #32343admin
KeymasterGlad the account-first setup is working.
The empty password is expected. The plugin never stores passwords in readable form. When a user sets a password, it’s encrypted (hashed) right away.
#1) When the user completes registration via the link, the plugin sends the email at the moment the user submits the form. The password they just typed is still available, so the {password} tag gets filled in.
#2) When an existing member upgrades after payment, the account and password were created earlier. By the time the payment email goes out, the plugin only has the encrypted version, so there’s nothing it can put in the {password} tag.
There’s no safe way to show the password in that email. We recommend editing that email template (WP Membership -> Settings -> Email Settings) as follows:
Remove the {password} tag.
Remind the user to log in with the username and password they chose when they created their account.
Include the {login_link} tag, plus a link to your password reset page in case they forgot it.These users only just created their account at checkout, so they’ll normally know their password already.
Email settings documentation:
https://simple-membership-plugin.com/simple-membership-documentation/admin
KeymasterNo, that’s not possible with our plugin unfortunately.
September 19, 2026 at 5:53 am in reply to: Incomplete user account creation after successful payment #32336admin
KeymasterPlease refresh this page and check the reply that was posted an hour ago.
September 19, 2026 at 5:13 am in reply to: Incomplete user account creation after successful payment #32333admin
KeymasterThe “page not found” error means the registration completion link is pointing to a page that doesn’t exist on your site. The plugin builds that link from the Registration Page URL value in the plugin settings. If the registration page was renamed, moved, deleted, or had its slug changed, and that setting wasn’t updated to match, every completion link will lead to a 404.
This also explains why the new link you generated from the Tools menu failed too. It’s built from the same setting.
Please do the following:
- Go to WP Membership -> Settings -> General Settings and find the Registration Page URL field.
- Copy that URL and open it in a browser. If it shows “page not found”, that’s the cause.
- Update the field with the correct URL of the page that contains the [swpm_registration_form] shortcode, then save.
- Check the other required page URLs in the same section (login, profile, password reset) while you’re there.
This guide explains how the required pages work and how to recreate them if needed:
https://simple-membership-plugin.com/recreating-required-pages-simple-membership-plugin/For customers who have already paid: the links they received by email contain the old, broken URL, so they won’t work even after the fix. Once the setting is corrected, go to WP Membership > Tools, generate a fresh registration completion link for each incomplete account, and send it to them.
To prevent this in the future: you can use a setup where users create their account first and then make the payment. That way nobody ever ends up in a state where they’ve paid but can’t finish setting up their account:
https://simple-membership-plugin.com/allowing-members-create-account-prior-completing-membership-payment/admin
KeymasterThe account expiry value is stored and calculated as a date only, so there is no time value attached to it that the plugin can display. The date is formatted using your WordPress date format setting (Settings > General), which is why adding a time to that format would only ever show 12:00 am.
That said, what you want to display is accurate. Internally the membership is treated as expired from the start of the expiry date, so an expiry of September 28, 2026 means the member’s access ends at the end of September 27. If you want the account page to say it that way, you can override the template that renders it.
Copy the plugin’s views/loggedin.php file to your theme in the following location:
/wp-content/themes/your-child-theme/simple-membership/loggedin.phpThen in your copy, replace the line that outputs $auth->get_expire_date(); with something like this:
$member_id = SwpmMemberUtils::get_logged_in_members_id(); $expiry_ts = SwpmMemberUtils::get_expiry_date_timestamp_by_user_id( $member_id ); if ( $expiry_ts == PHP_INT_MAX ) { echo __( 'No Expiry', 'simple-membership' ); } else { echo date_i18n( 'F j, Y', $expiry_ts - DAY_IN_SECONDS ) . ', 11:59 pm'; }Adjust the date format string to suit. The template override is upgrade safe, so your customization will survive plugin updates. Note that this only changes the member account page. The expiry date shown in the admin member records and in email merge tags will still use the standard date.
Template customization documentation:
https://simple-membership-plugin.com/how-to-override-simple-membership-plugin-templates-in-your-theme/ -
AuthorPosts