Quantcast
Channel: Installing and upgrading help
Viewing all articles
Browse latest Browse all 46808

Re: Upgrade from 2.3.2 to 2.4.3 - Invalid repository ID

$
0
0
by Sankar Mahadevan.  

Hi there, I was running my Moodle 2.2 in production server.  Then wanted to upgrade Moodle 2.3.  I upgraded all the custom modules written in Moodle 2.2 and database to work with Moodle 2.3; everything went fine.  Now I wanted to upgrade this Moodle 2.3 to Moodle 2.4 and started upgrade.  But it fails and displays the error 

Debug info: Table 'mdl_course_sections_avail_fields' doesn't exist
DELETE FROM mdl_course_sections_avail_fields WHERE userfield = ?
[array (
0 => 'interests',
)] 
Error code: dmlwriteexception

Stack trace:
  • line 429 of \lib\dml\moodle_database.php: dml_write_exception thrown
  • line 1310 of \lib\dml\mysqli_native_moodle_database.php: call to moodle_database->query_end()
  • line 1696 of \lib\dml\moodle_database.php: call to mysqli_native_moodle_database->delete_records_select()
  • line 1605 of \lib\db\upgrade.php: call to moodle_database->delete_records()
  • line 1493 of \lib\upgradelib.php: call to xmldb_main_upgrade()
  • line 284 of \admin\index.php: call to upgrade_core()

I found in /lib/db/upgrade.php file; is this cause the db upgrade fails?

if ($oldversion < 2012120301.13) {
// Delete entries regarding invalid 'interests' option which breaks course.
$DB->delete_records('course_sections_avail_fields', array('userfield' => 'interests'));
$DB->delete_records('course_modules_avail_fields', array('userfield' => 'interests'));
// Clear course cache (will be rebuilt on first visit) in case of changes to these.
rebuild_course_cache(0, true);

upgrade_main_savepoint(true, 2012120301.13);
}

Actually, I have been using the same database since Moodle 1.9 to Moodle 2.4.  I did upgrade step by step Moodle versions.  For Moodle 2.2 and Moodle 2.3 versions database was upgraded fine.  In Moodle 2.4 version database upgrade failed.  Below are my Moodle versions used till now.

Moodle 1.9 version - 2007101591.12 - 1.9.17 (Build: 20120312)

Moodle 2.2 version - 2011120503.01 - 2.2.3+ (Build: 20120519)

Moodle 2.3 version - 2012112502.04 - 2.3.2+ (Build: 20120927)

Moodle 2.4 version - 2012120303.01 - 2.4.3+ (Build: 20130322)

Any help would be appreciated.

Thank,

Sankar.


Viewing all articles
Browse latest Browse all 46808

Trending Articles