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] I can’t log in with php8.0

Simple Membership Plugin › Forums › Simple Membership Plugin › I can’t log in with php8.0

Tagged: php8.0

  • This topic has 11 replies, 2 voices, and was last updated 2 years, 3 months ago by The Assurer.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • June 15, 2024 at 10:37 am #28261
    yokko
    Participant

    After updating from PHP7.4 to PHP8.0, the administrator can no longer log in to the management page. There is an error below on the debug. Could you tell me the countermeasures? The trouble shooting procedure was completely tried.
    ————
    ! This plugin failed in normal roads and was paused in recovery mode.
    wp_authenticate action. Empty username provided. Adding set_current_username hook to catch potential login attempt.
    ————

    and the following error was displayed in recovery mode.
    ————
    Uncaught Exception: subcript_period parameter must be integer in SwpmUtils::calculate_subscription_period_days method in wp-content/plugins/simple-membership/classes/class.swpm-utils.php:59 Stack trace: #0 wp-content/plugins/simple-membership/classes/class.swpm-utils.php(82): SwpmUtils::calculate_subscription_period_days(”, ”) #1 wp-content/plugins/simple-membership/classes/class.swpm-utils.php(90): SwpmUtils::get_expiration_timestamp(Object(stdClass)) #2 wp-content/plugins/simple-membership/classes/class.swpm-auth.php(186): SwpmUtils::is_subscription_expired(Object(stdClass)) #3 wp-content/plugins/simple-membership/classes/class.swpm-auth.php(122): SwpmAuth->check_constraints() #4 wp-content/plugins/simple-membership/classes/class.swpm-auth.php(246): SwpmAuth->authenticate(‘…’, ‘…’) #5 wp-content/plugins/simple-membership/classes/class.simple-wp-membership.php(432): SwpmAuth->login(‘…’, ‘…’, true) #6 wp-includes/class-wp-hook.php(324): SimpleWpMembership->wp_authenticate_handler(‘…’, ‘…’) #7 wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #8 wp-includes/plugin.php(565): WP_Hook->do_action(Array) #9 wp-includes/user.php(78): do_action_ref_array(‘wp_authenticate’, Array) #10 wp-login.php(1311): wp_signon(Array, ”) #11 {main} thrown

    June 16, 2024 at 8:54 pm #28262
    The Assurer
    Moderator

    Please ensure that you are using the most updated version of SWPM and all associated addons. PHP 8.x has been out for many years, and any incompatibilities have long been resolved.

    June 16, 2024 at 10:04 pm #28263
    yokko
    Participant

    I use the latest version. However, in fact, I changed to PHP8.0, it got an error described. you knew when this error would come out, and hoped that you could propose a solution.

    June 18, 2024 at 2:23 am #28275
    The Assurer
    Moderator

    You are using SWPM version 4.4.8 or later?
    https://downloads.wordpress.org/plugin/simple-membership.zip

    June 18, 2024 at 2:47 am #28276
    yokko
    Participant

    Yes, it is. 4.4.8.
    The WP is 6.5.4 now, but it was the same for older versions.

    June 18, 2024 at 11:59 pm #28279
    The Assurer
    Moderator

    1. Who is your hosting provider and what plan are you on?

    2. What OTHER plugins, themes and addons are you using?

    June 19, 2024 at 2:41 am #28282
    yokko
    Participant

    1.My hosting provider is LOLIPOP. The plan is Lite. SQL 8.0.
    2.Themes are Cocoon. I tried the Twenty Twenty-Four but got the same error.
    Now I use only Simple Membership. All other plugins off.

    I can’t log in as an administrator. Other things are working. I can create a test account. and then I can read the page correctly.

    June 20, 2024 at 3:19 am #28286
    The Assurer
    Moderator

    I can’t log in as an administrator. Other things are working. I can create a test account. and then I can read the page correctly.

    Something does not sound right. Perhaps we are having a language translation difficulty.

    There is no such thing as an SWPM admin account. All SWPM MEMBERSHIP accounts are equal, except for what protected content pages they have access to.

    Is the problem that, using your WP admin USER account, you are not able to access the SWPM dashboard?

    Are your WP USER accounts synced to, or separate, from your SWPM MEMBERSHIP accounts?

    June 20, 2024 at 4:34 am #28289
    yokko
    Participant

    The problem is that I cannot log in to the WP dashboard with the WP Admin user account.
    SWPM detailed “Force WP user synchronization” is off.

    June 21, 2024 at 1:50 am #28292
    The Assurer
    Moderator

    And you logged into WP using the WORDPRESS login page?
    Your-site/wp-login.php

    June 21, 2024 at 2:01 am #28294
    yokko
    Participant

    Yes. I’m trying it now. And I attached the error that is coming out first.

    June 23, 2024 at 12:08 am #28304
    The Assurer
    Moderator

    Were you trying to do THIS?
    https://simple-membership-plugin.com/providing-specific-wp-user-roles-access-plugins-admin-dashboard/

  • Author
    Posts
Viewing 12 posts - 1 through 12 (of 12 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