(Moodle 2.5.1+ upgraded from 2.2.1)
Hi Ken,
I have the same issue after step 2 of restoring an 86MB course.
Debug info: Got a packet bigger than 'max_allowed_packet' bytes
INSERT INTO mdl_backup_controllers (backupid,operation,type,itemid,format,interactive,purpose,userid,status,execution,executiontime,checksum,controller,timecreated,timemodified) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
[array (
0 => 'ee1343e6c0f94e5e3176bb690f42844d',
1 => 'restore',
2 => 'course',
3 => 84,
4 => 'moodle2',
5 => 1,
6 => 10,
7 => '2',
8 => 500,
9 => 1,
10 => 0,
11 => 'af2d5f4fd65a736f98449a0cf68d84ad',
12 => VERY LONG STRING!
13 => 1376643127,
14 => 0,
)]
Error code: dmlwriteexception
- line 426 of /lib/dml/moodle_database.php: dml_write_exception thrown
- line 1089 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 1131 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
- line 87 of /backup/util/dbops/restore_controller_dbops.class.php: call to mysqli_native_moodle_database->insert_record()
- line 384 of /backup/controller/restore_controller.class.php: call to restore_controller_dbops::save_controller()
- line 137 of /backup/util/ui/base_ui.class.php: call to restore_controller->save_controller()
- line 52 of /backup/restore.php: call to base_ui->save_controller()
_________________________________________________________________________
I have successfully restored a 7MB course, so I guess the issue is related to the discussion above.
My question is: Where do I edit the following line?
max_allowed_packet = 100M
In my moodle folder I have a php.ini, which contains only
upload_max_filesize = 100M
post_max_size = 100M
I do not have a my.ini or myconf file.
I looked in the moodle database but didn't know if I could/should make any changes directly there.
- David