Comments (5)
Hi,
I have the same problem, I looked at the code and managed to fix it by hooking in my theme's functions the following action:
add_action( "pmpro_membership_post_membership_expiry", "fix_pmpro_membership_post_membership_expiry", 10, 2 );
public function fix_pmpro_membership_post_membership_expiry( $user_id, $membership_id )
{
pmpro_changeMembershipLevel( false, $user_id, "expired", $membership_id );
}
It works but I'm not sure there can't be some collateral effects, a note from the author would be great.
However, I noticed this addon is no longer offically available, probably there are other open issues.
Hope to help!
from pmpro-multiple-memberships-per-user.
@itibet thank you very much will try it today
from pmpro-multiple-memberships-per-user.
The above code solved the issue on Vagrant (Local set up) but after publishing to live server no changes happened.
I see an error in my logs like so (this error may be caused by back ticks)
WordPress database error Unknown column 'mlg.group' in 'where clause' for query \n\t\t\t\t\tSELECT level \n\t\t\t\t\tFROM wp_pmpro_membership_levels_groups AS mlg \n\t\t\t\t\tINNER JOIN wp_pmpro_membership_levels AS ml ON `ml.id` = `mlg.level` AND `ml.allow_signups` LIKE '1'\n\t\t\t\t\tWHERE `mlg.group` = 1 \n\t\t\t\t\tAND `ml.id` IN (2,3,4,6,8,9,10 )\n\t\t\t\t\tORDER BY level ASC made by require('wp-blog-header.php'), wp, WP->main, do_action_ref_array, WP_Hook->do_action, WP_Hook->apply_filters, pmpro_wp, require_once('/plugins/paid-memberships-pro/preheaders/checkout.php'), do_action('pmpro_after_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, pmprommpu_pmpro_after_checkout, pmprommpu_get_levels_and_groups_in_order, referer: http://www.taxworld.co.uk/membership-account/membership-checkout/?level=4
from pmpro-multiple-memberships-per-user.
Hi, that's another issue, see: #2
from pmpro-multiple-memberships-per-user.
It is but solution provided only worked after back ticks were removed not sure if its related but should be all sorted now. Thank you
from pmpro-multiple-memberships-per-user.
Related Issues (20)
- Issue with this add-on and the Captcha in PMPro checkout HOT 1
- Bug: MMPU removes TOS content history
- Membership level not added to new group HOT 3
- Conflict with ToolSet Backend UI Dialog Connect
- Bug: applydiscountcode AJAX call triggered twice
- Change membership level access does not send an email HOT 3
- The button cannot be translated "Checkout"
- One level per group setting not enforced correctly at checkout HOT 2
- Not working with the new version of PMPRO
- Default level not pulled from Membership Checkout Form block if set HOT 2
- Enhancement: Allow user to display level options in ASC Order on user admin page
- Error of type E_ERROR in PHP 8.0+ HOT 3
- Discount Pricing Issue
- Bug: Single checkout for multiple levels fails if the Stripe transaction requires SCA
- Customized levels page by membership request HOT 3
- New pmpro changes HOT 2
- Price logic in woocommerce HOT 1
- JavaScript Error on New Setups with No Levels
- Does not play well with RevolutionSlider HOT 1
- WordPress 5.6 jQuery version causing conflict with MMPU 0.7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pmpro-multiple-memberships-per-user.