Hallo zusammen. Bitte seht mir nach, wenn ich in der falschen Kategorie poste, befinde mich aber im Moment noch im "Installations-Modus". Beim Erstellen eines Artikels bekomme ich den oben genannten Fehler, wenn ich mehrere Artikelbilder einstellen will. Wo kann das Problem liegen? Installation ist lokal!
Erster Post ist zu ungenau. Der USER ERROR(256): "SQL ERROR" gibt diesen Link: localhost/gambio/admin/categories.php?cPath=0_501_496_296_435&pID=&action=insert_product# Es wird also kein Artikel angelegt. Hat jemand eine Idee warum?
Die Fehlermeldung "WARNING(512): "SQL Error" in /.../inc/xtc_db_error.inc.php:33" sagt aus, dass ein SQL-Befehl, also ein Zugriff auf die Datenbank des Shops, fehlgeschlagen ist. Um die genaue Ursache für die Meldung zu erfahren, muss man also den SQL-Befehl und die genaue MySQL-Fehlermeldung kennen. Das ist im Gambio-Shop kein Problem, denn diese werden in einer Log-Datei protokolliert. Die Log-Datei liegt im "logfiles"-Ordner und hat den Dateinamen errors-[ZAHLEN-BUCHSTABEN-KOMBINATION].log. Die Log-Datei kann auch bequem im Adminbereich unter dem Menüpunkt "TOOLBOX" -> "Logs anzeigen" eingesehen werden. Ist die Fehlermeldung die zuletzt angezeigte im Shop, befinden sich die Informationen dazu am Ende der Datei. Man schaut also am Ende nach der Fehlermeldung "WARNING(512): "SQL Error" in .../inc/xtc_db_error.inc.php:33". Nun sieht man direkt darüber den SQL-Befehl (Query) und die MySQL-Fehlermeldung (Error), die Aufschluss über den Fehler im SQL-Befehl geben.
Ich bekomme folgendes: Duplicate entry '7884' for key 'products id 2'" in c:\xampp\htdocs\inc\xtc de error.inc.php:23 Wenn ich einen Artikel mit nur einem zusätzlichen Bild neu anlege geht es. Beim 2. zusätzlichen Bild geht es nicht mehr.
Gesetzt den Fall ich habe aus Versehen in der Tabelle products_images das Feld products_id auf "unique" gesetzt, was ich nicht weiß, wie mache ich das rückgängig?
Hier mal die komplette Fehlermeldung aus dem Log: 2014-10-31 14:47:13 (f528764d624db129b32c21fbca0cb8d6) SQL ERROR(1062): "Duplicate entry '7885' for key 'products_id_2'" in C:\xampp\htdocs\gambio\inc\xtc_db_error.inc.php:23 #5 File: C:\xampp\htdocs\gambio\inc\xtc_db_error.inc.php:23 #4 File: C:\xampp\htdocs\gambio\inc\xtc_db_query.inc.php:77 #3 File: C:\xampp\htdocs\gambio\inc\xtc_db_perform.inc.php:147 #2 File: C:\xampp\htdocs\gambio\admin\includes\classes\categories.php:2455 #1 File: C:\xampp\htdocs\gambio\admin\includes\classes\categories.php:1166 #0 File: C:\xampp\htdocs\gambio\admin\categories.php:181 Request: POST /gambio/admin/categories.php?cPath=501_496_296_435&pID=7885&action=update_product - duration: ~0ms - server: Apache/2.2.12 (Win32) DAV/2 mod_ssl/2.2.12 OpenSSL/0.9.8k mod_autoindex_color PHP/5.3.0 mod_perl/2.0.4 Perl/v5.10.0 - server address: 127.0.0.1 - user agent: Mozilla/5.0 (Windows NT 5.1; rv:33.0) Gecko/20100101 Firefox/33.0 - remote address: f528764d624db129b32c21fbca0cb8d6 Post: - products_status: 1 - products_quantity: 1 - products_date_available: - products_model: aaa - products_ean: - products_startpage_sort: 0 - manufacturers_id: - products_sort: 0 - products_weight: 0.2000 - products_vpe_value: 0.0000 - products_vpe: - gm_price_status: 0 - fsk18: 0 - nc_ultra_shipping_costs: 0.0000 - quantityunit: 0 - shipping_status: 1 - product_type: 1 - product_slider: 0 - hermes_minpclass: XS - gm_min_order: 1 - gm_graduated_qty: 1 - info_template: default - options_template: default - gm_options_template: default - gm_priority: 0.0 - gm_changefreq: always - gm_gprint_surfaces_groups_id: - code_isbn: - code_upc: - code_mpn: - code_jan: - brand_name: - identifier_exists: 1 - gender: - age_group: - expiration_date: 0000-00-00 - google_export_condition: neu - google_export_availability_id: - additional_field_add_names: [...] - category_string: - products_name: [...] - products_url: [...] - products_description_2: - products_short_description_2: - products_keywords: [...] - products_meta_title: [...] - products_meta_description: [...] - products_meta_keywords: [...] - gm_url_keywords: [...] - checkout_information_2: - products_description_1: - products_short_description_1: - checkout_information_1: - gm_prd_img_name: - gm_alt_text: [...] - products_previous_image_0: marsch1_front_7885_0.jpg - gm_gmotion_product_image_0: 1 - gm_gmotion_position_from_0: 0% 50% - gm_gmotion_position_to_0: 100% 50% - gm_gmotion_zoom_from_0: 1 - gm_gmotion_zoom_to_0: 1 - gm_gmotion_duration_0: 10 - gm_gmotion_sort_order_0: 1 - gm_prd_img_name_0: - gm_alt_id: [...] - products_previous_image_1: ma-vik-005.6.jpg - gm_gmotion_product_image_1: 1 - gm_gmotion_position_from_1: 0% 50% - gm_gmotion_position_to_1: 100% 50% - gm_gmotion_zoom_from_1: 1 - gm_gmotion_zoom_to_1: 1 - gm_gmotion_duration_1: 10 - gm_gmotion_sort_order_1: 2 - gm_prd_img_name_1: - products_previous_image_2: - gm_gmotion_product_image_2: 1 - gm_gmotion_position_from_2: 0% 50% - gm_gmotion_position_to_2: 100% 50% - gm_gmotion_zoom_from_2: 1 - gm_gmotion_zoom_to_2: 1 - gm_gmotion_duration_2: 10 - gm_gmotion_sort_order_2: 3 - gm_prd_img_name_2: - products_previous_image_3: - gm_gmotion_product_image_3: 1 - gm_gmotion_position_from_3: 0% 50% - gm_gmotion_position_to_3: 100% 50% - gm_gmotion_zoom_from_3: 1 - gm_gmotion_zoom_to_3: 1 - gm_gmotion_duration_3: 10 - gm_gmotion_sort_order_3: 4 - gm_prd_img_name_3: - products_previous_image_4: - gm_gmotion_product_image_4: 1 - gm_gmotion_position_from_4: 0% 50% - gm_gmotion_position_to_4: 100% 50% - gm_gmotion_zoom_from_4: 1 - gm_gmotion_zoom_to_4: 1 - gm_gmotion_duration_4: 10 - gm_gmotion_sort_order_4: 5 - gm_prd_img_name_4: - products_previous_image_5: - gm_gmotion_product_image_5: 1 - gm_gmotion_position_from_5: 0% 50% - gm_gmotion_position_to_5: 100% 50% - gm_gmotion_zoom_from_5: 1 - gm_gmotion_zoom_to_5: 1 - gm_gmotion_duration_5: 10 - gm_gmotion_sort_order_5: 6 - gm_prd_img_name_5: - products_previous_image_6: - gm_gmotion_product_image_6: 1 - gm_gmotion_position_from_6: 0% 50% - gm_gmotion_position_to_6: 100% 50% - gm_gmotion_zoom_from_6: 1 - gm_gmotion_zoom_to_6: 1 - gm_gmotion_duration_6: 10 - gm_gmotion_sort_order_6: 7 - products_price: 0 - products_price_1: 0 - products_quantity_staffel_1: [...] - products_price_staffel_1: [...] - products_price_2: 0 - products_quantity_staffel_2: [...] - products_price_staffel_2: [...] - products_price_3: 0 - products_quantity_staffel_3: [...] - products_price_staffel_3: [...] - products_discount_allowed: 0.00 - products_tax_class_id: 1 - products_date_added: 2014-10-31 14:45:59 - products_id: 7885 - page_token: c4e0f7c5d30f7cc736b77f5398da945f - save: Speichern Get: - cPath: 501_496_296_435 - pID: 7885 - action: update_product Information: Query: INSERT INTO products_images (products_id, image_nr, image_name) VALUES ('7885', '2', 'rimg0165.jpg')