Support » Plugin: WP Fusion Lite » User Role Synch with ActiceCampaign broken

  • Resolved nielsgeominy

    (@nielsgeominy)


    Hi,

    My website is a job board. We have 2 main user roles: Candidate and Employer. Whenever I add a user manually in WordPress (a thing we do in sales calls for Employers) the synch to ActiveCampaign for user_role does not work. It falls back on the default user_role, which is candidate.

    I checked the logs and although I created an Employer user account it says user_role=candidate.

    Any help would be very nice!

    Thanks in advance!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author verygoodplugins

    (@verygoodplugins)

    Hey @nielsgeominy ,

    Are you able to share a screenshot of your logs (https://wpfusion.com/documentation/getting-started/activity-logs/), with any sensitive information blurred out?

    It would be helpful to see the timeline of what data is being synced when the user registers.

    We’ve just tested this on our end by registering several users via Users >> Add New in the WordPress admin, each time with a different role, and each time the selected role was synced to the CRM: https://share.getcloudapp.com/bLuA016r

    However, note that some membership plugins modify the registration process by adding users at the default role first, and then updating the user role in a subsequent step (after WP Fusion has already synced the data to ActiveCampaign).

    So it’s possible something like that is going on here, but in that case we would have to direct you to our PHP filters (https://wpfusion.com/documentation/filters/wpf_user_register/), since WP Fusion Lite only supports WordPress “core”, it does not officially support any membership plugins.

    Thanks

    Thread Starter nielsgeominy

    (@nielsgeominy)

    Sure!
    https://internative.works/wp-content/uploads/2021/04/Screen-Shot-2021-04-13-at-2.08.27-PM.png

    Find the image there.

    In the past it worked. We have been using WP Fusion Lite for 6 months plus, but recently it stopped working out of nowhere (didn’t update anything before it stopped working)

    Plugin Author verygoodplugins

    (@verygoodplugins)

    Weird, yeah. Usually if something works, it will continue working 🙂

    To me, your logs look like the user is being inserted with the default role, and then the role is changed to Employer later. WP Fusion runs when the user is inserted, so it picks up the original role.

    What are you using to create these custom roles? A role management plugin?

    And do you know why your Add User form contains Facebook, Linkedin, and Instagram fields? The default Add New User form looks like this https://share.getcloudapp.com/5zuBdDNX, and it doesn’t have those fields. Can you try disabling any plugins that add anything to the New User screen, or modify the registration process?

    Thread Starter nielsgeominy

    (@nielsgeominy)

    The custom roles are made by the theme we bought (https://workscout.in).

    The odd thing is just that it used to work and nothing changed as far as I know.

    Those fields (Facebook, LinkedIn etc. were added by myself, but are indeed not necessary). However, they are not displayed at the add new user menu and this displays the same things as your screenshot, so nothing wrong there. Anything else I could try?

    Is there another way you know in which we can add users?

    Thanks!

    Plugin Author verygoodplugins

    (@verygoodplugins)

    I’m not sure, unfortunately.

    Is it possible your theme had an update, and the way the roles are managed may have changed?

    I just ran through it with the latest WP Fusion Lite, connected to ActiveCampaign. The role selected from the dropdown in the New User panel is syncing as it’s supposed to. I recorded a video so you can see https://share.getcloudapp.com/QwuE2PPp

    I guess I’d try deactivating any plugins that might modify user roles and see if it makes a difference. You could also try creating the same roles via a role management plugin like Members (https://wordpress.org/plugins/members/), which could give different results.

    As well, you could try syncing the wp_capabilities field instead of “role”. That could pick up on additional capabilities.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.