Zurück   xt:Commerce Webshop Shop Support > xt:Commerce Shopsoftware Community Area > Admininterface

Antwort
 
LinkBack Themen-Optionen Ansicht
  #1 (permalink)  
Alt 28.04.2008, 23:05
Benutzer
 
Registriert seit: 27.06.2007
Ort: Falkensee
Beiträge: 60
Standard Fehler Versand Option im Admin bereich wer kann Helfen ?

Habe im Admin bereich unter Versand Option diese Fehlermeldungen oben zu stehen :

Warning: constant() [function.constant]: Couldn't find constant MODULE_ORDER_TOTAL_DISCOUNT_SORT_ORDER_TITLE in /www/htdocs/w008a1c2/admin/configuration.php on line 185

Warning: constant() [function.constant]: Couldn't find constant MODULE_ORDER_TOTAL_DISCOUNT_SORT_ORDER_DESC in /www/htdocs/w008a1c2/admin/configuration.php on line 192



Die Datei Configuration.php sieht so aus :

<?php
/* --------------------------------------------------------------
$Id: configuration.php 229 2007-03-06 19:46:21Z mzanier $

XT-Commerce - community made shopping
http://www.xt-commerce.com

Copyright (c) 2003 XT-Commerce
--------------------------------------------------------------
based on:
(c) 2000-2001 The Exchange Project (earlier name of osCommerce)
(c) 2002-2003 osCommerce(configuration.php,v 1.40 2002/12/29); www.oscommerce.com
(c) 2003 nextcommerce (configuration.php,v 1.16 2003/08/19); www.nextcommerce.org

Released under the GNU General Public License
--------------------------------------------------------------*/

require('includes/application_top.php');

if ($_GET['action']) {
switch ($_GET['action']) {
case 'save':

$configuration_query = xtc_db_query("select configuration_key,configuration_id, configuration_value, use_function,set_function from " . TABLE_CONFIGURATION . " where configuration_group_id = '" . (int)$_GET['gID'] . "' order by sort_order");

while ($configuration = xtc_db_fetch_array($configuration_query))
xtc_db_query("UPDATE ".TABLE_CONFIGURATION." SET configuration_value='".$_POST[$configuration['configuration_key']]."' where configuration_key='".$configuration['configuration_key']."'");

xtc_redirect(FILENAME_CONFIGURATION. '?gID=' . (int)$_GET['gID']);
break;

}
}

$cfg_group_query = xtc_db_query("select configuration_group_title from " . TABLE_CONFIGURATION_GROUP . " where configuration_group_id = '" . (int)$_GET['gID'] . "'");
$cfg_group = xtc_db_fetch_array($cfg_group_query);
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $_SESSION['language_charset']; ?>">
<title><?php echo TITLE; ?></title>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
<script type="text/javascript" src="includes/general.js"></script>
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF" onLoad="SetFocus();">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" cellspacing="2" cellpadding="2">
<tr>
<td class="columnLeft2" width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>
<!-- body_text //-->
<td class="boxCenter" width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="80" rowspan="2"><?php echo xtc_image(DIR_WS_ICONS.'conf.png'); ?></td>
<td class="pageHeading"><?php echo $cfg_group['configuration_group_title']; ?></td>
</tr>
<tr>
<td class="main" valign="top">xt:Commerce Configuration</td>
</tr>
</table> </td>
</tr>
<tr>
<td style="border-top: 3px solid; border-color: #cccccc;" class="main"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<?php
switch ($_GET['gID']) {
case 21:
case 19:
case 24:
case 25:
echo '<table width="100%">
<tr class="dataTableHeadingRow">
<td width="150" align="center">
<a class="button" href="'.xtc_href_link(FILENAME_CONFIGURATION, 'gID=21', 'NONSSL').'">Afterbuy</a>
</td>
<td width="1">|
</td>
<td width="150" align="center">
<a class="button" href="'.xtc_href_link(FILENAME_CONFIGURATION, 'gID=19', 'NONSSL').'">Google Conversion</a>
</td>
<td width="1">|
</td>
<td width="150" align="center">
<a class="button" href="'.xtc_href_link(FILENAME_CONFIGURATION, 'gID=24', 'NONSSL').'">x-check</a>
</td>
<td width="1">|
</td>
<td width="150" align="center">
<a class="button" href="'.xtc_href_link(FILENAME_CONFIGURATION, 'gID=25', 'NONSSL').'">Paypal</a>
</td>
<td width="1">|
</td>
<td>
</td>
</tr>
</table>';

break;
}
?>


<tr>
<td valign="top" align="right">

<?php echo xtc_draw_form('configuration', FILENAME_CONFIGURATION, 'gID=' . (int)$_GET['gID'] . '&action=save'); ?>
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<?php
$configuration_query = xtc_db_query("select configuration_key,configuration_id, configuration_value, use_function,set_function from " . TABLE_CONFIGURATION . " where configuration_group_id = '" . (int)$_GET['gID'] . "' order by sort_order");

while ($configuration = xtc_db_fetch_array($configuration_query)) {
if ($_GET['gID'] == 6) {
switch ($configuration['configuration_key']) {
case 'MODULE_PAYMENT_INSTALLED':
if ($configuration['configuration_value'] != '') {
$payment_installed = explode(';', $configuration['configuration_value']);
for ($i = 0, $n = sizeof($payment_installed); $i < $n; $i++) {
include(DIR_FS_CATALOG_LANGUAGES . $language . '/modules/payment/' . $payment_installed[$i]);
}
}
break;

case 'MODULE_SHIPPING_INSTALLED':
if ($configuration['configuration_value'] != '') {
$shipping_installed = explode(';', $configuration['configuration_value']);
for ($i = 0, $n = sizeof($shipping_installed); $i < $n; $i++) {
include(DIR_FS_CATALOG_LANGUAGES . $language . '/modules/shipping/' . $shipping_installed[$i]);
}
}
break;

case 'MODULE_ORDER_TOTAL_INSTALLED':
if ($configuration['configuration_value'] != '') {
$ot_installed = explode(';', $configuration['configuration_value']);
for ($i = 0, $n = sizeof($ot_installed); $i < $n; $i++) {
include(DIR_FS_CATALOG_LANGUAGES . $language . '/modules/order_total/' . $ot_installed[$i]);
}
}
break;
}
}
if (xtc_not_null($configuration['use_function'])) {
$use_function = $configuration['use_function'];
if (ereg('->', $use_function)) {
$class_method = explode('->', $use_function);
if (!is_object(${$class_method[0]})) {
include(DIR_WS_CLASSES . $class_method[0] . '.php');
${$class_method[0]} = new $class_method[0]();
}
$cfgValue = xtc_call_function($class_method[1], $configuration['configuration_value'], ${$class_method[0]});
} else {
$cfgValue = xtc_call_function($use_function, $configuration['configuration_value']);
}
} else {
$cfgValue = $configuration['configuration_value'];
}

if (((!$_GET['cID']) || (@$_GET['cID'] == $configuration['configuration_id'])) && (!$cInfo) && (substr($_GET['action'], 0, 3) != 'new')) {
$cfg_extra_query = xtc_db_query("select configuration_key,configuration_value, date_added, last_modified, use_function, set_function from " . TABLE_CONFIGURATION . " where configuration_id = '" . $configuration['configuration_id'] . "'");
$cfg_extra = xtc_db_fetch_array($cfg_extra_query);

$cInfo_array = xtc_array_merge($configuration, $cfg_extra);
$cInfo = new objectInfo($cInfo_array);
}
if ($configuration['set_function']) {
eval('$value_field = ' . $configuration['set_function'] . '"' . htmlspecialchars($configuration['configuration_value']) . '");');
} else {
$value_field = xtc_draw_input_field($configuration['configuration_key'], $configuration['configuration_value'],'size=40');
}
// add

if (strstr($value_field,'configuration_value')) $value_field=str_replace('configuration_value',$co nfiguration['configuration_key'],$value_field);

echo '
<tr>
<td width="300" valign="top" class="dataTableContent"><b>'.constant(strtoupper( $configuration['configuration_key'].'_TITLE')).'</b></td>
<td valign="top" class="dataTableContent">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="dataTableContentConfig">'.$value_field.'</td>
</tr>
</table>
<br />'.constant(strtoupper( $configuration['configuration_key'].'_DESC')).'</td>
</tr>
';

}
?>
</table>
<?php echo '<input type="submit" class="button" onClick="this.blur();" value="' . BUTTON_SAVE . '"/>'; ?></form>
</td>

</tr>
</table></td>
</tr>
</table></td>
<!-- body_text_eof //-->
</tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br />
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>




Hat jemand eine Idee was da falsch ist ????

Danke schon mal im vorraus !

Maik
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #2 (permalink)  
Alt 29.04.2008, 08:15
Erfahrener Benutzer
 
Registriert seit: 26.12.2005
Beiträge: 461
Standard

Die Module
MODULE_ORDER_TOTAL_DISCOUNT_SORT_ORDER_TITLE
MODULE_ORDER_TOTAL_DISCOUNT_SORT_ORDER_DESC
werden in der lang/german/modules/order_total/ot_discount.php definiert.
Fehlen dort die Variablen? Exisitert die ot_discount.php?
Allerdings wunderts mich das die für die Adminseite definert werden sollen... mhm...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #3 (permalink)  
Alt 22.05.2008, 10:23
Benutzer
 
Registriert seit: 13.03.2008
Beiträge: 49
Standard

Die Fehlermeldung habe ich auch. In der ot_discount.php sind die Variablen aber auch drin:
Code:
define('MODULE_ORDER_TOTAL_DISCOUNT_SORT_ORDER_TITLE', 'Sortierreihenfolge');
define('MODULE_ORDER_TOTAL_DISCOUNT_SORT_ORDER_DESC','Anzeigereihenfolge.');
Nur wie bekomme ich den Fehler wieder w.e.c.h.? Es wird soweit alles richtig dargestellt, es fehlt auch keine Bennung von Punkten, sondern da steht nur die Fehlermeldung. Ersetze ich die Variable durch normalen Text, so wird unter "Versandoptionen" logischerweise alle Felder gleich genannt. Nehme ich das Constant wieder rein, so werden die Felder richtig beschriftet, allerdings steht der Fehler dann wieder da ... Keine Ahnung was ich da ändern muß ...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #4 (permalink)  
Alt 28.05.2008, 07:13
Benutzer
 
Registriert seit: 13.03.2008
Beiträge: 49
Standard

Ach ja, ich habe den Fehler behoben, indem ich diese beiden Zeilen in die configuration.php in
Code:
lang\german\admin
eingefügt habe.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #5 (permalink)  
Alt 28.07.2008, 06:41
Benutzer
 
Registriert seit: 27.06.2007
Ort: Falkensee
Beiträge: 60
Standard

Zitat:
Zitat von deHans Beitrag anzeigen
Ach ja, ich habe den Fehler behoben, indem ich diese beiden Zeilen in die configuration.php in
Code:
lang\german\admin
eingefügt habe.
Könntest du mir sagen wie du das genau gemacht hast ??? Ich bekomme diesen fehler nicht weg !!

mfg
Maik
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #6 (permalink)  
Alt 28.07.2008, 07:31
Benutzer
 
Registriert seit: 27.06.2007
Ort: Falkensee
Beiträge: 60
Standard

Zitat:
Zitat von deHans Beitrag anzeigen
Ach ja, ich habe den Fehler behoben, indem ich diese beiden Zeilen in die configuration.php in
Code:
lang\german\admin
eingefügt habe.
Könntest du mir sagen wie du das genau gemacht hast ??? Ich bekomme diesen fehler nicht weg !!

mfg
Maik
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #7 (permalink)  
Alt 15.01.2009, 12:37
Benutzer
 
Registriert seit: 31.05.2007
Beiträge: 49
Standard

Zitat:
Zitat von 1a.technik Beitrag anzeigen
Könntest du mir sagen wie du das genau gemacht hast ??? Ich bekomme diesen fehler nicht weg !!

mfg
Maik
Hallo Zusammen,

wir haben das auch mal probiert, da wir den gleichen Fehlercode erhalten haben. Es ist auch bei uns so, dass nach einfügen der beiden Zeilen...
define('MODULE_ORDER_TOTAL_DISCOUNT_SORT_ORDER_TIT LE', 'Sortierreihenfolge');
define('MODULE_ORDER_TOTAL_DISCOUNT_SORT_ORDER_DES C','Anzeigereihenfolge.');

in die Configuration.php unter lang\german\admin der Fehlercode weg ist. Aber dafür gibt es dann unter Konfiguration -> XT:C-Partner -> Palpal eine ganze Fehlercode-Latte .
Wer hat eine Lösung, wie beide Fehlercodes verschwinden?

BG

map_1961
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
admin, bereich, fehler, helfen, option, versand

Themen-Optionen
Ansicht

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are aus
Pingbacks are aus
Refbacks are aus


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Fehler Meldung Im Admin Bereich TT-Tuning Admininterface 0 13.05.2005 17:46


Alle Zeitangaben in WEZ +1. Es ist jetzt 00:04 Uhr.

Copyright © 2011 xt:Commerce GmbH / xt:Commerce International Ltd. - All Rights Reserved

xt:Commerce is a SafeCharge brand