Author Topic: Duplicate entry '0' for key 1  (Read 2921 times)

0 Members and 1 Guest are viewing this topic.

Offline Gibsy

  • Newbie
  • *
  • Posts: 23
    • View Profile
    • Gibsys Spielparadies
Duplicate entry '0' for key 1
« on: October 28, 2007, 11:32:28 PM »
Bitte um Hilfe!

ich finde hier leider keine Lösung des halb mein Post :oops:

Dieser Fehler wird im ACP angezeigt wenn ich Bilder hinzufügen möchte:

DB Error: Bad SQL Query: INSERT INTO 4images_images (cat_id, user_id, image_name, image_description, image_keywords, image_date, image_active, image_media_file, image_thumb_file, image_download_url, image_allow_comments) VALUES (94, 2, 'Alte-Fotos-12', '', '', 1193609708, 1, 'Alte-Fotos-12.jpg', '', '', 1)
Duplicate entry '0' for key 1

Leider kann ich auch keine neue Kategorie erstellen, kann mir bitte jemand helfen :oops:

Wir hatten 30 Jähriges Klassentreffen und nun warten alle auf die Fotos die ich gemacht habe, ist mir sehr peinlich, bitte um hilfe zum lösen des Fehlers :cry: :oops:

Vielen Dank im voraus

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Duplicate entry '0' for key 1
« Reply #1 on: October 29, 2007, 12:36:10 AM »
This is apend if:

1 - Lost connection.
2 - Get connection but lost packet.
2 - Post form (same time after one time for insert same image ID and cat ID).

Solution - check your 4images_images table for same last ID of image ID.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline Gibsy

  • Newbie
  • *
  • Posts: 23
    • View Profile
    • Gibsys Spielparadies
Re: Duplicate entry '0' for key 1
« Reply #2 on: October 29, 2007, 01:16:50 AM »
I can not English, sorry :oops: i not understand :oops: