The problem got sorted out by upgrading from 1.8.2+ to 1.8.4. The steps I followed were:
- Download Moodle 1.8.4 tgz file from – http://download.moodle.org/
- Upload the tgz file to your Moodle site say the moodlelearning.org folder, using a ftp program.
- Unpack moodle 1.8.4 in the moodlelearning.org directory. The command to extract the file is: tar -zxvf moodle-1.8.4.tgz It will create a moodle folder
- You need to edit the restorelib.php file in your moodle/backup folder. You need to comment out line 871 namely://$blockobj->after_restore($restore);
- Fire the SQL query - ALTER DATABASE test DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
- Put your Moodle site in maintenance mode.
- Repair any tables. Next do a database export of your existing Moodle course. Let's say that the file name created is class.sql
- Restore class.sql to the new database test. Remember to use UTF-8
- Rename your old course folder say class to oldclass
- Rename moodlelearning.org_class_moodledata to moodlelearning.org_oldclass_moodledata
- Make changes in config.php namely:
$CFG->dirroot = '/home/tim/moodlelearning.org/oldclass';
$CFG->dataroot = '/home/tim/moodlelearning.org_oldclass_moodledata';
- Rename moodle folder to class folder
- With a web browser browse to your moodlelearning.org/class/ directory and follow the installation configuration instructions
- Check config.php of the new install for proper settings
- Add all plug-ins.
Note: Modify the above folders as per your installation. Hope this helps.