Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact

[Resolved] Error Page When Updating User Profile

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.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • June 6, 2024 at 3:30 pm #28208
    Peter171
    Participant

    Hi 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 #28209
    Tony
    Participant

    I 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 #28213
    The Assurer
    Moderator

    @Toyn — The developer has been advised.

    @Peter171 — What version of SWPM are you using?

    June 6, 2024 at 4:46 pm #28214
    Peter171
    Participant

    I am running the latest version 4.4.7, and it only started to happen after the update.

    June 6, 2024 at 7:45 pm #28216
    hushdavid
    Participant

    Following. This happened to me too.

    @Tony How did you roll back the plugin?

    June 7, 2024 at 12:26 am #28219
    admin
    Keymaster

    I 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.zip

    June 7, 2024 at 2:23 am #28224
    Tony
    Participant

    I installed and tested the newly released v4.4.8, now the update of user profiles works perfectly.
    Very thanks..


    @hushdavid
    “WP Rollback” plugin.

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Log In

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy