dualcube / moowoodle

The MooWoodle plugin is an extention of WooCommerce that acts as a bridge between WordPress/Woocommerce and Moodle.
23 stars 24 forks source link

MooWoodle not working unless clients login at checkout #131

Open arsa-dev opened 2 weeks ago

arsa-dev commented 2 weeks ago

I think this issue is related to this one marked as resolved and closed two years ago but I'm experimenting the issue with latest wordpress and mowoodle versions.

I've ran MooWoodle test connection and all checks passes, these are my woocommerce user account settings: image

With this configuration moowoodle is not creating user on moodle nor sending enroll email to order email. Then if I assign the order to an user through woocommerce administration interface the enrollment email comes to that user.

In the next few hours I will take a look at the debug logs and possible corrections, post my results here and hopefully, at best, send a PR.

arsa-dev commented 2 weeks ago

Hi, after setting up development environment, enabling advance log on plugin and perform order, I can see this on log:

MooWoodle - log viewer

06/11/2024 20:06:26 :
'Unable to enroll user, unable to create user in moodle'

Seems related with https://github.com/dualcube/moowoodle/blob/master/classes/Enrollment.php#L49