Managed Server
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: XT-Module Fehler beim "Idealo"-Export

    TechnikOnkel

    • Frisch an Board
    • Beiträge: 56
    XT-Module Fehler beim "Idealo"-Export
    am: 17. September 2010, 07:36:47
    Hallo

    Ich habe das XT-Modul "Idealo" installiert, beim exportieren bekomme ich folgende Fehlermeldung:

    Code: PHP  [Auswählen]
    Warning: substr() expects parameter 2 to be long, string given in /var/www/virtual/xxx/htdocs/admin/module_export.php on line 50

    Warning: substr() expects parameter 2 to be long, string given in /var/www/virtual/xxx/htdocs/admin/module_export.php on line 50

    Warning: fopen(/var/www/virtual/xxx/htdocs/export/) [function.fopen]: failed to open stream: Is a directory in /var/www/virtual/xxx/htdocs/admin/includes/modules/export/idealo.php on line 702

    Warning: fputs() expects parameter 1 to be resource, boolean given in /var/www/virtual/xxx/htdocs/admin/includes/modules/export/idealo.php on line 703

    Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/virtual/xxx/htdocs/admin/includes/modules/export/idealo.php on line 704

    Warning: Cannot modify header information - headers already sent by (output started at /var/www/virtual/xxx/htdocs/admin/module_export.php:50) in /var/www/virtual/xxx/htdocs/admin/includes/modules/export/idealo.php on line 713

    Warning: Cannot modify header information - headers already sent by (output started at /var/www/virtual/xxx/htdocs/admin/module_export.php:50) in /var/www/virtual/xxx/htdocs/admin/includes/modules/export/idealo.php on line 714



    Linkback: https://www.modified-shop.org/forum/index.php?topic=8095.0

    TechnikOnkel

    • Frisch an Board
    • Beiträge: 56
    XT-Module Fehler beim "Idealo"-Export
    Antwort #1 am: 20. September 2010, 15:40:21
    schade ist das Problem nicht bekannt?

    franky_n

    • Experte
    • Beiträge: 4.950
    XT-Module Fehler beim "Idealo"-Export
    Antwort #2 am: 21. September 2010, 06:53:30
    Hallo Technik Onkel,

    hast Du diese Version aus Tomcraft's Post benutzt? -> Idealo CSV Export mit Versand?

    Falls nicht dann diese mal antesten...

    Viele Grüße

    Franky

    TechnikOnkel

    • Frisch an Board
    • Beiträge: 56
    XT-Module Fehler beim "Idealo"-Export
    Antwort #3 am: 21. September 2010, 07:28:46
    ja habe ich auch schon versucht

    bei allen anderen modulen kommt auch eine Fehlermeldung:

    Code: PHP  [Auswählen]
    Warning: fopen(/var/www/virtual/xxx/htdocs/export/) [function.fopen]: failed to open stream: Is a directory in /var/www/virtual/xxx/htdocs/admin/includes/modules/export/idealo.php on line 923

    Warning: fputs() expects parameter 1 to be resource, boolean given in /var/www/virtual/xxx/htdocs/admin/includes/modules/export/idealo.php on line 924

    Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/virtual/xxx/htdocs/admin/includes/modules/export/idealo.php on line 925

    Warning: Cannot modify header information - headers already sent by (output started at /var/www/virtual/xxx/htdocs/admin/includes/modules/export/idealo.php:923) in /var/www/virtual/xxx/htdocs/admin/includes/modules/export/idealo.php on line 933

    Warning: Cannot modify header information - headers already sent by (output started at /var/www/virtual/xxx/htdocs/admin/includes/modules/export/idealo.php:923) in /var/www/virtual/xxx/htdocs/admin/includes/modules/export/idealo.php on line 934

    zub

    • Schreiberling
    • Beiträge: 401
    XT-Module Fehler beim "Idealo"-Export
    Antwort #4 am: 21. September 2010, 09:06:12
    @ TechnikOnkel,
    welche PHP Verion hast Du?
    Hat der Ordner export in Deinem Verzeichnis die Rechte 777?
    Kommt der Fehler bei beiden Idealo Dateien die in dem Packet von Torsten waren?

    MfG
    zub

    TechnikOnkel

    • Frisch an Board
    • Beiträge: 56
    XT-Module Fehler beim "Idealo"-Export
    Antwort #5 am: 21. September 2010, 10:41:20
    jua ich habe mal beide Varianten getestet, aber da ich PHP 5.3.2-1ubuntu4.2

    Die Ordner Export haben auch die Rechte 777

    Die Fehlermeldung kommt sowohl bei idealo als auch bei allen anderen Anbietern!

    muss fopen installiert werden? bzw. kann das geprüft werden ob es installiert ist?

    GTB

    • modified Team
    • Gravatar
    • Beiträge: 6.303
    • Geschlecht:
    XT-Module Fehler beim "Idealo"-Export
    Antwort #6 am: 21. September 2010, 11:09:24
    bei PHP> 5.3 gibt es mit der 1.05 noch Probleme mit dem Export.

    "/admin/module_export.php"

    suche:

    Code: PHP  [Auswählen]
    if (substr($key,'FILE')) $file=$value;

    ersetze es mit dem hier:

    Code: PHP  [Auswählen]
    if (strpos($key,'FILE') !== false) $file=$value;

    dann sollte es funktionieren.

    Gruss GTB

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.367
    • Geschlecht:
    XT-Module Fehler beim "Idealo"-Export
    Antwort #7 am: 21. September 2010, 11:26:40
    Hoppala... kannst du auch gerne gleich in den Trunk laden. :hust: :whistle:

    Grüße

    Torsten

    GTB

    • modified Team
    • Gravatar
    • Beiträge: 6.303
    • Geschlecht:
    XT-Module Fehler beim "Idealo"-Export
    Antwort #8 am: 21. September 2010, 11:30:35
    ist schon ganz ganz ganz lange drin  :mrgreen:

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.367
    • Geschlecht:
    XT-Module Fehler beim "Idealo"-Export
    Antwort #9 am: 21. September 2010, 11:42:21
    Upps... :oops:

    :thx:

    Grüße

    Torsten

    TechnikOnkel

    • Frisch an Board
    • Beiträge: 56
    XT-Module Fehler beim "Idealo"-Export
    Antwort #10 am: 21. September 2010, 13:47:53
    Vielen Dank jetzt funktioniert es prima!!

    GTB

    • modified Team
    • Gravatar
    • Beiträge: 6.303
    • Geschlecht:
    XT-Module Fehler beim "Idealo"-Export
    Antwort #11 am: 21. September 2010, 13:54:41
    nochmals:

    /admin/module_export ca. Zeile 44 findest du das hier:

    Code: PHP  [Auswählen]
      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;
          }
        }
        }
     
    das ersetzt du mit dem hier:

    Code: PHP  [Auswählen]
      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 . "'");
           //BOF - GTB - 2010-08-06 - start Download Problem PHP> 5.3
           if (strpos($key,'FILE') !== false) $file=$value;
            //if (substr($key,'FILE')) $file=$value;
           //BOF - GTB - 2010-08-06 - start Download Problem PHP> 5.3
          }
        }
        }
     
    diese Code Passagen sind aus Version 1.05

    Gruss GTB

    3 Antworten
    2514 Aufrufe
    31. Juli 2011, 19:09:14 von franky_n
    17 Antworten
    10222 Aufrufe
    04. Januar 2011, 19:30:27 von franky_n
    4 Antworten
    2601 Aufrufe
    06. September 2010, 13:35:11 von pb
               
    anything