Joomdle 1.0 Installation

Upload users error when updating custom profile fields

  • Web Buster UK Ltd
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
6 years 1 month ago #1 by Web Buster UK Ltd
Code:
Exception - Call to a member function call_method() on null More information about this error Debug info: Error code: generalexceptionmessage Stack trace: line 135 of /auth/joomdle/locallib.php: Error thrown line ? of unknownfile: call to auth_joomdle_handler::user_updated() line 155 of /lib/classes/event/manager.php: call to call_user_func() line 75 of /lib/classes/event/manager.php: call to core\event\manager::process_buffers() line 834 of /lib/classes/event/base.php: call to core\event\manager::dispatch() line 716 of /admin/tool/uploaduser/index.php: call to core\event\base->trigger()

We are trying to update users' custom profile fields on Moodle, but when uploading the csv file Moodle throws up this error. The custom profile field is not currently mapped to a field in Joomla.

Any idea what could be causing this error? auth_joomdle plugin is enabled. All green on System Check.

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

More
6 years 1 month ago #2 by Antonio Durán
Replied by Antonio Durán on topic Upload users error when updating custom profile fields
It seems this is caused by an error in file moodle/auth/joomdle/locallib.php
Function: user_updated
To fix it, move this line:
Code:
$auth_joomdle = new auth_plugin_joomdle ();
Above this:
Code:
// "Forward" event to Joomla if ($forward_events) { $auth_joomdle->call_method ('moodleEvent', 'UserUpdated', $userinfo); }

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