Coder Social home page Coder Social logo

User sync failing about moowoodle HOT 6 OPEN

reza-jalaei avatar reza-jalaei commented on September 4, 2024
User sync failing

from moowoodle.

Comments (6)

moumitahalder avatar moumitahalder commented on September 4, 2024

Hi @reza-jalaei, thanks for reaching out to us.

In our latest version, we've already commented out those two lines. Please ensure you're using the latest version on your end.

from moowoodle.

reza-jalaei avatar reza-jalaei commented on September 4, 2024

Hello @moumitahalder,

The issue is that they're commented out! Yes I'm using the latest version of MooWoodle, MooWoodle Pro, and Auth MooWoodle (installed on Moodle).

Syncing users from Moodle to WordPress was resulting in "Unable to fetch users." in the logs until I uncommented those lines.

from moowoodle.

moumitahalder avatar moumitahalder commented on September 4, 2024

Thanks for explaining this. Yes, currently you need to uncomment those line.
However we will add a filter in our next update to fix this.

from moowoodle.

reza-jalaei avatar reza-jalaei commented on September 4, 2024

Thanks @moumitahalder

I have another question, I'm running the Moodle to Wordpress sync right now and it seems to be stuck on 'Current end_user_id: 7' (I added some logging to check the user id in the loop over the data from Moodle in Cron.php)

We have close to 8000 users and it's been on 7 for the past 2 hours, any ideas what could be causing this?

Do you have any recommendations on how to handle this first batch since it's so large? Could I maybe dump the user data from Moodle and import them to WordPress MySQL directly?

Thanks!

from moowoodle.

moumitahalder avatar moumitahalder commented on September 4, 2024

@reza-jalaei, in that case please use some plugin like Crontrol and pause this cron for now.

Then re-run this cron again. Let us know if this works.

from moowoodle.

reza-jalaei avatar reza-jalaei commented on September 4, 2024

For some reason a second try also got stuck at 7 so I decided to use the API MooWoodle Auth exposes from the Moodle side to fetch all the users and convert the JSON to a MySQL query and bulk import the 9000 users.

It's still running, after that I will enable real-time sync as that seems to be working well.

from moowoodle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.