glennansley/moodle-report_rolesmigration — Issue #4: Broken for Moodle 2.2
Author: rlorenzo
Created: 2012-02-07 02:03:05+00:00
State: open

I am trying to use the tool for Moodle 2.2 and it seems that something in the new version broke this tool. We previously successfully used version 2011053100 for our Moodle 2.0 and 2.1 versions.

I updated our local plugin of the role migration plugin to version 2011072801 but ran into the following bug when doing the actual step of importing the roles after choosing which ones to import.

Here is the stack trace:

Coding error detected, it must be fixed by a programmer: clean_param() can not process arrays, please use clean_param_array() instead.

Stack trace:
line 724 of /lib/moodlelib.php: coding_exception thrown
line 636 of /lib/moodlelib.php: call to clean_param()
line 586 of /lib/moodlelib.php: call to optional_param_array()
line 44 of /local/rolesmigration/importroles.php: call to optional_param()

I tried changing the script to use optional_param_array, but that function doesn't seem to like multi-dimensional arrays. What else can be done?