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.

MySQL ERROR: Duplicate entry '0' for key 1

July 02, 2013 5:18am

Subscribe [1]
  • #1 / Jul 02, 2013 5:18am

    web design essex

    30 posts

    MySQL ERROR:

    Error Number: 1062

    Description: Duplicate entry ‘0’ for key 1

    Query: INSERT INTO `exp_revision_tracker` (`tracker_id`, `item_id`, `item_table`, `item_field`, `item_data`, `item_date`) VALUES (’‘, ‘18’, ‘exp_templates’, ‘template_data’, ‘{assign_variable:my_weblog=\"default_site\"}\n{assign_variable:my_template_group=\"sitename\"}\n\n\n\n\n\n\n\n\n\n\n\n\n \n\n\n\n\n\n\n\n\n\n\n\n{exp:weblog:entries weblog=\"default_site\" limit=\"1\" dynamic=\"off\" url_title=\"welcome1\" disable=\"categories|member_data|pagination|trackbacks\" }\n\n
    \n \n
    \n


    Any idea what is causing this and how to resolve it?

  • #2 / Jul 02, 2013 7:26am

    PravinS

    123 posts

    you may have set any unique key constraint for your “exp_revision_tracker” table, please check that

  • #3 / Jul 02, 2013 7:29am

    web design essex

    30 posts

    Sorry, I’m not a DB expert - can you possibly explain that in a less technical way?

  • #4 / Jul 02, 2013 8:02am

    PravinS

    123 posts

    check this url

    http://blogs.vinuthomas.com/2008/06/18/mysql-error-1062-duplicate-entry-0-for-key-1/


    check data type size of field “tracker_id” of table “exp_revision_tracker”

  • #5 / Jul 02, 2013 9:25am

    web design essex

    30 posts

    Sorry, can you point me towards where/how to do this within phpmyAdmin?

  • #6 / Jul 02, 2013 9:40am

    web design essex

    30 posts

    So I’ve changed the type to BIGINT and attributes to UNSIGNED in the table where EE is throwing an error - I’ve attached a screenshot to show this.

    But it still throws the same error unfortunately.

    Can EE staff possibly shed some light on this?

    Thanks,
    Andrew

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

ExpressionEngine News!

#eecms, #events, #releases