brandthropologist
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Membership] Issues staying logged in when using Pantheon HostingHi, I’m including another update but please feel free to close this thread if it reopens.
After taking our site live on Pantheon hosting, we found that the renewals page wasn’t working as expected, it would not work for expired users of WP Simple Membership (WPSM.) Turns out that the comparison function to determine what a “system” page was for WPSM was failing because it was exposing the internal server urls (container URLs) that Pantheon hosting uses. There was a filter that we had to modify to always use get_site_url(), which fixed the issue, code below to include in your functions.php :/* Pantheon Patch for comparing URLS to not expose internal container URLs to WPSM */
add_filter( 'swpm_get_current_page_url_filter', 'current_env_url' );function current_env_url( $url ) {
return get_site_url() . $_SERVER['REQUEST_URI'];
}Forum: Plugins
In reply to: [Simple Membership] Issues staying logged in when using Pantheon HostingHi All,
Thanks for the help! We found that it was related to caching and how Pantheon handles cookies.
We wrote a patch for it that seems to have helped a lot (at the very least the page protection is working as expected) Including the code we used below for future people using Pantheon’s hosting. We included this code at the end of our child theme’s functions.php. ( No guarantees this will fix all your compatibility problems )//[simple membership pantheon patch] add_action( 'init', function() { if( class_exists( 'SwpmAuth' ) ) { $auth = SwpmAuth::get_instance(); if( !$auth->is_logged_in() ) { $user = wp_get_current_user(); if( !empty( $user ) && 0 !== $user->ID ) { $auth->login_to_swpm_using_wp_user( $user ); } } } } ); if( 'true' === @$_GET[ 'swpm-logout' ] ) { wp_logout(); }
We do seem to be having issues with the form builder add-on.
Error! Security check failed for membership level identifier validation. The submitted membership level data does not match.
I’ve found a fair number of folks have fixed the problem by downloading a new copy of the add-on and reinstalling it. But, since we took over the site we’re not sure which paypal address was used to make the purchase, but we do have an active license. Is there a way we could get access to the latest version of form builder add-on so we can try updating to see if that fixes our final issues on Pantheon hosting. We’ll report back for anyone else using Pantheon.Forum: Plugins
In reply to: [Simple Membership] Issues staying logged in when using Pantheon HostingHi,
We have not protected any content, and the only plugin installed is Wp Simple Membership, and we are using the default 2024 theme.For example, if you login at /membership-login/ and then even just refresh the page it’ll log you out. Again I believe it’s something to do with cookies/caching.
Happy to answer anymore questions you may haveHi @belimperial,
Thank you very much for the response. About “could you send us a message at https://wppopupmaker.com/support”, when I go to https://wppopupmaker.com/support, I’m not seeing an option to send a message except for Facebook. Could you let me know how a message can be sent from https://wppopupmaker.com/support?
Thank you very much.
Jin