Not Syncronizing User

  • sams
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 11 months ago #1 by sams
Not Syncronizing User was created by sams
Hi

I realize Joomdle stop synchronizing users. Can't detect what caused it.

Moodle 2.6.2
Joomla 3.2.3

Moodle Debug:
Code:
get_context_instance() is deprecated, please use context_xxxx::instance() instead. line 4024 of /lib/deprecatedlib.php: call to debugging() line 57 of /enrol/joomdle/settings.php: call to get_context_instance() line 75 of /lib/classes/plugininfo/enrol.php: call to include() line 109 of /admin/settings/plugins.php: call to core\plugininfo\enrol->load_settings() line 6389 of /lib/adminlib.php: call to require() line 6491 of /lib/adminlib.php: call to admin_get_root() line 38 of /admin/settings.php: call to admin_write_settings() get_context_instance() is deprecated, please use context_xxxx::instance() instead. line 4024 of /lib/deprecatedlib.php: call to debugging() line 57 of /enrol/joomdle/settings.php: call to get_context_instance() line 75 of /lib/classes/plugininfo/enrol.php: call to include() line 109 of /admin/settings/plugins.php: call to core\plugininfo\enrol->load_settings() line 6389 of /lib/adminlib.php: call to require() line 51 of /admin/settings.php: call to admin_get_root()




Any help appreciated...

Please Log in or Create an account to join the conversation.

More
11 years 11 months ago #2 by Antonio Durán
Replied by Antonio Durán on topic Not Syncronizing User
If it worked before, and not it doesn't, you must have made some changes. I cannot say much more from here...
Check that options to create users are enabled, that you doid not select profile types integration if you are not using it, joomdlehooks plugin enabled...

Please Log in or Create an account to join the conversation.

  • sams
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 11 months ago #3 by sams
Replied by sams on topic Not Syncronizing User
Thanks Antonio.
I'm checking on that possibility.

By the way what does the Moodle debug errors refers to?

Please Log in or Create an account to join the conversation.

More
11 years 11 months ago #4 by Antonio Durán
Replied by Antonio Durán on topic Not Syncronizing User
The error refers to get_context_instance() being deprecated in Moodle.
I will need to change all those calls in Joomdle code to use the new context_xxxx::instance() functions.

It is just a warning, so itwon't impact working.

Please Log in or Create an account to join the conversation.

More
11 years 10 months ago #5 by Chaim Handler
Replied by Chaim Handler on topic Not Syncronizing User
I kept getting "Moodle cannot connect to Joomla" when doing system check.
After half a day of XDebugging I finally found that connection_test_joomla.php
was returning:

get_context_instance() is deprecated, please use context_xxxx::instance() instead.

line 3670 of \lib\deprecatedlib.php: call to debugging()
line 14 of \auth\joomdle\connection_test_joomla.php: call to get_context_instance()

OK

Changed it to context_system::instance() and got all check marks.

Please Log in or Create an account to join the conversation.

More
11 years 10 months ago #6 by Antonio Durán
Replied by Antonio Durán on topic Not Syncronizing User
Thanks for the info. For anyone with this problem: you can solve it by disabling debugging in Moodle.

I already have updated all Joomdle code in Moodle to reflect these changes, so next version won't have this problem.

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #7 by Chaim Handler
Replied by Chaim Handler on topic Not Syncronizing User
Any way I can get the updated code? I keep running into these "get_context_instance is deprecated" errors. Seems kind of wasteful for me to invest time making changes that you've already made, not to mention the fact that you're the expert and I'm an amateur, and am likely to screw things up whereas I am confident your code is perfect.

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #8 by Chris
Replied by Chris on topic Not Syncronizing User
Hi there, once these are available we can inform you. Antonio is currently on holidays so I will need to verify how far he has gotten once he returns next week.

Please Log in or Create an account to join the conversation.