Hi,
We are using moodle for years without problems but since this morning a quizz which was previously working well is generating the following error :
I don't find any related issue browsing and searching the Web.
Can somebody help me please ?
Eric
SELECT value FROM mdl_config_plugins WHERE plugin = ? AND name = ?
[array (
0 => 'admin',
1 => 'lastloginserterrormail',
)]
Error code: dmlreadexception
- line 426 of /lib/dml/moodle_database.php: dml_read_exception thrown
- line 1023 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 1382 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
- line 1455 of /lib/dml/moodle_database.php: call to moodle_database->get_record_sql()
- line 1436 of /lib/dml/moodle_database.php: call to moodle_database->get_field_sql()
- line 1415 of /lib/dml/moodle_database.php: call to moodle_database->get_field_select()
- line 1363 of /lib/moodlelib.php: call to moodle_database->get_field()
- line 1844 of /lib/datalib.php: call to get_config()
- line 73 of /mod/quiz/view.php: call to add_to_log()
SELECT
bi.id,
bp.id AS blockpositionid,
bi.blockname,
bi.parentcontextid,
bi.showinsubcontexts,
bi.pagetypepattern,
bi.subpagepattern,
bi.defaultregion,
bi.defaultweight,
COALESCE(bp.visible, 1) AS visible,
COALESCE(bp.region, bi.defaultregion) AS region,
COALESCE(bp.weight, bi.defaultweight) AS weight,
bi.configdata
, ctx.id AS ctxid, ctx.path AS ctxpath, ctx.depth AS ctxdepth, ctx.contextlevel AS ctxlevel, ctx.instanceid AS ctxinstance
FROM mdl_block_instances bi
JOIN mdl_block b ON bi.blockname = b.name
LEFT JOIN mdl_block_positions bp ON bp.blockinstanceid = bi.id
AND bp.contextid = ?
AND bp.pagetype = ?
AND bp.subpage = ?
LEFT JOIN mdl_context ctx ON (ctx.instanceid = bi.id AND ctx.contextlevel = 80)
WHERE
(bi.parentcontextid = ? OR (bi.showinsubcontexts = 1 AND bi.parentcontextid IN (?,?,?)))
AND bi.pagetypepattern IN (?,?,?,?)
AND (bi.subpagepattern IS NULL OR bi.subpagepattern = ?)
AND (bp.visible = 1 OR bp.visible IS NULL)
AND b.visible = 1
ORDER BY
COALESCE(bp.region, bi.defaultregion),
COALESCE(bp.weight, bi.defaultweight),
bi.id
[array (
0 => '138',
1 => 'site-index',
2 => '',
3 => '138',
4 => '132',
5 => '15',
6 => '1',
7 => 'site-index',
8 => 'site-index-*',
9 => 'site-*',
10 => '*',
11 => '',
)]
Error code: dmlreadexception
- line 426 of /lib/dml/moodle_database.php: dml_read_exception thrown
- line 960 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 628 of /lib/blocklib.php: call to mysqli_native_moodle_database->get_recordset_sql()
- line 1377 of /lib/pagelib.php: call to block_manager->load_blocks()
- line 829 of /lib/pagelib.php: call to moodle_page->starting_output()
- line 732 of /lib/outputrenderers.php: call to moodle_page->set_state()
- line 2365 of /lib/outputrenderers.php: call to core_renderer->header()
- line ? of unknownfile: call to core_renderer->fatal_error()
- line 1455 of /lib/setuplib.php: call to call_user_func_array()
- line 375 of /lib/setuplib.php: call to bootstrap_renderer->__call()
- line 375 of /lib/setuplib.php: call to bootstrap_renderer->fatal_error()
- line ? of unknownfile: call to default_exception_handler()