Hey there,
We're struggling with this weird behavior with inline images...
Whenever we upload some inline images in the FAQs of our Knowledge Base. The images are displaying well in the front-end, but whenever we go back in edit mode the images appear broken.
We can make edits again (around the broken images) and hit save, and the images will still appear correctly in the front-end...
Front-end
Edit mode
While uploading the images into a FAQ article we received the following error: DB Error #1062
_[INSERT INTO ost_attachment
SET file_id
= 126, inline
= 1, type
= 'F', object_id
= 4, name
= 1]
Duplicate entry '126-4' for key 'file_object'<br />
<br />
---- Backtrace ----<br />
#0 (root)/include/mysqli.php(201): osTicket->logDBError()<br />
#1 (root)/include/class.orm.php(3466): db_query()<br />
#2 (root)/include/class.orm.php(658): MySqlExecutor->execute()<br />
#3 (root)/include/class.attachment.php(180): VerySimpleModel->save()<br />
#4 (root)/include/class.attachment.php(130): GenericAttachments->upload()<br />
#5 (root)/include/class.faq.php(412): GenericAttachments->keepOnlyFileIds()<br />
#6 (root)/scp/faq.php(81): FAQ->update()<br />
#7 {main}_
(but this error did not show up every time we uploaded images - though the broken image issue is always present)
Reading some previous posts on this forum, we tried various things (switching to the Filesystem plugin - thanks @stevland , switch browser, restarting MySQL DB + Apache HTTPD+PHP), but none have solved it ☹️
Any idea how to solve this?