Hi,
I am trying to restore a course into a local Moodle and got the above exception with the following debug info:
Debug info: Duplicate entry '0-778' for key 'mdl_courmoduview_usecou_uix'
INSERT INTO mdl_course_modules_viewed (userid,coursemoduleid,timecreated) VALUES(?,?,?)
[array (
0 => 0,
1 => 778,
2 => '1690142863',
)]
Error code: dmlwriteexception
I have followed some suggestions and increased some file sizes:
In php/php.ini:
post_max_size = 600M
upload_max_filesize = 600M
max_execution_time = 600
In moodle/.htaccess (which I created in Moodle directory, not sure if necessary?)
php_value upload_max_filesize 629145600
php_value post_max_size 629145600
php_value max_execution_time 600
In mysql/bin/my.ini
max_allowed_packet = 600M
max_binlog_cache_size = 429496729
I am running Windows 10 Pro, Moodle Win 4.3.1, PhP 8.2.4, MariaDB 10.4.28
Could someone help me what I need to do now to resolve the issue??
Thank you so much.
Kind regards,
Pauline