3 posts / 0 new
Last post
dquez9
Offline
Last seen: 3 months 6 days ago
Joined: 04/19/2018
(solved) error when user complete interactive content

Hello, I am getting the following error when a user completes interactive content h5p and clicks on finish lesson.

PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '' for key 'uri': INSERT INTO {file_managed} (uid, filename, uri, filemime, filesize, status, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6); Array ( [:db_insert_placeholder_0] => 1 [:db_insert_placeholder_1] => [:db_insert_placeholder_2] => [:db_insert_placeholder_3] => application/octet-stream [:db_insert_placeholder_4] => 0 [:db_insert_placeholder_5] => 1 [:db_insert_placeholder_6] => 1531777949 ) in drupal_write_record() (line 7387 of /home/u47puwf29fqj/public_html/includes/common.inc)

I've tried turning off organic group control access and enabling only Opigno group control access. Has anyone run into this issue or could share some insight?

thank you,

dquez9
Offline
Last seen: 3 months 6 days ago
Joined: 04/19/2018
to add line 7387 of my common

to add line 7387 of my common.inc file shows this syntax

// Execute the SQL. if ($query_return = $query->execute()) { if (isset($serial)) { // If the database was not told to return the last insert id, it will be // because we already know it. if (isset($options) && $options['return'] != Database::RETURN_INSERT_ID) { $object->$serial = $fields[$serial]; } else { $object->$serial = $query_return; } } }

dquez9
Offline
Last seen: 3 months 6 days ago
Joined: 04/19/2018
If anyone has the error above

If anyone has the error above this is caused by the lesson trying to archive into the LMS database. You can correct this by changing the end action for the lesson and disable the archive into the DB.

Dan