Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: Fehler XT-Imageprocessing-New - Variante B

    Perle

    • Neu im Forum
    • Beiträge: 10
    Fehler XT-Imageprocessing-New - Variante B
    am: 31. März 2009, 17:19:36
    Hallo,
    bekomme jedes Mal folgende Fehlermeldungen nachdem ich das Imageprocessing starte:

    Code: PHP  [Auswählen]
    Warning: Missing argument 2 for image_processing_step::process(), called in /kunden/xxxxx_xxxxx/webseiten/xxxxx/admin/module_export.php on line 53 and defined in /kunden/xxxxx_xxxxx/webseiten/xxxxx/admin/includes/modules/export/image_processing_step.php on line 58

    Warning: Cannot modify header information - headers already sent by (output started at /kunden/xxxxx_xxxxx/webseiten/xxxxx/admin/includes/modules/export/image_processing_step.php:58) in /kunden/xxxxx_xxxxx/webseiten/xxxxx/admin/includes/functions/general.php on line 130

    Grüße
    Perle



    Linkback: https://www.modified-shop.org/forum/index.php?topic=554.0
    Templateshop - Eine große Auswahl an neuen und modernen Templates für die modified eCommerce Shopsoftware

    Anonym

    • Gast
    Re: Fehler XT-Imageprocessing-New - Variante B
    Antwort #1 am: 31. März 2009, 19:45:31
    Wurde die Datei "module_export.php" aus dem Update Pack auch überschrieben? Wenn nein dann hochladen.

    Perle

    • Neu im Forum
    • Beiträge: 10
    Re: Fehler XT-Imageprocessing-New - Variante B
    Antwort #2 am: 02. April 2009, 14:28:22
    Hallo Christian,
    ich finde keine "module_export.php" im Update Pack, der selbe Fehler tritt auch nach Installation der neuen Version vom 29.03.2009 auf.

    MfG
    Perle

    Guido

    • Frisch an Board
    • Beiträge: 99
    Re: Fehler XT-Imageprocessing-New - Variante B
    Antwort #3 am: 06. April 2009, 08:54:47
    Leider muss ich die Fehlermeldung bestätigen, auch bei mir taucht dieser fehler auf.
    Bei mir werden auch teilweise keine Bilder mehr angezeigt. Bin hier aber noch am prüfen, ob das ein Einstellungsfehler von meiner Seite aus ist.

    Gruß
    Guido

    tom.f

    • Schreiberling
    • Beiträge: 302
    Re: Fehler XT-Imageprocessing-New - Variante B
    Antwort #4 am: 06. April 2009, 17:33:55
    Zitat
    ich finde keine "module_export.php" im Update Pack
    stimmt :D

    Tippe auf das beliebte Serverproblem.
    Wer/Wo/Was ist Dein Hoster/Paket....

    Guido

    • Frisch an Board
    • Beiträge: 99
    Re: Fehler XT-Imageprocessing-New - Variante B
    Antwort #5 am: 07. April 2009, 13:32:56
    Gehostet ist der Shop bei all-inkl

    Perle

    • Neu im Forum
    • Beiträge: 10
    Re: Fehler XT-Imageprocessing-New - Variante B
    Antwort #6 am: 09. April 2009, 12:04:47
    Habe das Problem bei mir gelöst, kopiere folgenden Code in die "module_export.php", vorher bitte die alte sichern.

    Code: PHP  [Auswählen]
    <?php
    /* --------------------------------------------------------------
       $Id: module_export.php 1179 2005-08-25 12:37:13Z mz $  

       XT-Commerce - community made shopping
       http://www.(( Wir dulden keine kommerziellen Werbelinks - Bitte Forenregeln beachten! ))

       Copyright (c) 2003 XT-Commerce
       --------------------------------------------------------------
       based on:
       (c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
       (c) 2002-2003 osCommerce(modules.php,v 1.45 2003/05/28); www.oscommerce.com
       (c) 2003      nextcommerce (modules.php,v 1.23 2003/08/19); www.nextcommerce.org

       --------------------------------------------------------------
       Contribution
       image_processing_step (step-by-step Variante B) by INSEH 2008-03-26
       image_processing_new_step (mit leeren Verzeichnissen step-by-step Variante C) by INSEH 2008-03-26
       image_processing_new_step2 (mit leeren Verzeichnissen step-by-step Variante D) by INSEH 2008-03-26

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


      require('includes/application_top.php');

      // include needed functions (for modules)

      require_once(DIR_WS_FUNCTIONS . 'export_functions.php');

          if (!is_writeable(DIR_FS_CATALOG . 'export/')) {
                    $messageStack->add(ERROR_EXPORT_FOLDER_NOT_WRITEABLE, 'error');
          }
          $module_type = 'export';
          $module_directory = DIR_WS_MODULES . 'export/';
          $module_key = 'MODULE_EXPORT_INSTALLED';
          $file_extension = '.php';
          define('HEADING_TITLE', HEADING_TITLE_MODULES_EXPORT);
          if (isset($_GET['error'])) {
          $map='error';
          if ($_GET['kind']=='success') $map='success';
          $messageStack->add($_GET['error'], $map);
          }

      switch ($_GET['action']) {
        case 'save':
        if (is_array($_POST['configuration'])) {
        if (count($_POST['configuration'])) {
          while (list($key, $value) = each($_POST['configuration'])) {
            xtc_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $value . "' where configuration_key = '" . $key . "'");
            if (substr($key,'FILE')) $file=$value;
          }
        }
        }

        $class = basename($_GET['module']);
        include($module_directory . $class . $file_extension);
    // <neu>
        if($class == 'image_processing_step'){
        $start = $_GET['start'];
        if($start == '') {
           $start = 0;
        }
        $module = new $class;
        $module->process($file, $start);
        } elseif($class == 'image_processing_new_step') {
        $start = $_GET['start'];
        if($start == '') {
           $start = 0;
        }
        $module = new $class;
        $module->process($file, $start);
        } elseif($class == 'image_processing_new_step2') {
        $module = new $class;
        $module->process($file);
        } else {
        $module = new $class;
        $module->process($file);
        xtc_redirect(xtc_href_link(FILENAME_MODULE_EXPORT, 'set=' . $_GET['set'] . '&module=' . $class));
        }
    // </neu>
          break;

        case 'install':
        case 'remove':
          $file_extension = substr($_SERVER['PHP_SELF'], strrpos($_SERVER['PHP_SELF'], '.'));
          $class = basename($_GET['module']);
          if (file_exists($module_directory . $class . $file_extension)) {
            include($module_directory . $class . $file_extension);
            $module = new $class;
            if ($_GET['action'] == 'install') {
              $module->install();
            } elseif ($_GET['action'] == 'remove') {
              $module->remove();
            }
          }
          xtc_redirect(xtc_href_link(FILENAME_MODULE_EXPORT, 'set=' . $_GET['set'] . '&module=' . $class));
          break;
      }
    ?>
    <!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">
    </head>
    <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">
    <!-- 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 width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
      <tr>
        <td width="80" rowspan="2"><?php echo xtc_image(DIR_WS_ICONS.'heading_modules.gif'); ?></td>
        <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
      </tr>
      <tr>
        <td class="main" valign="top">XT Modules</td>
      </tr>
    </table> </td>
          </tr>
          <tr>
            <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
              <tr>
                <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
                  <tr class="dataTableHeadingRow">
                    <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_MODULES; ?></td>
                    <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_ACTION; ?> </td>
                  </tr>
    <?php
      $file_extension = substr($_SERVER['PHP_SELF'], strrpos($_SERVER['PHP_SELF'], '.'));
      $directory_array = array();
      if ($dir = @dir($module_directory)) {
        while ($file = $dir->read()) {
          if (!is_dir($module_directory . $file)) {
            if (substr($file, strrpos($file, '.')) == $file_extension) {
              $directory_array[] = $file;
            }
          }
        }
        sort($directory_array);
        $dir->close();
      }

      $installed_modules = array();
      for ($i = 0, $n = sizeof($directory_array); $i <$n; $i++) {
        $file = $directory_array[$i];

     //   include(DIR_FS_LANGUAGES . $_SESSION['language'] . '/modules/' . $module_type . '/' . $file);
        include($module_directory . $file);

        $class = substr($file, 0, strrpos($file, '.'));
        if (xtc_class_exists($class)) {
          $module = new $class;
          if ($module->check()> 0) {
            if ($module->sort_order> 0) {
              $installed_modules[$module->sort_order] = $file;
            } else {
              $installed_modules[] = $file;
            }
          }

          if (((!$_GET['module']) || ($_GET['module'] == $class)) && (!$mInfo)) {
            $module_info = array('code' => $module->code,
                                 'title' => $module->title,
                                 'description' => $module->description,
                                 'status' => $module->check());

            $module_keys = $module->keys();
            $keys_extra = array();
            for ($j = 0, $k = sizeof($module_keys); $j <$k; $j++) {
              $key_value_query = xtc_db_query("select configuration_key,configuration_value, use_function, set_function from " . TABLE_CONFIGURATION . " where configuration_key = '" . $module_keys[$j] . "'");
              $key_value = xtc_db_fetch_array($key_value_query);
              if ($key_value['configuration_key'] !='')  $keys_extra[$module_keys[$j]]['title'] = constant(strtoupper($key_value['configuration_key'] .'_TITLE'));
              $keys_extra[$module_keys[$j]]['value'] = $key_value['configuration_value'];
              if ($key_value['configuration_key'] !='')  $keys_extra[$module_keys[$j]]['description'] = constant(strtoupper($key_value['configuration_key'] .'_DESC'));
              $keys_extra[$module_keys[$j]]['use_function'] = $key_value['use_function'];
              $keys_extra[$module_keys[$j]]['set_function'] = $key_value['set_function'];
            }

            $module_info['keys'] = $keys_extra;

            $mInfo = new objectInfo($module_info);
          }

          if ( (is_object($mInfo)) && ($class == $mInfo->code) ) {
            if ($module->check()> 0) {
              echo '              <tr class="dataTableRowSelected" onmouseover="this.style.cursor=\'hand\'" onclick="document.location.href=\'' . xtc_href_link(FILENAME_MODULE_EXPORT, 'set=' . $_GET['set'] . '&module=' . $class . '&action=edit') . '\'">' . "\n";
            } else {
              echo '              <tr class="dataTableRowSelected">' . "\n";
            }
          } else {
            echo '              <tr class="dataTableRow" onmouseover="this.className=\'dataTableRowOver\';this.style.cursor=\'hand\'" onmouseout="this.className=\'dataTableRow\'" onclick="document.location.href=\'' . xtc_href_link(FILENAME_MODULE_EXPORT, 'set=' . $_GET['set'] . '&module=' . $class) . '\'">' . "\n";
          }
    ?>
                    <td class="dataTableContent"><?php echo $module->title; ?></td>
                    <td class="dataTableContent" align="right"><?php if ( (is_object($mInfo)) && ($class == $mInfo->code) ) { echo xtc_image(DIR_WS_IMAGES . 'icon_arrow_right.gif'); } else { echo '<a href="' . xtc_href_link(FILENAME_MODULE_EXPORT, 'set=' . $_GET['set'] . '&module=' . $class) . '">' . xtc_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>'; } ?> </td>
                  </tr>
    <?php
        }
      }

      ksort($installed_modules);
      $check_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = '" . $module_key . "'");
      if (xtc_db_num_rows($check_query)) {
        $check = xtc_db_fetch_array($check_query);
        if ($check['configuration_value'] != implode(';', $installed_modules)) {
          xtc_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . implode(';', $installed_modules) . "', last_modified = now() where configuration_key = '" . $module_key . "'");
        }
      } else {
        xtc_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_key, configuration_value, configuration_group_id, sort_order, date_added) values ( '" . $module_key . "', '" . implode(';', $installed_modules) . "','6', '0', now())");
      }
    ?>
                  <tr>
                    <td colspan="3" class="smallText"><?php echo TEXT_MODULE_DIRECTORY . ' admin/' . $module_directory; ?></td>
                  </tr>
                </table></td>
    <?php
      $heading = array();
      $contents = array();
      switch ($_GET['action']) {
        case 'edit':
          $keys = '';
          reset($mInfo->keys);
          while (list($key, $value) = each($mInfo->keys)) {
             // if($value['description']!='_DESC' && $value['title']!='_TITLE'){
            $keys .= '<b>' . $value['title'] . '</b><br />' .  $value['description'].'<br />';
            //      }
            if ($value['set_function']) {
              eval('$keys .= ' . $value['set_function'] . "'" . $value['value'] . "', '" . $key . "');");
            } else {
              $keys .= xtc_draw_input_field('configuration[' . $key . ']', $value['value']);
            }
            $keys .= '<br /><br />';
          }
          $keys = substr($keys, 0, strrpos($keys, '<br /><br />'));

          $heading[] = array('text' => '<b>' . $mInfo->title . '</b>');
          $class = substr($file, 0, strrpos($file, '.'));
          $module = new $_GET['module'];
          $contents = array('form' => xtc_draw_form('modules', FILENAME_MODULE_EXPORT, 'set=' . $_GET['set'] . '&module=' . $_GET['module'] . '&action=save','post'));
          $contents[] = array('text' => $keys);
          // display module fields
          $contents[] = $module->display();

          break;

        default:
          $heading[] = array('text' => '<b>' . $mInfo->title . '</b>');

          if ($mInfo->status == '1') {
            $keys = '';
            reset($mInfo->keys);
            while (list(, $value) = each($mInfo->keys)) {
              $keys .= '<b>' . $value['title'] . '</b><br />';
              if ($value['use_function']) {
                $use_function = $value['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]();
                  }
                  $keys .= xtc_call_function($class_method[1], $value['value'], ${$class_method[0]});
                } else {
                  $keys .= xtc_call_function($use_function, $value['value']);
                }
              } else {
                      if(strlen($value['value'])> 30) {
                      $keys .=  substr($value['value'],0,30) . ' ...';
                      } else {
                $keys .=  $value['value'];
                            }
              }
              $keys .= '<br /><br />';
            }
            $keys = substr($keys, 0, strrpos($keys, '<br /><br />'));

            $contents[] = array('align' => 'center', 'text' => '<a class="button" onClick="this.blur();" href="' . xtc_href_link(FILENAME_MODULE_EXPORT, 'set=' . $_GET['set'] . '&module=' . $mInfo->code . '&action=remove') . '">' . BUTTON_MODULE_REMOVE . '</a> <a class="button" onClick="this.blur();" href="' . xtc_href_link(FILENAME_MODULE_EXPORT, 'set=' . $_GET['set'] . '&module=' . $mInfo->code . '&action=edit') . '">' . BUTTON_START . '</a>');
            $contents[] = array('text' => '<br />' . $mInfo->description);
            $contents[] = array('text' => '<br />' . $keys);
          } else {
            $contents[] = array('align' => 'center', 'text' => '<a class="button" onClick="this.blur();" href="' . xtc_href_link(FILENAME_MODULE_EXPORT, 'set=' . $_GET['set'] . '&module=' . $mInfo->code . '&action=install') . '">' . BUTTON_MODULE_INSTALL . '</a>');
            $contents[] = array('text' => '<br />' . $mInfo->description);
          }
          break;
      }

      if ( (xtc_not_null($heading)) && (xtc_not_null($contents)) ) {
        echo '            <td width="25%" valign="top">' . "\n";

        $box = new box;
        echo $box->infoBox($heading, $contents);

        echo '            </td>' . "\n";
      }
    ?>
              </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'); ?>

    Anonym

    • Gast
    Re: Fehler XT-Imageprocessing-New - Variante B
    Antwort #7 am: 09. April 2009, 13:01:55
    Schön das Du es gelöst hast. ABER

    1. Was hast Du geändert?
    2. Wo im Code?
    3. Nächstes mal den CODE POSTEN Button nutzen. Dafür ist er ja da.
    4. Datei bitte zippen und hier anhängen.

    DANKE

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.369
    • Geschlecht:
    Re: Fehler XT-Imageprocessing-New - Variante B
    Antwort #8 am: 09. April 2009, 13:37:08
    Wo ist der Code-Button hin? *grübel*

    Hab mir mal die Mühe gemacht und die Dateien verglichen.

    Anbei die Datei zum Austausch.

    Grüße

    Tom

    Anonym

    • Gast
    Re: Fehler XT-Imageprocessing-New - Variante B
    Antwort #9 am: 09. April 2009, 18:35:42
    Wo ist der Code-Button hin? *grübel*
    [...]

      [ Für Gäste sind keine Dateianhänge sichtbar ]

    werresal

    • Neu im Forum
    • Beiträge: 47
    Re: Fehler XT-Imageprocessing-New - Variante B
    Antwort #10 am: 16. Januar 2012, 14:59:57
    Hallo !

    Ich hatte auch den Fehler der ewigen Umleitung bei Imageprozessor B.
    Habe nun die "module_export.php" aus dem Beitrag von Perle genommen, leider erhalte ich nun eine andere Fehlermeldung schon beim Aufruf der "XT-Module"-Seite:

    Code: PHP  [Auswählen]
    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at */*/*/module_export.php:1) in */*/*/application_top.php on line 297

    Wenn ich das Fehlermeldung starte erhalte ich folgenden Fehler:

    Code: PHP  [Auswählen]
    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at */*/*/module_export.php:1) in */*/*/application_top.php on line 297

    Warning: Cannot modify header information - headers already sent by (output started at */*/*/module_export.php:1) in */*/*/general.php on line 130

    An was liegt das ? Bin gerade etwas am Verzweifeln. Vielen Dank für Ihre Hilfe !

    Wenn ich es mit der "module_export.php" versuche erhalte ich die Fehlermeldung mit dem Umleitungsfehler. Allerdings erstellt er zuvor immer genau 210 Vorschaubilder.
    Scripttimeout habe ich serverseitig komplett deaktiviert.

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.369
    • Geschlecht:
    Re: Fehler XT-Imageprocessing-New - Variante B
    Antwort #11 am: 16. Januar 2012, 15:21:27
    Themen zusammengeführt! :!:

    Nimm bitte das überarbeitete Modul: MODUL: Überarbeitetes XT-Imageprocessing (ohne Timeout Probleme) (Ist übrigens auch enthalten, wenn du die Service-Packs für modified eCommerce Shopsoftware 1.05 installiert hast!)

    Grüße

    Torsten
    4 Antworten
    4523 Aufrufe
    28. Mai 2009, 11:33:00 von DokuMan
    5 Antworten
    4511 Aufrufe
    18. Oktober 2011, 22:15:14 von wolf21514
    22 Antworten
    11961 Aufrufe
    02. Juli 2009, 17:51:35 von Anonym