by Cory Chamberlain.
When we try to backup coures in 2.2 so we can inport them into 2.3 we get the following Coding Error and stack trace. Can anyone help me out here?
Coding error detected, it must be fixed by a programmer: optional_param() requires $parname, $default and $type to be specified (parameter: id)
Stack trace:
- line 568 of /lib/moodlelib.php: coding_exception thrown
- line 12 of /backup/backup.php: call to optional_param()
Output buffer: Warning: Missing argument 2 for optional_param(), called in /var/www/html/moodle22/backup/backup.php on line 12 and defined in /var/www/html/moodle22/lib/moodlelib.php on line 566 Warning: Missing argument 3 for optional_param(), called in /var/www/html/moodle22/backup/backup.php on line 12 and defined in /var/www/html/moodle22/lib/moodlelib.php on line 566