• Resolved bookswarm

    (@bookswarm)


    Hi there,

    The member synch plugins works nicely for us when we run it manually but the WPCRON-triggered synch, the synch on member login and logout, etc. doesn’t work.

    I have tried various ways of seeing what’s going on including looking at scheduled operations. The job reaches its time, then goes to the back of the queue, but the synch doesn’t seem to fire. As soon as I run it manually, the same user account does synch fine.

    We’re using Civi 4.5.2 with plugin Version 0.2.5 and we’re synching based on User Roles.

    Any ideas greatly appreciated.

    Thanks

    https://wordpress.org/plugins/civicrm-wp-member-sync/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Christian Wach

    (@needle)

    @bookswarm Thanks for the report. Looking at the code, I’ve disabled the scheduled callback from firing for some reason that I can’t now recall. Sorry about that!

    Can you remove (or comment out) line 135 of ‘civi-wp-ms-schedule.php’ (which simply reads return;) and test if that fixes scheduled sync for you?

    I’ll investigate your report of failing sync on member login/logout further since I can’t reproduce this at present.

    Thread Starter bookswarm

    (@bookswarm)

    Thank you @christian, I have commented out the relevant line and we will see what we see!

    Plugin Author Christian Wach

    (@needle)

    @bookswarm I’ve found another reason why scheduled sync isn’t working. Please download the ZIP file for the master branch from the Github repo to test the new version. Works for me now.

    Thread Starter bookswarm

    (@bookswarm)

    Thanks 0.2.6 deployed. All seems to be working for us too – thanks!

    Plugin Author Christian Wach

    (@needle)

    Good to hear! Does that Include login/logout sync?

    Thread Starter bookswarm

    (@bookswarm)

    Not sure about that we’re running synch every minute!

    I will do some out-of-hours testing and see what I can tell you. Cheers Christian

    Plugin Author Christian Wach

    (@needle)

    Blimey. The sync_all() process is pretty intensive – hope you don’t have too many users 🙂

    Thread Starter bookswarm

    (@bookswarm)

    We’ll keep an eye on the impact!

    Thread Starter bookswarm

    (@bookswarm)

    We can confirm that the login and logout event triggers are working so we have reduced the scheduled synch frequency. Thanks so much for help today @christian.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Synch not working with CRON or on specified event’ is closed to new replies.