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.
-
AuthorPosts
-
June 15, 2024 at 10:37 am #28261
yokko
ParticipantAfter 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} thrownJune 16, 2024 at 8:54 pm #28262The Assurer
ModeratorPlease 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 #28263yokko
ParticipantI 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 #28275The Assurer
ModeratorYou are using SWPM version 4.4.8 or later?
https://downloads.wordpress.org/plugin/simple-membership.zipJune 18, 2024 at 2:47 am #28276yokko
ParticipantYes, 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 #28279The Assurer
Moderator1. 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 #28282yokko
Participant1.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 #28286The Assurer
ModeratorI 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 #28289yokko
ParticipantThe 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 #28292The Assurer
ModeratorAnd you logged into WP using the WORDPRESS login page?
Your-site/wp-login.phpJune 21, 2024 at 2:01 am #28294yokko
ParticipantYes. I’m trying it now. And I attached the error that is coming out first.
June 23, 2024 at 12:08 am #28304The Assurer
ModeratorWere you trying to do THIS?
https://simple-membership-plugin.com/providing-specific-wp-user-roles-access-plugins-admin-dashboard/ -
AuthorPosts
- You must be logged in to reply to this topic.