MayaBlue Posted August 9, 2007 Share Posted August 9, 2007 (edited) Seit der Installation von Contrib Master_products V1.2 (bzw.: danach habe ich es bemerkt), erhalte ich folgende Fehlermeldung wenn ich ein Product duplizieren möchte (die Alternative wäre: verlinken): 1136 - Column count doesn't match value count at row 1 insert into products (products_quantity, products_model,products_image, products_price, products_price1, products_price2, products_price3, products_price4, products_price5, products_price6, products_price7, products_price8, products_price1_qty, products_price2_qty, products_price3_qty, products_price4_qty, products_price5_qty, products_price6_qty, products_price7_qty, products_price8_qty, products_qty_blocks, products_date_added, products_date_available, products_weight, products_status, products_tax_class_id, manufacturers_id) values ('2', '', '14_16contact_3.jpg', '235.0000', '230.0000', '225.0000', '220.0000', '0.0000', '0.0000', '0.0000', '0.0000', '0.0000', '2', '5', '10', '0', '0', '0', '0', '0', '1', now(), '', '0.00', '0', '2', '0', '0', '0') [TEP STOP] Die Fehlermeldung ist bereits für ähnliche Probleme beschrieben http://forums.oscommerce.de/lofiversion/index.php?t13850.html und es gibt auch zwei - allerdings sehr unterschiedliche Lösungsansätze: Fehlertext: insert into products_attributes values ('', '27', '9', '26', '10.00', '+') cosmo 02.01.2006 15:59 Versuch es mal damit, aber mach zuerst ein Backup: //HTC BOC$description_query = tep_db_query("select language_id, products_name, products_description, products_head_title_tag, products_head_desc_tag, products_head_keywords_tag, products_url from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$products_id . "'");while ($description = tep_db_fetch_array($description_query)) {tep_db_query("insert into " . TABLE_PRODUCTS_DESCRIPTION . " (products_id, language_id, products_name, products_description, products_head_title_tag, products_head_desc_tag, products_head_keywords_tag, products_url, products_viewed) values ('" . (int)$dup_products_id . "', '" . (int)$description['language_id'] . "', '" . tep_db_input($description['products_name']) . "', '" . tep_db_input($description['products_description']) . "', '" . tep_db_input($description['products_head_title_tag']) . "', '" . tep_db_input($description['products_head_desc_tag']) . "', '" . tep_db_input($description['products_head_keywords_tag']) . "', '" . tep_db_input($description['products_url']) . "', '0')");}//HTC EOC und http://www.oscommerce.com/forums/index.php?showtopic=187802 I've installed Alternative attribute handling Fehlertext: insert into products_attributes values ('', '1', '3', '6', '', '') Look for this in the admin/products_attributes.php tep_db_query("insert into " . TABLE_PRODUCTS_ATTRIBUTES . " values ('', '" . (int)$products_id . "', '" . (int)$options_id . "', '" . (int)$values_id . "', '" . tep_db_input($value_price) . "', '" . tep_db_input($price_prefix) . "')"); and replace with this tep_db_query("insert into " . TABLE_PRODUCTS_ATTRIBUTES . " values ('', '" . $products_id . "', '" . $options['products_options_id'] . "', '" . $values['products_options_values_id'] . "', '" . $HTTP_POST_VARS['price'][$rows] . "', '" . $HTTP_POST_VARS['prefix'][$rows] . "', '" . (int)$attributes_sort . "')"); und I have add-weight-to-product-attributes v0.2 and this is what I changed to remedy the proble tep_db_query("insert into " . TABLE_PRODUCTS_ATTRIBUTES . " values ('', '" . $products_id . "', '" . $options_id . "', '" . $values_id . "', '" . tep_db_input($value_price) . "', '" . tep_db_input($price_prefix) . "', '" . tep_db_input($value_weight) . "')"); to tep_db_query("insert into " . TABLE_PRODUCTS_ATTRIBUTES . " values ('', '" . $products_id . "', '" . $options_id . "', '" . $values_id . "', '" . tep_db_input($value_price) . "', '" . tep_db_input($price_prefix) . "','" . (int)$attributes_sort . "','" . tep_db_input($value_weight) . "' )"); Finde trotzdem nicht so recht den roten Faden für meinen "Fall". Bin für jeden Tipp dankbar! Maya Edited August 9, 2007 by MayaBlue Link to comment Share on other sites More sharing options...
infobroker1533005402 Posted August 10, 2007 Share Posted August 10, 2007 Es fehlen zwei inserts oder es sind zwei values zuviel. Anleitung nochmal lesen. MFGErich PaeperIch stamme auch nur von den Jägern und Sammlern ab, sagt mir mein Gen.My Contributions Link to comment Share on other sites More sharing options...
MayaBlue Posted August 10, 2007 Author Share Posted August 10, 2007 Danke Infobroker, aber die Installationsanleitung zum Contrib lautet wie folgt: Install the files - changes are marked in the files for those who wish to copy and paste. Run the master.sql file on your database. Da bleibt nicht anderes übrig, wie Zeile für Zeile zu vergleichen. Für andere Contribs dieser Größe sind zum Teil 40 Seiten Installatonsanleitung dabei. (Daür auch ein herzliches Dankeschön an diese mitleidigen Menschen und das meine ich ernst!) Eine geschenkten Gaul ... usw., aber die Installation von Master_Products ist wirklich nicht ganz einfach. Wohl nicht umsonst gibt es allein im .com Forum knapp 200 (Übersichts-) Seiten für den Support. Was ich nicht ganz verstehe, wenn ich ehrlich bin: wäre es nicht simpler für die Urheber, eine umfassende Doku zu erstellen, die wahrscheinlich 95% der anfallenden Fragen erledigen würde, statt viele Stunden für den Support übers Forum einzusetzen? Trotzdem hat mir Deine Antwort weitergeholfen, bzw. mich in meinen Gedankengängen bestärkt. Habe gestern nacht noch eine Weile den Code der obigen Lösungen gestarrt, da fiel mir auf, dass diese doch gar nicht so verschieden waren, wie zuerst angenommen. Ich weiss jetzt, nach was ich suchen kann, es muss aber noch warten. Habe inzwischen eine andere Master Products Baustelle aufgerissen. Gebe aber hier nochmal Bescheid und poste meine Lösung (hoffentlich). Danke! Maya Link to comment Share on other sites More sharing options...
MayaBlue Posted August 12, 2007 Author Share Posted August 12, 2007 Wie versprochen, nochmals Rückmeldung: Habe tatsächlich zwei inserts übersehen, flugs eingefügt und jetzt tut es! Nochmal Danke und einen Gruß! Maya Link to comment Share on other sites More sharing options...
Recommended Posts