Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
How to automatically move people from one user group to another (with Wishlist)
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 5, 2014 - 12:19 am

so if you got an entry in the log, that means wp fired the role change hook... what we want to see happen now is do you get an entry when the user is auto upgraded...

see, we or other plugins cannot know anything is happening unless wp or other notifies via a hook getting fired...  so wait for an auto upgrade and see if you get an entry...

Avatar
John McIntyre
Member
Free Members
sp_UserOfflineSmall Offline
Nov 5, 2014 - 2:50 am

How do I check the log?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 5, 2014 - 2:55 am

The event log... in the event log admin menu - second entry.

andy-signature.png
YELLOW
SWORDFISH
Avatar
John McIntyre
Member
Free Members
sp_UserOfflineSmall Offline
Nov 5, 2014 - 8:03 am

This is what I get:

Image Enlarger

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 5, 2014 - 8:45 am

OK.SO now you need an automatic update to occur to see if a new event is logged.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 5, 2014 - 8:49 pm

and an fyi, but the arg1 is the user id that had their role changed...

Avatar
John McIntyre
Member
Free Members
sp_UserOfflineSmall Offline
Nov 6, 2014 - 9:43 pm

Just did an auto upgrade. I get the same thing.

What next?

Image Enlarger

Avatar
John McIntyre
Member
Free Members
sp_UserOfflineSmall Offline
Nov 6, 2014 - 9:46 pm

I tested the auto upgraded account and same problem.. it's not getting upgraded from mcmasterstrial to mcmastersgold.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 7, 2014 - 4:28 am

But the event log there shows that the information sent to Simple:Press on the role change is pointing to the old 'trial' role not the new 'gold' role. The SP User Groups are not being informed of any change. The log should show the new role not the old.

Now I must say I do not think we have seen this happen before. We HAVE seen some instances where a plugin did not send the new role through at all (hence the event log test) but I am pretty sure sending the old role instead of the new role is a first! And I am not sure how that can happen! 

@mr-papa - have you seen anything like this before? Any ideas?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 7, 2014 - 10:10 am

if that is the old role, means wp (and hence plugins) was not notified of a move to the new role...  makes it hard for any action to be taken...

worth verifying on the wishlist member settings that you have the wishlist levels properly mapped to wp roles... its not a wp or sp setting, but occurs within wishlist options for each level...  and see what you have for the setting of removing levels when adding a new one...

another event you could add to the logging list for clarity if the wishlist hook when it adds a user level...  add these two hooks to the event logging plugin:

wishlistmember_remove_user_levels
wishlistmember_add_user_levels

might give us better picture, in conjunction with the wp role change action, what is going on...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625