WordPress Affiliate Manager › Forums › Affiliate Manager Plugin › Affiliate user is no longer active, yet says so
- This topic has 7 replies, 2 voices, and was last updated 2 years, 4 months ago by
[email protected].
-
AuthorPosts
-
November 21, 2023 at 7:23 pm #8653
[email protected]
Participant1. Tried deactivating all plugins and still have the problem.
2. Tried the latest 2024 theme and still have the problem.One of our affiliates is no longer active, yet it says they are in admin.
Tried deactivating and re-activating to no avail.
They were set to role “Affiliate”. Tried changing them to role “Customer”, no change.
The capability “wpam_affiliate_active” seems to be missing for their user account. Tried adding it back in with Role Editor plugin, but that didn’t work.
Any ideas?
November 22, 2023 at 4:29 am #8654Shadow Labs
KeymasterHi, I’m not sure what you mean by “Affiliate user is no longer active”. Our plugin does not automatically make an affiliate account inactive. Are you saying the affiliate is not actively promoting your products?
The “active” status in our plugin means the affiliate’s account is ready for referral tracking. When a new affiliate registers and their account becomes active, it will always remain so.
November 22, 2023 at 5:09 pm #8655[email protected]
ParticipantSorry, I forgot to clarify: When the user goes to the /affiliates/ URL to login to their account or view their affiliate stats page it says that they “are not an affiliate”. Yet, when we look at their setting in the plugin admin settings page for that user, they are set to “Active”.
The exact message is: “This is the affiliates section of this store. You are not currently an affiliate of this store. If you wish to become one, please apply.”
The user in question has tons of affiliate sales and has logged in to and managed their account until now.
November 23, 2023 at 5:41 am #8658Shadow Labs
KeymasterThanks. The affiliate account is linked to a WordPress user account when a new affiliate registers. This is done in the database. That’s how the plugin determines whether an affiliate is logged in.
If the affiliate account points to user ID 2 but the logged in user ID is 3, the plugin cannot make this connection. Have you made any changes to the site that may cause this issue? It can also happen if the user logs in with a different WordPress user account.
November 23, 2023 at 6:53 am #8659[email protected]
ParticipantI tried accessing the /affiliates/ page as the user by using a user-switching plugin.
As mentioned earlier, I noticed that other users who are affiliate have a line in their User settings pages that read: “Capabilities: wpam_affiliate, wpam_affiliate_active”.
Yet the affiliate in question only says: “Capabilities: wpam_affiliate”.
I tried adding the wpam_affiliate_active capability to the user w/ a Roles plugin, but still got the same problem.
Is there anything in the database we can troubleshoot?
Thanks.
November 23, 2023 at 7:09 am #8660Shadow Labs
KeymasterAdding/changing capabilities will not make a difference unfortunately. They are just for display purposes.
Please log in to phpmyadmin and open the “wpam_affiliates” table from your WordPress database. Check the “userId” column of this affiliate. Does it match the WordPress user ID of the account they are using to log in?
November 23, 2023 at 8:05 am #8661[email protected]
ParticipantThe IDs don’t match. It’s 2854 in the wpam_affilaites table, but that user doesn’t exist in WP. Their WP post id is 2857. I’ll try updating it to see if that works. Thanks.
November 23, 2023 at 8:08 am #8662[email protected]
ParticipantThat worked. Thanks!
-
AuthorPosts
- You must be logged in to reply to this topic.