Coding error detected, it must be fixed by a programmer: PHP catchable fatal error
More information about this error
Debug info: Argument 2 passed to moodle_database::get_records() must be an array, string given, called in /home/webadmin/html/mod/feedback/db/upgrade.php on line 146 and defined
line 309 of /lib/setuplib.php: coding_exception thrown
line 1022 of /lib/dml/moodle_database.php: call to default_error_handler()
line 146 of /mod/feedback/db/upgrade.php: call to moodle_database->get_records()
line 490 of /lib/upgradelib.php: call to xmldb_feedback_upgrade()
line 265 of /lib/upgradelib.php: call to upgrade_plugins_modules()
line 1348 of /lib/upgradelib.php: call to upgrade_plugins()
line 298 of /admin/index.php: call to upgrade_noncore()
The feedback module is quite well used, so it could be some data in it that is wrong, I suppose. Any ideas of what I'm doing wrong?
Thanks for helping test the Moodle 2.0 upgrade. I've just created a tracker issue for the error you describe - MDL-24466. You may wish to watch the issue (tracker account required) in order to receive email notification of any comments or updates to the issue.
I did actually look at the tracker, but I have to admit, it was a little confusing to get started with.
I expect the feedback module is not yet ready for 2.0. I suggest asking the question on the feedback module forum where Andreas will be able to answer it.
I was upgrading on a copy of our current site anyway, so I'll attempt another upgrade when I know more of what caused the issue.
Yep, just re-done the upgrade with the latest Moodle 2 RC build, and mod_feedback has upgraded fine!
Thanks to all that helped!
SELECT DISTINCT c.id AS courseid, ra.enrol, c.timecreated, c.timemodified
FROM mdl_course c
JOIN mdl_context ctx ON (ctx.instanceid = c.id AND ctx.contextlevel = 50)
JOIN mdl_role_assignments ra ON (ra.contextid = ctx.id AND ra.enrol <> '')
LEFT JOIN mdl_enrol e ON (e.courseid = c.id AND e.enrol = ra.enrol)
WHERE c.id <> ? AND e.id IS NULL
0 => '1',
- line 391 of /lib/dml/moodle_database.php: dml_read_exception thrown
- line 691 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 4078 of /lib/db/upgrade.php: call to mysqli_native_moodle_database->get_recordset_sql()
- line 1307 of /lib/upgradelib.php: call to xmldb_main_upgrade()
- line 261 of /admin/index.php: call to upgrade_core()