ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Duplicate entry '6' for key 1

November 08, 2010 1:07pm

Subscribe [3]
  • #1 / Nov 08, 2010 1:07pm

    tripp

    92 posts

    Attempted to attach an image to a new forum post and received the following error:

    A Database Error Occurred
    
    Error Number: 1062
    
    Duplicate entry '6' for key 1
    
    UPDATE `exp_forum_attachments` SET `topic_id` = '11', `post_id` = 0, `board_id` = '2', `is_temp` = 'n', `attachment_id` = 6

    The post itself was saved to the forum but not the associated image. If I attempt to edit the post and add the image again, I receive a similar error error.

    A Database Error Occurred
    
    Error Number: 1062
    
    Duplicate entry '8' for key 1
    
    UPDATE `exp_forum_attachments` SET `topic_id` = '11', `post_id` = 0, `board_id` = '2', `is_temp` = 'n', `attachment_id` = 8

    Any ideas?

    EE: version 2.1.0 (20100810)
    Forum: version 3.1.0 (20100805)

  • #2 / Nov 09, 2010 4:33am

    John Henry Donovan

    12339 posts

    tripp,

    This was a resolved bug

    Your forum is behind a build and EE is also behind a version. Can you update both to see if issue persists please

  • #3 / Nov 09, 2010 8:41am

    tripp

    92 posts

    Thanks for the info on the bug. I’ve updated EE and my forum files. This issue is resolved.

  • #4 / Nov 09, 2010 9:03am

    Ingmar

    29245 posts

    Very glad to hear it. Please post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases