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

Reply To: Redirect issues (not what you think :) )

Simple Membership Plugin › Forums › Simple Membership Plugin › Redirect issues (not what you think :) ) › Reply To: Redirect issues (not what you think :) )

October 20, 2019 at 3:08 pm #19146
RobL
Participant

I did more debugging and it’s becoming more clear there’s something odd going on here. It would be nice if someone could comment on my situation. I turned on the SWPM debugging for an environment that has no problem and one that does and then I logged into /wp-admin. The log file content is dramatically different.

Problem environment
——————-
[10/20/2019 2:43 PM] – SUCCESS: wp_authenticate action. Empty username provided. Adding set_current_username hook to catch potential login attempt.
[10/20/2019 2:43 PM] – SUCCESS: wp_authenticate action. Handling login for username: webmaster
[10/20/2019 2:43 PM] – SUCCESS: SwpmAuth::login()
[10/20/2019 2:43 PM] – SUCCESS: Authentication request – Username: webmaster
[10/20/2019 2:43 PM] – SUCCESS: Authentication successful for username: webmaster. Executing swpm_login action hook.
[10/20/2019 2:43 PM] – SUCCESS: Trying wp_signon() with username: webmaster
[10/20/2019 2:43 PM] – SUCCESS: wp_authenticate action. User with username: webmaster is already logged in.
[10/20/2019 2:43 PM] – SUCCESS: wp_login hook triggered. Username: webmaster
[10/20/2019 2:43 PM] – SUCCESS: Setting current WP user to: webmaster
[10/20/2019 2:43 PM] – SUCCESS: Triggering swpm_after_login hook.

No problem environment
———————-
[10/20/2019 2:45 PM] – SUCCESS: wp_authenticate action. Handling login for username: [user.name]
[10/20/2019 2:45 PM] – SUCCESS: SwpmAuth::login()
[10/20/2019 2:45 PM] – SUCCESS: Authentication request – Username: user.name
[10/20/2019 2:45 PM] – SUCCESS: wp_login hook triggered. Username: user.name

The comment in the code that throws the “Empty username provided” text to the log file, says, “empty username can mean some plugin trying to login WP user using its own methods.” So I performed a test on the problem environment. I deactivated every single plugin, except the three Simple Membership plugins (main, after login and custom messages) and when I logged in to /wp-admin the problem still happens!

I went another step further. I hardcoded the username and password in the SWPM code to see if that would work. Unfortunately, even though the log is different the same problem exists. You’ll note that it still is saying “Executing swpm_login action hook.”

[10/20/2019 3:17 PM] – SUCCESS: wp_authenticate action. Handling login for username: webmaster
[10/20/2019 3:17 PM] – SUCCESS: SwpmAuth::login()
[10/20/2019 3:17 PM] – SUCCESS: Authentication request – Username: webmaster
[10/20/2019 3:17 PM] – SUCCESS: Authentication successful for username: webmaster. Executing swpm_login action hook.
[10/20/2019 3:17 PM] – SUCCESS: Trying wp_signon() with username: webmaster
[10/20/2019 3:17 PM] – SUCCESS: wp_authenticate action. User with username: webmaster is already logged in.
[10/20/2019 3:17 PM] – SUCCESS: wp_login hook triggered. Username: webmaster
[10/20/2019 3:17 PM] – SUCCESS: Setting current WP user to: webmaster
[10/20/2019 3:17 PM] – SUCCESS: Triggering swpm_after_login hook.

Please tell me what do at this point.

Regards,
Rob

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