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
John McIntyre
Member
Free Members
sp_UserOfflineSmall Offline
Nov 10, 2014 - 8:56 pm

Ok, got a bunch of screenshots. It appears that wishlist levels are properly mapped to wp roles. Also got screenshots from the event logger, with the wishlist events suggested.

Wishlist mapping to roles:

Wishlist mapping to rolesImage Enlarger

 

Sequential upgrades details:

Image Enlarger

 

Event Logger:

Image Enlarger

Image Enlarger

Image Enlarger

Image Enlarger

Image Enlarger

Image Enlarger

Image Enlarger

Image Enlarger

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 10, 2014 - 9:57 pm

hmm... having hard time following the logger data from my tablet on travel... but wishlist does seem configured correctly...

are you saying you are seeing events logged for the auto upgrade role changes?  maybe Andy or Ike will see more in AM...

do you have a staging or test server we might be able to use for debugging?

Avatar
John McIntyre
Member
Free Members
sp_UserOfflineSmall Offline
Nov 10, 2014 - 10:27 pm

I'm not sure how to read the event logger report, but it appears that there are events being logged. I did the upgrade manually, via the wishlist control panel, but I think it's the same thing as the auto upgrade feature.

I'm running on WPengine so yes, I do have a staging server. What do you need from me to run some debugging?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 10, 2014 - 11:05 pm

maybe nothing at moment... just thinking out loud... 

thus far, we know that the wp role change action is getting fired for registrations and manual updates... but still not sure if its happening for the auto upgrades..  need to analyze the images bit more, but on travel this week...

hard part is that if wishlist is not using the wp api for changing the role in the auto upgrade instance, may not be much we can do...  but if they are using the wp api, we need to understand what actions wp may be doing that plugins can use, if any...

hard part is that auto upgrades occur outside the 'normal' web page processing... so not sure how to even test or check...  but thinking...

Avatar
John McIntyre
Member
Free Members
sp_UserOfflineSmall Offline
Nov 12, 2014 - 12:02 am

I had a closer look.

It appears that when wishlist upgrades a user, their role in Wishlist is changed, but their role in wordpress is not.

If I change their role in wordpress users, simple press adds the role to their forum profile, and they the access permissions.

So it appears that the broken link is the connection between wishlist and wordpress. Or at the very least, wishlist changes their wishlist role, but not their wordpress role.

Avatar
John McIntyre
Member
Free Members
sp_UserOfflineSmall Offline
Nov 12, 2014 - 12:28 am

Ok, one step closer. Got a plugin that makes Wishlist communicate with wordpress.. so when I upgrade someone in wishlist, the plugin upgrades their role in wordpress.

I thought this would fix the problem, since before, if I upgraded someone manually in wordpress, they'd upgrade in simple press.

But instead, now they're not getting upgraded in simple press.

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

Good progress.

The whole thing still revolves around whether the necessary WordPress standard action hook is called. and as I believe we have said somewhere before/above, we have encountered plugins that change WP role but do NOT fire the hook as they should.

So the first thing to discover - one again - is whether the hook is being fired. And as before the SP event logging plugin should tell us this.

(I honestly do not recall the name of the plugin that we know did not work properly in the past. Steve may remember when he is up and about later in the day)

andy-signature.png
YELLOW
SWORDFISH
Avatar
John McIntyre
Member
Free Members
sp_UserOfflineSmall Offline
Nov 12, 2014 - 4:58 am

So what should I do - wait for an automatic upgrade, then check the event log?

I'm using a WLM plugin/extension to change the WP role. It's called changerole-wlm-ext.

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

I think you are going to have to wait to see what gets sent through if the hook is fired.
You could also ask the authors of that plugin if it does indeed fire the standard event hook... - that's the one you are tracking in the log.

andy-signature.png
YELLOW
SWORDFISH
Avatar
John McIntyre
Member
Free Members
sp_UserOfflineSmall Offline
Nov 17, 2014 - 3:23 am

The hook wasn't fired. Whether I upgrade someone manually or auto, it's not triggered.

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: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626