by Paul Lindgreen.
Had the same issue with another course today while trying to Import it, a gigantic Checksum.
We have automated course backups nightly and luckily the course we were trying to Import was backed up last year, we could Restore the content surprisingly (without student data). Cant understand why the backed up archive of the course (has student data) would Restore and could not Import same course.
While reviewing the error message again I realized its the 'controller' column, not the 'checksum' column that has the long text input, the 'controller' column is 'longtext' format, that has a character length limit of 4,294,967,295 characters (4gb) unlike the much smaller 'checksum' column.
We have automated course backups nightly and luckily the course we were trying to Import was backed up last year, we could Restore the content surprisingly (without student data). Cant understand why the backed up archive of the course (has student data) would Restore and could not Import same course.
While reviewing the error message again I realized its the 'controller' column, not the 'checksum' column that has the long text input, the 'controller' column is 'longtext' format, that has a character length limit of 4,294,967,295 characters (4gb) unlike the much smaller 'checksum' column.
With this in mind Ken's recommendation to increase 'max_allowed_packet' from the moodle recommended min of 4mb to 10mb looks like a good idea seeing as the field can hold 4gb of text.
Havent tried this yet as our workaround worked today but will look into increasing this mysql setting.