WordPress Simple Membership Troubleshooting provides solutions to some of the most common questions asked in the forum.
Last Updated: August 16, 2022
Latest News: Updated the documentation.
The solutions found here are compiled from both of the forums. The list will grow as I come across more questions asked by the users.
What You Need:
- Simple Membership plugin.
- (Optional: Documentation you might want to read how-to-deal-with-the-common-challenges-of-a-membership-site)
- (Optional: You might be interested in the following documentation adding-a-terms-and-conditions-and-privacy-policy-to-member-registration-page.)
WordPress Simple Membership Troubleshooting Solutions
Important Links
The following links can further help you troubleshoot your issues apart from the list of tips posted below.
- Various Troubleshooting Resources
- Common Reasons for Content Protection to Not Work
- Common Reasons for Member Login Related Issues
- Email Sending Issue On Your Site
- Test For Plugin And Theme Conflict Before Posting An Issue Or A Bug
- Premium Membership Registration Issue
Debug Mode
Note: Before you go ahead reading below to troubleshoot any of your issues, please check the following link.
Plugins Future
Q1 There are some questions being made in regards to Emails, plugins future and Security.
Answer: The following response was quoted by Admin in the forum.
Extra Functions
Q1 How do I redirect users to a different URL (different from the home page) after they log out?
Solution: You can use the following tweak to do a custom redirection after the logout event. Add the following code to your theme’s functions.php file and that should do the job.
add_action('swpm_logout', 'my_custom_after_logout_redirection');
function my_custom_after_logout_redirection()
{
$url = 'http://www.example.com/after-logout-page';//TODO - Specify the URL that you want to redirect to
wp_redirect($url);
exit();
}
(Solution provided by Admin Simple Membership)
=============================
Q2 How do I redirect a user to a custom URL after they submit the registration form?
Solution: You can add the following function to your theme functions.php file.
add_action('swpm_front_end_registration_complete', 'sam_after_registration_redirection');
function sam_after_registration_redirection()
{
$url = 'http://www.yourwebsite.com/thank-you/';//TODO - Specify the URL that you want to redirect to
wp_redirect($url);
}
=============================
Q3 I’m using PHP to check if the user is logged in from the following page: https://simple-membership-plugin.com/simple-membership-miscellaneous-php-tweaks/. A problem occurred when I deactivated the plugin. The PHP code actually caused the site to go down. How do I prevent this from happening again in the future?
Solution: You should check if the method exists. That will prevent any error from happening if the plugin is deactivated. Check the following forum post for the solution.
Add Attributes To Existing Forms
Q1 Is there some code I could add to an existing login form template I have setup that would login users?
Solution: The following solution was provided by ryanboyd in the support forum.
If you already have a dummy login setup on a part of your site just simply add name attributes as needed.
<form name="swpm-login-form" method="post">
<input type="text" class="" placeholder="User Name: " name="swpm_user_name">
<input type="password" class="" placeholder="Password: " name="swpm_password">
<input type="submit" class="" value="Login" name="swpm-login">
</form>
Date Format
Q1 In some cases you might want to change the date format for when memberships accounts expires?
Solution: Go to your WordPress general settings and make sure you have selected the date format you want to show for the expired membership accounts.
Discount Coupon
Q1 We would like to offer a coupon code for a discounted membership. We want to track usage of this coupon and limit the number of times it can be used. We currently have WooCommerce plugin installed.
Solution: You can add WooCommerce Simple Membership Plugin Integration. And manage the coupon discount via WooCommerce because this plugin accepts coupons. This works fine if you are going to be using WooCommerce to handle the payment. When you use Simple Membership WooCommerce integration addon, it will simply handle the user account creation after the transaction has been processed by WooCommerce. So you will use coupon in woocommerce and handle the payment via that plugin.
You can read more about this solution from the following support thread in the forum.
Hooks
Q1 Action hook swpm_payment_ipn_processed doesn’t work for recurring payments. Why is that?
Solution: It should get triggered both for the first payment and the recurring payments. Please enable the debug log feature of the plugin. Check the following support thread for more information.
Sandbox Issues
Q1 I have an issue with my sandbox transaction, it is not working. Do you support this?
Solution: No, we don’t really support troubleshooting sandbox issues. The reason is because our plugin already works in live mode. Trying to troubleshoot sandbox issue is time consuming. Check the following link forum post to learn more.
Subscriptions
Q1 I am having problems with subscription payments. I created a trial period of 3 months before paying a subscription with paypal, but after 1 month some users switch status to expired. If I activate them again, they get switched to Expired at their connection.
Solution: For a subscription payment, you should be using the “no expiry” settings in the membership level. When the subscription ends or is cancelled, the access will be revoked by the plugin.
Importing Members From CSV File
Q1 When I bulk import members, the data is imported correctly but the password is not imported. What can I do to fix this issue?
Solution: (Quoted by admin)
The user password for is not a plain text field so you can’t just import a plain password text directly into the database and expect it to work. Its encrypted using the same encryption the is used by WordPress (it is a one way encryption). This guarantees that only the user will ever know the password. This is the best security practice for storing user password.
Q2 When I bulk import members the data is imported correctly but the membership level is not imported. What can I do to fix this issue?
Solution: (Quoted by admin)
In the “Membership Level” column of your CSV file, you need to put the ID of the membership level (not the name). If you look at the example file, you will see that it has a value numeric value of 1 as the example (meaning it is an ID value). Membership level is something referenced from a different table so using an ID value is a proper way to reference it (a name value won’t work there).
==========================
Q3 When you bulk import users. If the user name column is not found, try the following solution.
Solution one: When you are creating a CSV file using Microsoft Excel for example; if the following CSV (Comma Delimited) format does not work, try CSV (MS-DOS) format.
Note: Click on the following URL simple-membership-bulk-import-member-data-csv-file to learn how to import members using a CSV file.
Email Related Issues
Q1 If you receive the following e-mails when the Notify User is enabled you need to use a third party plugin to control WordPress core default system. WordPress does that when a user’s password is changed.
Hi member,
This notice confirms that your password was changed on [WEBSITE NAME.]
If you did not change your password, please contact the Site Administrator at
[XXXX@XXXX.COM ]This email has been sent to [MEMBERS EMAIL ADDRESS]
Regards,
Q2 Email Shortcodes don’t work with Email Settings (Bulk Account Activate Notification)?
Answer: wp.insider wrote:
The bulk email can’t do the dynamic email tag filtering because it sends the same email text in bulk. Otherwise it would slow things down and cause problems when the number of members on the site increases.
You would need to use generic text for that bulk email.
=============================
Q3 Is there a way to set up the email address as the username?
Solution: You can instruct your users to use their “Email Address” in the username field. And then in the future they will be able to use that to log into the site.
Q4 The Admin is not receiving any emails?
Solution: Make sure you have enabled the following feature Send Notification To Admin under WP Membership -> Settings -> Email Settings?
Error Messages
Q1 I installed Form Builder add-on and after I received the following error message. How do I fix it?
Error Message:
Parse error: syntax error, unexpected T_STRING in /home/content/46/6017046/html/Wordpress/wp-content/plugins/swpm-recaptcha/classes/class.swpm-captcha.php on line 78
Solution: Your server maybe using a very old version of PHP. The Google Recpatcha library requires at least PHP v5.3.2. Ask your hosting provider what version of PHP they are using on your site and if they can upgrade to a version highert than PHP 5.3.2.
=============================
Q2 If you see the following error after a payment:
FAILURE :Error! Failed to insert a new member record. This request will fail.
https://simple-membership-plugin.com/setting-utf-8-formatting-for-your-paypal-ipn-messages/
=============================
Q3 I have installed the Form Builder Add-on and I see the following error Error! Form not found.?
Solution: When you install the Form Builder Add-on, if you have enabled Free Membership in the Settings you will need to create a new Free membership form.
=============================
Q4 What does the following error message mean?
WordPress account exists with given email. But given username doesn’t match
Explanation: WordPress doesn’t let you create multiple user accounts with the same email address or username. So when you use an email that ALREADY has a WP user account, you are going to get the error message you see above.
Solution: Go to your WP users menu and do a search using that email address. Delete that user account if you are not using it. Now you can use simple membership to create a NEW account using that same email address.
Alternatively, use a DIFFERENT email address that is not already in the system to create your user account.
=============================
Q5 I setup 2 membership options, Basic & Executive Membership. When I click on the button, I receive the following error message. How do I fix this?
“Things don’t appear to be working at the moment. Please try again later.”
Solution: Check to make sure you have the correct PayPal account. In this instance the person had a personal PayPal account and when they upgraded to a business account the error went away. You can check the following support thread to learn more.
Solution 2: If the URL on the browser has the following code &code=EWP_SETTINGS
. Then try the solution mentioned in the following link support thread.
Database Tables
Q1 The post protection status doesn’t seem to be stored anywhere in the post meta and I can’t see any hooks/filters that will do it. Where could I find this info in the database?
Explanation: It should be in the “swpm_membership_tbl” DB table.
=============================
Q2 How do I reset the USER Id?
Explanation: It’s a database table AUTO_INCREMENT value that you will need to reset in the DB if you really want to. It’s not recommended to reset it. That ID value is primarily used internally by the system. Your member’s will mainly use the username value. So it’s okay for that number to keep going. Click on the following link support thread to learn more.
Plugin Questions
Q1 What is the difference between inactive and expired members?
Explanation: (Explanation provided by wpinsider-1 in the forum)
If an account expires naturally then the account is set to expired. If an account is deactivated for other reasons such as someone cancelling an ongoing subscription or taking a refund etc then it is set to inactive.
Q4 How do you allow the members to delete their account?
Solution: Click on the following URL WordPress Simple Membership Advanced Settings. This will show where you go to set up this option.
=============================
Q5 How to renew an expired free membership account?
Answer: admin wrote:
Payment Button
Q1 I would like to implement the payment button in a form that does not recognize the shortcode, how can I do this?
Note: This is not really recommended however you could try the following.
Explanation: Use the payment button’s shortcode on an empty test page that you create in your WordPress page’s menu. Then view the “HTML” code of that page. You should be able to spot the section that is the payment button’s HTML code. Copy the button’s code and paste that in your other HTML page. You can learn more about it in the following forum post.
Themes Related Issues
Q1 What if the plugin is conflicting with your theme?
Explanation: You need to speak to your theme developers to look into the issue. If they won’t fix the issue and you don’t want to change the theme, then you can try one of the following option.
- You can check the following URL study this WordPress codex document; to determine which of your theme’s template files needs modification, and then change the excerpt display behavior to meet your needs.
- You can also complete a Paid Support request, and our developers will fix the theme for you.
=============================
Q2 Protection is not working with the new Divi Theme Builder.
Solution: Check the following support thread. Someone in the forum posted this solution.
=============================
Q3 I have a problem with Divi Builder. It does not protect the pages or post?
Solution: One of the developers posted some information regarding page builders like Divi, please check the following forum post to learn more. At present we offer the following solution which works with Divi Builder. So most protection will work fine.
https://simple-membership-plugin.com/full-page-protection-addon-simple-membership/
=============================
Q4 Protection is not working the way it should. The content in the post itself is private, but the post still shows up to Public and on the main Blog landing page it even shows the text in the Blog until you click in.
Solution: By default the post will be protected everywhere (when you protect it). Some themes will show an EXCERPT instead of the actual post content. So for example, some themes will show an excerpt on the blog posts listing page which will create the issue you explained. If your theme has an option to show full text instead of excerpt, then try that option to see if that works better. Also, Go to the following settings of WordPress and select the Full Text
option to see if that helps:
WordPress General Settings -> Reading -> For each post in a feed, include
Check the following support thread to learn more.
Miscellaneous
Q1 I don’t really understand how the upgrade process works?
Solution: (Quoted by admin)
This is how the upgrade button process works in our plugin.
Lets say a member purchased a $15 membership level A which is for 1 year term. Then somewhere in between the member pays for a $20 membership level B (which is also for a 1 year term). The new time will get added to the end of his existing one year term. So the user will have access for a total of 2 years.
In other words when level A is upgraded to level B before the year is completed — say 6 months into the contract — the member will have access to level B content which also includes level A content for the remaining 6 months and an additional 1 year is added at end of the 6 months period.
This simple method works good when the upgraded membership level contains all the content from the previous level and more. So in the above example, membership level B gives them access to all content from A and more. So an structure like “Bronze”, “Silver”, “Gold” etc. If your membership levels are completely unrelated to one another then it probably won’t work out good. In that case you will need to look for a different plugin which maybe more suited for your project.
=============================
Q2 You can’t login to Simple Membership when you are logged in to WP as admin. How can I fix this problem?
Solution: (Provided by wp.insider in the forum)
You can’t log into WP Admin and then in the same browser log in as a member. It doesn’t work that way.
If you want to test the member login functionality, then use a different browser where you are not also logged in as admin. Basically, create a scenario close to what your real users will face. Your real users are not going to be logged into your site as admin.
=============================
Q3 How to add a login/password field to header (instead of side widget)?
Solution: (Provided by admin in the forum)
You can use the following code to add the login form in any of your theme’s PHP file, for example the header.php.
<?php
echo do_shortcode('[swpm_login_form]');
?>
=============================
Q4 The login redirect add-on is not taking the member to the last page they visited. I am also using the custom message addon. Why is that?
Solution: The member must click on the login link inside a protected content in a page or post for the redirect to be triggered.
The following was quoted by admin in the forum.
The login redirect addon LOOKS for the special login link that the core plugin creates. It then replaces that login link with an extra parameter. If you use the custom messages addon to override the standard protection message of the plugin then the login addon can’t add the extra parameter. This is one of those features where you need to pick one (You can’t get both).
=============================
Q5 When members log in and forget to log out and close the browser, the plugin still thinks they are logged in. This causes some issues when the member opens up the browser and see that they are still logged in. How to fix this issue?
Solution: (Quoted by Admin)
Q6 Is there a way to analyze when members are logged in, counting member visits, and other member statistics?
Solution: Someone in the forum posted a solution that works with Matomo.
=============================
Q7 I have added a 90 day free trial – but the plugin still forces subscribers to enter a credit card on PayPal when signing up. Is there any way to avoid requiring payment info?
Solution: PayPal requires all trial subscription to have credit card. You can’t create a trial subscription without a card.
=============================
Q8 How do I download the latest version of a purchased add-0n?
Solution: You can download the latest version by clicking on the following URL re-download-the purchased add-ons.
=============================
Q9 When I add the following shortcode [ swpm_registration_form level=2], the Username is required to have 4 characters. What if I want to change the minimum or maximum characters allowed?
Solution: For user name length, edit the following file, views/add.php and search for minSize[4].
=============================
Q10 How does the Remember Me box work? In some cases when checked it does not remember a username and password after the member logs out.
Solution: Solution provided by The Assurer “Keymaster” in the support forum.
- If the “Remember Me” box is checked, the login cookie used by the plugin is given an expiration date of 14 days and 12 hours.
- If the “Remember Me” box is not checked, the login cookie used by the plugin is given an expiration date of 3 days.
- If the member’s browser is configured to clear all cookies, when the browser is closed; the effect is as if the member is logged out, every time they close their browser; regardless of whether or not the “Remember Me” box is checked.
- Otherwise, the 14.5 or 3 day cookie expiration will be in force. Note: You can read about it in the following support thread.
=============================
Q11 Many keep thinking that this plugin should protect posting of comments in a page or post. Please read the following to learn more.
The posting of comment is not restricted to any membership level. Posting of comment is not content.
The plugin ONLY protects actual content (like post/page/comment content) for a particular membership level. The ability to post comment is open for everyone (or to logged in members only). There is nothing to do with membership level when it comes to the comment posting ability.
This is how most of our users want that feature to behave. So we like to keep it that way.
(Solution provided by admin in the forum)
=============================
Q12 The plugin is not working with my custom post, I can’t protect the post. How do I fix this issue?
Solution: There is a new custom post add-on. This add-on works with some themes and plugins that rigth create custom post. Click on the following URL Custom Post Type Protection Enhanced to learn more.
=============================
Q13 Hi I noticed that after testing a login, the user stayed logged in even when the browser was closed. How do I force logout when user closes website?
Answer: admin wrote:
You can’t auto logout user when they close the browser. This plugin doesn’t work that way. It uses standard login/logout process. So when a member logs into the site, they won’t need to log in again for a period time (even if they close the browser). Just like how it works for most membership systems.
=============================
Q14 Can someone buy a gift membership subscription?
Answer: We currently don’t have an addon for this feature. One of the developers provided a couple of workarounds that might help you. Click the following link forum post and also the following forum post to learn more.
=============================
Q15 Simple Membership plugin is not working correctly with Jetpack?
Answer: Someone in the forum reported the following solution. Disable the option in Jetpack settings->Settings->Writing->Widgets-> “Enabler widget visibility controls to display widgets only on particular posts or pages”. Click the following link forum post to learn more.
=============================
Q16 If the user login on the regular Member Login page, they can easily access the protected pages. If they go directly to the protected page, they get the message “You need to login to view this content. Please Login. Not a Member? Join Us”. If they click “Login” from the protected page, it takes them to the regular Member Login page. They can then login and go to the protect page, but they get the “You need to login to view this content. Please Login. Not a Member? Join Us” message again. Refreshing the browser will allow them to view the protected page.
How can I make it so they don’t have to refresh the browser?
Answer: Try adding the “After Login Redirection for Members” Addon. Click the following link forum post to learn more.
Paid Support
There are times that the troubleshooting questions and answers provided above might not resolve your problem. The following list explains some of the known issues discovered by the developers when troubleshooting some websites.
#1) PHP session on the server is not functioning 100%.
#2) Some kind of caching issue. Could be a caching solution you are using or your hosting provider using caching. I have seen instances where the hosting provider said they are not doing any caching but then when I jumped on a site to investigate, I found that there were using some caching. On the cheaper hosting plans, some hosting companies just do some caching on the server end and they don’t tell you about it.
#3) You may have another plugin that is conflicting our user login functionality. I have seen plugins that just breaks the PHP Session functionality on the site and then when another plugin tries to use the PHP session, it doesn’t work for that plugin.
#4) Sometimes, I have found people to mix up the HTTPS and HTTP pages on their sites. So they have mixed pages on the same site. If a user logs in from the HTTPS page then goes to a non-https page, the authentication will drop due to security reasons. So if your members are login in from a HTTPS page for example and then you have specified an after login redirection that takes them to a non-https page, that is just not going to work. So pick HTTP or HTTPS then stick to that, don’t mix them up in the same site.
#5) The same goes for mixing “www” and “non-www” on the same site. Pick one and stick to it throughout that site.
etc.
If you want one of the developers to jump on your site and investigate the issue related to your particular site and setup, then you can use the following option: paid-support-simple-membership-plugin.
I will be adding more solutions to the list above in the future.
If you have any questions please let me know.
Enjoy.
Simple Membership Plugin Tutorial List:
Why don’t add the possibility to redirect the home page that is set in the wordpress generals settings, giving the opportunity to the website admin to set a specific page as dashboard for a specific user role / member level?
it is not difficult make a redirect in any other case. But there is a problem for the tile/logo: when you click to the title or logo the user is redirect to the home page of the website.
Instead, It would be great make redirect the user to a specific page for his membership level.
Hi G.Aloe, I am not following your question. What part of the plugin are you referring to in respect to the redirection settings?
When someone takes our a 3 month subscriptions after paypal they get the
Please complete your registration by visiting the following link:
BUT when they complete the link it says invalid membership level.
I have several levels but it is always the 3 month level.
I can not work out why..
Hi Stewart, please send via my contact form the settings for your 3 month membership level.
Your other option is to enable Debug Mode. Next time some renews their 3 month membership plan check the log file. Once that is done report back.
Kind regards
I am trying to use the directions to create a “simple logout link” from this page:
https://simple-membership-plugin.com/creating-member-logout-link/
When I put this into my menu and click it, I get the following message on a page:
—–HTTP Status 403 – type Status report
message
description Access to the specified resource has been forbidden.
Apache Tomcat/7.0.57—–
The most concerning part is the URL it sends me to appears to be some type of adserver? :
[http://beta.inclk….]
I have no idea what all this stuff means or what I may have screwed up in execution, but I am certainly not comfortable with seeing this reference to an adServe in the result. Can you clarify please?
Hi, what is the actual URL link that you are using?
Thank you
Hello
I’m just started with this plugin. I have added some members on as admin and now want to remove them but even if I delete them their email address is retained as belonging to an admin user so I can’t put them in again.
I have uninstalled and reinstalled the plugin but the information is still there. Is there a way of cleaning out the database?
Kath
Hi Kath, when you add a member it also gets added to WP Users. Check in your WP Users area and make sure you also delete the user from the list.
Let me know if you need more help.
Kind regards
Hi, I have created a popup in elementor for user login. All good. But when the user puts wrong credentials he is redirected to my_website.com/wp-admin. No idea what I am doing wrong
Hi,
I have replied to your issue in the forum post.
Thank you
Hi, I have downloaded the simple membership plugin in business WordPress.com. I can’t access payment and email settings at all and some other features too. What can I do?
Thank you
Hi, I am not sure if our plugin will work in wordpress.com. Our plugin is designed for wordpress.org. However you might want to carry out a plugin/theme conflict test to see if that fixes your issue.
Let me know if this helps you.
Thank you