I'm also having this problem. When I'm trying to restore a teacher's backup from a 1.9+ version to a 1.9 version of Moodle, I get a similar Fatal error message as Ulrike's above, but a different line # is referenced:
Fatal error: Class 'message' not found in
[dirroot]\moodle\backup\restorelib.php on line
6710
The 1.9 and 1.9+ Moodle versions are on different servers at different schools so the modules may not be exactly the same. But the reference to restorelib.php Line 6710 shows some interesting code that deals with comparing Moodle versions. Line 6710 contains this assignment:
$message = new message();
This message() class is not defined in the same restorelib.php file. Where is it located? Is this important? Is version 1.9+ backwards compatible with 1.9?
//We compare Moodle's versions
if ($CFG->version < $info->backup_moodle_version && $status) {
$message = new message();
$message->serverversion = $CFG->version;
$message->serverrelease = $CFG->release;
$message->backupversion = $info->backup_moodle_version;
$message->backuprelease = $info->backup_moodle_release;
print_simple_box(get_string('noticenewerbackup','',$message), "center", "70%", '', "20", "noticebox");
Also, the moodle.
xml file seems to be complete, and I tried changing the beginning INFO item ORIGINAL_WWWROOT from the
URL reference to $@FILEPHP@, but this didn't do anything. Any help would be greatly appreciated.
Thanks, Theresa