Simple Membership Plugin › Forums › Simple Membership Plugin › Error Page When Updating User Profile
- This topic has 6 replies, 5 voices, and was last updated 1 year, 10 months ago by
Tony.
-
AuthorPosts
-
June 6, 2024 at 3:30 pm #28208
Peter171
ParticipantHi there,
I have encountered an error when updating a user profile.
If I change a users account to a different tier (for example from paid to free manually) and then select save I get an error screen saying “Sorry you cannot access this page”.
This then logs me out and I have to log back in again get back to the dashboard. The user’s account in question did reflect the changes made.
The debug log records the following when this happens
“Authentication cookies have been reset after the password update”
Which is odd as I haven’t changed my password.
Could you let me know if you are aware of this and what action, if any, to take to resolve this as it’s not ideal having to log in each time after I make changes to a users account.
Thanks
June 6, 2024 at 3:44 pm #28209Tony
ParticipantI have same problem.
I upgrade SMP to new version 4.4.7 and if I active new user my siteweb crash.I solve rollback to 4.4.6 version.
*********
Error details:
An E_ERROR error was caused in line 59 of the file /web/htdocs/www.xxxxx.xx/home/wp-content/plugins/simple-membership/classes/class.swpm-utils.php. Error message: Uncaught Exception: subcript_period parameter must be integer in SwpmUtils::calculate_subscription_period_days method in /web/htdocs/www.xxxxx.xx/home/wp-content/plugins/simple-membership/classes/class.swpm-utils. php:59
Stack traces:
#0 /web/htdocs/www.xxxxx.xx/home/wp-content/plugins/simple-membership/classes/class.swpm-utils.php(82): SwpmUtils::calculate_subscription_period_days()
#1 /web/htdocs/www.xxxxx.xx/home/wp-content/plugins/simple-membership/classes/class.swpm-auth.php(392): SwpmUtils::get_expiration_timestamp()
#2 /web/htdocs/www.xxxxx.xx/home/wp-content/plugins/simple-membership/classes/class.simple-wp-membership.php(517): SwpmAuth->reset_auth_cookies_after_pass_change()
#3 /web/htdocs/www.xxxxx.xx/home/wp-includes/class-wp-hook.php(324): SimpleWpMembership->sync_with_wp_profile()
#4 /web/htdocs/www.xxxxx.xx/home/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#5 /web/htdocs/www.xxxxx.xx/home/wp-includes/plugin.php(517): WP_Hook->do_action()
#6 /web/htdocs/www.xxxxx.xx/home/wp-includes/user.php(2475): do_action()
#7 /web/htdocs/www.xxxxx.xx/home/wp-includes/user.php(2598): wp_insert_user()
#8 /web/htdocs/www.xxxxx.xx/home/wp-content/plugins/simple-membership/classes/class.swpm-utils.php(259): wp_update_user()
#9 /web/htdocs/www.xxxxx.xx/home/wp-content/plugins/simple-membership/classes/class.swpm-admin-registration.php(131): SwpmUtils::update_wp_user()
#10 /web/htdocs/www.xxxxx.xx/home/wp-content/plugins/simple-membership/classes/class.swpm-init-time-tasks.php(75): SwpmAdminRegistration->edit_admin_end()
#11 /web/htdocs/www.xxxxx.xx/home/wp-content/plugins/simple-membership/classes/class.swpm-init-time-tasks.php(62): SwpmInitTimeTasks->admin_init()
#12 /web/htdocs/www.xxxxx.xx/home/wp-content/plugins/simple-membership/classes/class.simple-wp-membership.php(851): SwpmInitTimeTasks->do_init_tasks()
#13 /web/htdocs/www.xxxxx.xx/home/wp-includes/class-wp-hook.php(324): SimpleWpMembership->init_hook()
#14 /web/htdocs/www.xxxxx.xx/home/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#15 /web/htdocs/www.xxxxx.xx/home/wp-includes/plugin.php(517): WP_Hook->do_action()
#16 /web/htdocs/www.xxxxx.xx/home/wp-settings.php(695): do_action()
#17 /web/htdocs/www.xxxxx.xx/home/wp-config.php(90): require_once(‘…’)
#18 /web/htdocs/www.xxxxx.xx/home/wp-load.php(50): require_once(‘…’)
#19 /web/htdocs/www.xxxxx.xx/home/wp-admin/admin.php(34): require_once(‘…’)
#20 {main}
thrown
*********June 6, 2024 at 4:33 pm #28213The Assurer
Moderator@Toyn — The developer has been advised.
@Peter171 — What version of SWPM are you using?
June 6, 2024 at 4:46 pm #28214Peter171
ParticipantI am running the latest version 4.4.7, and it only started to happen after the update.
June 6, 2024 at 7:45 pm #28216hushdavid
ParticipantFollowing. This happened to me too.
@Tony How did you roll back the plugin?
June 7, 2024 at 12:26 am #28219admin
KeymasterI have rolled back some of the profile update related changes that were introduced in the previous version. Let me know if the the newly released v4.4.8 works better for you.
If you need a download link for the older version 4.4.6 (before the profile update related improvements/changes), you can download it using the following link:
https://downloads.wordpress.org/plugin/simple-membership.4.4.6.zipJune 7, 2024 at 2:23 am #28224Tony
ParticipantI installed and tested the newly released v4.4.8, now the update of user profiles works perfectly.
Very thanks..
@hushdavid “WP Rollback” plugin. -
AuthorPosts
- You must be logged in to reply to this topic.