#1 (permalink)  
Alt 16.07.2005, 14:50
 
Registriert seit: 08.07.2005
Beiträge: 28
Standard

Nachdem ich das Contrib jetzt aufgetrieben habe und soweit installiert habe ich eine Fehlermeldung in der checkout_payment.php

Code:
Warning: constant(): Couldn't find constant MODULE_PAYMENT_OT_PAYMENT_ALLOWED in /home/www/web111/html/includes/classes/payment.php on line 63

Fatal error: Call to undefined function: javascript_validation() in /home/www/web111/html/includes/classes/payment.php on line 137
Weiss jemand wo der Fehler liegt und was ich ?ndern muss ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #2 (permalink)  
Alt 16.07.2005, 20:28
nom nom ist offline
 
Registriert seit: 19.02.2004
Beiträge: 596
Standard

Es fehlt eine Konstante in der Datenbank.

Code:
insert into configuration (configuration_key, configuration_value, configuration_group_id, sort_order, date_added) values (
'MODULE_PAYMENT_OT_PAYMENT_ALLOWED', '',  '6', '0', now()
);
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #3 (permalink)  
Alt 16.07.2005, 20:47
 
Registriert seit: 08.07.2005
Beiträge: 28
Standard

Dankeeee !!!

Damit ist ein Fehler weg.

Die Fehlermeldung
Code:
Fatal error: Call to undefined function: javascript_validation() in /home/www/web111/html/includes/classes/payment.php on line 137
erscheint immer noch.

Der Code-Abschnitt um den es gehen m?sste lautet :
Code:
 if ($GLOBALS[$class]->enabled) {
      $js .= $GLOBALS[$class]->javascript_validation();
     }
    }

    $js .= "\n" . ' if (payment_value == null) {' . "\n" .
        '  error_message = error_message + "' . JS_ERROR_NO_PAYMENT_MODULE_SELECTED . '";' . "\n" .
        '  error = 1;' . "\n" .
        ' }' . "\n\n" .
        ' if (error == 1 && submitter != 1) {' . "\n" . // GV Code Start/End
        '  alert(error_message);' . "\n" .
        '  return false;' . "\n" .
        ' } else {' . "\n" .
        '  return true;' . "\n" .
        ' }' . "\n" .
        '}' . "\n" .
        '//--></script>' . "\n";
   }

   return $js;
  }
Was muss ich denn da noch ?ndern ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #4 (permalink)  
Alt 16.07.2005, 22:39
nom nom ist offline
 
Registriert seit: 19.02.2004
Beiträge: 596
Standard

Wo ist die Funktion javascript_validation() definiert?!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #5 (permalink)  
Alt 17.07.2005, 09:08
 
Registriert seit: 08.07.2005
Beiträge: 28
Standard

Code:
 $js .= $GLOBALS[$class]->javascript_validation();
     }
Das m?sste es doch sein
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #6 (permalink)  
Alt 17.07.2005, 12:56
 
Registriert seit: 08.07.2005
Beiträge: 28
Standard

Habe mir jetzt die Datei zum x-ten mal angeschaut und steige nicht durch.

Code:
 // class methods
  /* The following method is needed in the checkout_confirmation.php page
    due to a chicken and egg problem with the payment class and order class.
    The payment modules needs the order destination data for the dynamic status
    feature, and the order class needs the payment module title.
    The following method is a work-around to implementing the method in all
    payment modules available which would break the modules in the contributions
    section. This should be looked into again post 2.2.
   */
  function update_status() {
   if (is_array($this->modules)) {
    if (is_object($GLOBALS[$this->selected_module])) {
     if (function_exists('method_exists')) {
      if (method_exists($GLOBALS[$this->selected_module], 'update_status')) {
       $GLOBALS[$this->selected_module]->update_status();
      }
     } else { // PHP3 compatibility
      @call_user_method('update_status', $GLOBALS[$this->selected_module]);
     }
    }
   }
  }

  function javascript_validation() {
   $js = '';
   if (is_array($this->modules)) {
    $js = '<script language="javascript"><!-- ' . "\n" .
       'function check_form() {' . "\n" .
       ' var error = 0;' . "\n" .
       ' var error_message = "' . JS_ERROR . '";' . "\n" .
       ' var payment_value = null;' . "\n" .
       ' if (document.checkout_payment.payment.length) {' . "\n" .
       '  for (var i=0; i<document.checkout_payment.payment.length; i++) {' . "\n" .
       '   if (document.checkout_payment.payment[i].checked) {' . "\n" .
       '    payment_value = document.checkout_payment.payment[i].value;' . "\n" .
       '   }' . "\n" .
       '  }' . "\n" .
       ' } else if (document.checkout_payment.payment.checked) {' . "\n" .
       '  payment_value = document.checkout_payment.payment.value;' . "\n" .
       ' } else if (document.checkout_payment.payment.value) {' . "\n" .
       '  payment_value = document.checkout_payment.payment.value;' . "\n" .
       ' }' . "\n\n";

    reset($this->modules);
    while (list(, $value) = each($this->modules)) {
     $class = substr($value, 0, strrpos($value, '.'));
     if ($GLOBALS[$class]->enabled) {
      $js .= $GLOBALS[$class]->javascript_validation();
     }
    }

    $js .= "\n" . ' if (payment_value == null) {' . "\n" .
        '  error_message = error_message + "' . JS_ERROR_NO_PAYMENT_MODULE_SELECTED . '";' . "\n" .
        '  error = 1;' . "\n" .
        ' }' . "\n\n" .
        ' if (error == 1 && submitter != 1) {' . "\n" . // GV Code Start/End
        '  alert(error_message);' . "\n" .
        '  return false;' . "\n" .
        ' } else {' . "\n" .
        '  return true;' . "\n" .
        ' }' . "\n" .
        '}' . "\n" .
        '//--></script>' . "\n";
   }

   return $js;
  }

  function selection() {
   $selection_array = array();

   if (is_array($this->modules)) {
    reset($this->modules);
    while (list(, $value) = each($this->modules)) {
     $class = substr($value, 0, strrpos($value, '.'));
     if ($GLOBALS[$class]->enabled) {
      $selection = $GLOBALS[$class]->selection();
      if (is_array($selection)) $selection_array[] = $selection;
     }
    }
   }

   return $selection_array;
  }
Da ist auch die validation enthalten und soll die Daten weitergeben wenn ich das richtig verstanden habe.
Aber warum das nun nicht mehr funktioniert ( ich komme ja nicht mehr dazu die Zahlungsweise auszuw?hlen, eas das Script ?berpr?fen sollte ?!? ) weiss ich leider nicht
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #7 (permalink)  
Alt 17.07.2005, 20:43
 
Registriert seit: 08.07.2005
Beiträge: 28
Standard

Habe das Problem ( wahrscheinlich...) gel?st . Die OT-Payment muss noch in zig andere Ordner rein...
Daf?r taucht jetzt ein neuer Fehler auf :angry:

Fatal error: Cannot redeclare class ot_payment in /home/www/web111/html/includes/modules/payment/ot_payment.php on line 19

weiss jemand was das bedeutet ?

Der Code von Zeile 19 lautet :

Code:
class ot_payment {
  var $title, $output;
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #8 (permalink)  
Alt 17.07.2005, 21:40
nom nom ist offline
 
Registriert seit: 19.02.2004
Beiträge: 596
Standard

Jetzt sehe ich die Ursache aller deiner Probleme :laugh:
Die ot_payment Modul geh?rt in den Ordner order_total und nicht in payment.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #9 (permalink)  
Alt 18.07.2005, 09:26
 
Registriert seit: 08.07.2005
Beiträge: 28
Standard

Wenn ich die OT_Pament aber aus dem Ordner Payment entferne Erscheint wieder eine Fehlermeldung...

Warning: payment(): Failed opening '/home/www/web111/html/includes/modules/payment/ot_payment.php' for inclusion (include_path='.:/usr/share/php') in /home/www/web111/html/includes/classes/payment.php on line 71
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #10 (permalink)  
Alt 18.07.2005, 12:15
 
Registriert seit: 08.07.2005
Beiträge: 28
Standard

Und der n?chste Versuch...
Alles gel?scht und wieder hochgeladen...
Nun erscheint wieder :

Fatal error: Call to undefined function: javascript_validation() in /home/www/web111/html/includes/classes/payment.php on line 137


Langsam glaube ich das Contrib will mich ?rgern
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
contrib, rabatt

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



Alle Zeitangaben in WEZ +1. Es ist jetzt 22:41 Uhr.

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

xt:Commerce is a SafeCharge brand