Upgrading a copy of one of our modles I get an error.
Luckily it is just a copy as I wanted to practice upgrades as well as be careful. The server is a more or less vanilla ubuntu server
Linux voyager 2.6.32-24-server #43-Ubuntu SMP Thu Sep 16 16:05:42 UTC 2010 x86_64 GNU/Linux
Ubuntu 10.04.1 LTS
mysql Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (x86_64) using readline 6.1
PHP 5.3.2-1ubuntu4.7 with Suhosin-Patch (cli) (built: Jan 12 2011 18:36:55)
Copyright (c) 1997-2009 The PHP Group
I have configured mysql to utf8 and restored the db from a dump.
The initial pages pass every except phpis 5.3.2 instead of 5.3.3 which is just a yellow check anyway.
Error is
+++++++++++++++++++++++++++++++++++++++++++++++++++++
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
[array (
0 => '1',
)]
- line 391 of /lib/dml/moodle_database.php: dml_read_exception thrown
- line 728 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 4082 of /lib/db/upgrade.php: call to mysqli_native_moodle_database->get_recordset_sql()
- line 1309 of /lib/upgradelib.php: call to xmldb_main_upgrade()
- line 252 of /admin/index.php: call to upgrade_core()