catalyst / moodle-tool_trigger

Like IFTTT for Moodle: events to trigger external services. https://moodle.org/plugins/tool_trigger
Other
42 stars 27 forks source link

Not compatible with moodle 4.3.2? Coding error detected get_all_user_name_fields() is deprecated. #219

Open stargate001 opened 6 months ago

stargate001 commented 6 months ago

Hello,

Workfows were set up when using 4.1.2 version and it was working fine, but after upgrading moodle to 4.3.2 version the plugin shows this message when viewing workflow history:

"Coding error detected, it must be fixed by a programmer: get_all_user_name_fields() is deprecated. Please use the \core_user\fields API instead"

Can you please upgrade the plugin to work with latest moodle?

stargate001 commented 6 months ago

I'm adding debugging message from moodle:

Stack trace: line 2795 of /lib/deprecatedlib.php: coding_exception thrown line 87 of /admin/tool/trigger/classes/output/workflowhistory/renderer.php: call to get_all_user_name_fields() line 272 of /admin/tool/trigger/history.php: call to tool_trigger\output\workflowhistory\renderer->render_workflowhistory_table()

In Event Trigger->Manage-> Edit trigger workflow not possible to choose "Event to monitor" either