Here I am again. I haven't slept for a few days now. The problem is that I have a Moodle site 1.8 and the upgrading to 1.9.6+ is not working great.
I get the following errors:
(see attachment)
Here is what I did:
I'm using this script for the first problem
[code]
<?php
require_once('config.php');
require_once($CFG->dirroot . '/question/type/multianswer/db/upgrade.php');
require_login();
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
print_header();
$db->debug = true;
question_multianswer_fix_subquestion_parents_and_categories();
print_footer('empty');
?>
[/code]
I don't know what to do with the second problem??
I've used this script for the third problem:
[code]
DELETE FROM mdl_question_categories WHERE NOT EXISTS (SELECT * FROM mdl_question q WHERE q.category = mdl_question_categories.id) AND NOT EXISTS (SELECT * FROM mdl_context con WHERE contextid = con.id)[/code]
nothing is working and I don't know what to do????
Need help anything would be helpful
Thanks
Leon