1a.technik Posted April 28, 2008 Report Share Posted April 28, 2008 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 © 2003 XT-Commerce -------------------------------------------------------------- based on: © 2000-2001 The Exchange Project (earlier name of osCommerce) © 2002-2003 osCommerce(configuration.php,v 1.40 2002/12/29); www.oscommerce.com © 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 Link to comment Share on other sites More sharing options...
rivendarkness Posted April 29, 2008 Report Share Posted April 29, 2008 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... Link to comment Share on other sites More sharing options...
deHans Posted May 22, 2008 Report Share Posted May 22, 2008 Die Fehlermeldung habe ich auch. In der ot_discount.php sind die Variablen aber auch drin: 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ß ... Link to comment Share on other sites More sharing options...
deHans Posted May 28, 2008 Report Share Posted May 28, 2008 Ach ja, ich habe den Fehler behoben, indem ich diese beiden Zeilen in die configuration.php in lang\german\admin eingefügt habe. Link to comment Share on other sites More sharing options...
1a.technik Posted July 28, 2008 Author Report Share Posted July 28, 2008 Ach ja, ich habe den Fehler behoben, indem ich diese beiden Zeilen in die configuration.php in 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 Link to comment Share on other sites More sharing options...
1a.technik Posted July 28, 2008 Author Report Share Posted July 28, 2008 Ach ja, ich habe den Fehler behoben, indem ich diese beiden Zeilen in die configuration.php in 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 Link to comment Share on other sites More sharing options...
map_1961 Posted January 15, 2009 Report Share Posted January 15, 2009 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_TITLE', 'Sortierreihenfolge'); define('MODULE_ORDER_TOTAL_DISCOUNT_SORT_ORDER_DESC','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 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.