Shop Support News Archive - Shopbetreiber News -> Forum : xt-commerce module 3.04sp2.1 Setup: Fehler In Bestellübersicht
Yel Nats
29.10.2006, 12:33
Hallo,
folgendes Problem:
wenn ich die Bestellung eines Kunden anklicken, dann taucht in der Spalte Artikelnummer folgender Fehler auf:
Warning: Missing argument 3 for xtc_get_attributes_model() in /var/www/web68/html/shop/inc/xtc_get_attributes_model.inc.php on line 16
Warning: Missing argument 3 for xtc_get_attributes_model() in /var/www/web68/html/shop/inc/xtc_get_attributes_model.inc.php on line 16
Was ist das?!
Danke schonmal!
Yel Nats
Yel Nats
30.10.2006, 08:29
Keiner ne Idee?
Yel Nats
03.11.2006, 15:14
gar keiner?
Yel Nats
08.11.2006, 13:47
sorry fürs nochmalige hoch holen
TS-Internet
18.11.2006, 00:24
Hi,
hier die Lösung :)
Einfach dies in die Datei wie folgt ändern.
<?php
/ -----------------------------------------------------------------------------------------
** $Id: xtc_get_attributes_model.inc.php 899 2005-04-29 02:40:57Z hhgag $
** XT-Commerce - community made shopping
** http://www.xt-commerce.com
** Copyright (c) 2003 XT-Commerce
** -----------------------------------------------------------------------------------------
** based on:
** (c) 2003**** nextcommerce (xtc_get_attributes_model.inc.php,v 1.1 2003/08/19); www.nextcommerce.org
** Released under the GNU General Public License
** --------------------------------------------------------------------------------------- /
function xtc_get_attributes_model($product_id, $attribute_name)
****{
****$options_value_id_query=xtc_db_query("SELECT
****************products_options_values_id
****************FROM ".TABLE_PRODUCTS_OPTIONS_VALUES."
****************WHERE products_options_values_name='".$attribute_name."'");
****while ($options_value_id_data=xtc_db_fetch_array($option s_value_id_query)) {
****$options_attr_query=xtc_db_query("SELECT
****************attributes_model
****************FROM ".TABLE_PRODUCTS_ATTRIBUTES."
****************WHERE options_values_id='".$options_value_id_data['products_options_values_id']."' AND products_id =" . $product_id);
****$options_attr_data=xtc_db_fetch_array($options _attr_query);
****if ($options_attr_data['attributes_model']!='') {
****return $options_attr_data['attributes_model'];
****}
****}
****}
?>
Gruß
Serkan
''>ZITAT(Yel Nats @ Oct 30 2006, 8:29) 13959
Keiner ne Idee?
[/b]
Die Fehlermeldung sagt, die Funktion "xtc_get_attributes_model" wurde mit 2 anstatt 3 Parametern aufgerufen. Das sieht mir nach nem verunglückten Update xtc304sp1 -> xtc304sp2. Unter sp1 hatte die Funktion noch 2 Parameter.
Serkan hat recht.
Er gab dir die Version aus sp1: inc/xtc_get_attributes_model.inc.php
Gruss
Hen
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.