Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

DB error #1062

Hi while 'paste' a picture into osticket we get the following error.
Anyone how to solve this? It was working fine in older OS Ticket versions.


 DB Error #1062

[INSERT INTO `ost_attachment` SET `file_id` = 2523, `type` = 'D', `object_id` = 32812] Duplicate entry '32812-2523-D' for key 'file-type'

---- Backtrace ----
#0 (root)/include/mysqli.php(204): osTicket->logDBError('DB Error #1062', '[INSERT INTO `o...')
#1 (root)/include/class.orm.php(3133): db_query('INSERT INTO `os...', true, true)
#2 (root)/include/class.orm.php(597): MySqlExecutor->execute()
#3 (root)/include/class.attachment.php(161): VerySimpleModel->save()
#4 (root)/include/ajax.draft.php(101): GenericAttachments->upload(Array)
#5 (root)/include/ajax.draft.php(300): DraftAjaxAPI->_uploadInlineImage(Object(Draft))
#6 [internal function]: DraftAjaxAPI->uploadInlineImage('32812')
#7 (root)/include/class.dispatcher.php(145): call_user_func_array(Array, Array)
#8 (root)/include/class.dispatcher.php(38): UrlMatcher->dispatch('32812/attach', Array)
#9 (root)/include/class.dispatcher.php(120): Dispatcher->resolve('32812/attach', Array)
#10 (root)/include/class.dispatcher.php(38): UrlMatcher->dispatch('/draft/32812/at...', NULL)
#11 (root)/scp/ajax.php(262): Dispatcher->resolve('/draft/32812/at...')
#12 {main}

Comments

Sign In or Register to comment.