Use of undefined constant MODULE_PAYMENT_KLARNA2...

Thema wurde von Tom27, 28. Oktober 2018 erstellt.

  1. Tom27

    Tom27 Erfahrener Benutzer

    Registriert seit:
    26. Juli 2012
    Beiträge:
    125
    Danke erhalten:
    14
    Danke vergeben:
    52
    Seit Einspielen der Version 3.11.x habe ich in den Zahlungsmodulen (Zahlungsweisen -> Sonstige) eine ganze Latte von Hinweismeldungen. Das ist nicht sonderlich gut - zumal ich KLARNA weder verwende, noch aktiviert habe:

    WARNING(2): "Use of undefined constant MODULE_PAYMENT_KLARNA2_INVOICE_SORT_ORDER - assumed 'MODULE_PAYMENT_KLARNA2_INVOICE_SORT_ORDER' (this will throw an Error in a future version of PHP)"
    WARNING(2): "Use of undefined constant MODULE_PAYMENT_KLARNA2_INVOICE_STATUS - assumed 'MODULE_PAYMENT_KLARNA2_INVOICE_STATUS' (this will throw an Error in a future version of PHP)"
    WARNING(2): "Use of undefined constant MODULE_PAYMENT_KLARNA2_INVOICE_TMPSTATUS - assumed 'MODULE_PAYMENT_KLARNA2_INVOICE_TMPSTATUS' (this will throw an Error in a future version of PHP)"
    WARNING(2): "Use of undefined constant MODULE_PAYMENT_KLARNA2_INVOICE_ORDERSTATUS - assumed 'MODULE_PAYMENT_KLARNA2_INVOICE_ORDERSTATUS' (this will throw an Error in a future version of PHP)"
    WARNING(2): "Use of undefined constant MODULE_PAYMENT_KLARNA2_PARTPAY_SORT_ORDER - assumed 'MODULE_PAYMENT_KLARNA2_PARTPAY_SORT_ORDER' (this will throw an Error in a future version of PHP)"
    WARNING(2): "Use of undefined constant MODULE_PAYMENT_KLARNA2_PARTPAY_STATUS - assumed 'MODULE_PAYMENT_KLARNA2_PARTPAY_STATUS' (this will throw an Error in a future version of PHP)"
    WARNING(2): "Use of undefined constant MODULE_PAYMENT_KLARNA2_PARTPAY_TMPSTATUS - assumed 'MODULE_PAYMENT_KLARNA2_PARTPAY_TMPSTATUS' (this will throw an Error in a future version of PHP)"
    WARNING(2): "Use of undefined constant MODULE_PAYMENT_KLARNA2_PARTPAY_ORDERSTATUS - assumed 'MODULE_PAYMENT_KLARNA2_PARTPAY_ORDERSTATUS' (this will throw an Error in a future version of PHP)"
    WARNING(2): "Use of undefined constant MODULE_PAYMENT_KLARNA2_INVOICE_SORT_ORDER - assumed 'MODULE_PAYMENT_KLARNA2_INVOICE_SORT_ORDER' (this will throw an Error in a future version of PHP)"
    WARNING(2): "Use of undefined constant MODULE_PAYMENT_KLARNA2_INVOICE_STATUS - assumed 'MODULE_PAYMENT_KLARNA2_INVOICE_STATUS' (this will throw an Error in a future version of PHP)"
    WARNING(2): "Use of undefined constant MODULE_PAYMENT_KLARNA2_INVOICE_TMPSTATUS - assumed 'MODULE_PAYMENT_KLARNA2_INVOICE_TMPSTATUS' (this will throw an Error in a future version of PHP)"
    WARNING(2): "Use of undefined constant MODULE_PAYMENT_KLARNA2_INVOICE_ORDERSTATUS - assumed 'MODULE_PAYMENT_KLARNA2_INVOICE_ORDERSTATUS' (this will throw an Error in a future version of PHP)"
    WARNING(2): "Use of undefined constant MODULE_PAYMENT_KLARNA2_INVOICE_SORT_ORDER - assumed 'MODULE_PAYMENT_KLARNA2_INVOICE_SORT_ORDER' (this will throw an Error in a future version of PHP)"
    WARNING(2): "Use of undefined constant MODULE_PAYMENT_KLARNA2_INVOICE_STATUS - assumed 'MODULE_PAYMENT_KLARNA2_INVOICE_STATUS' (this will throw an Error in a future version of PHP)"
    WARNING(2): "Use of undefined constant MODULE_PAYMENT_KLARNA2_INVOICE_TMPSTATUS - assumed 'MODULE_PAYMENT_KLARNA2_INVOICE_TMPSTATUS' (this will throw an Error in a future version of PHP)"
    WARNING(2): "Use of undefined constant MODULE_PAYMENT_KLARNA2_INVOICE_ORDERSTATUS - assumed 'MODULE_PAYMENT_KLARNA2_INVOICE_ORDERSTATUS' (this will throw an Error in a future version of PHP)"
    WARNING(2): "Use of undefined constant MODULE_PAYMENT_KLARNA2_PARTPAY_SORT_ORDER - assumed 'MODULE_PAYMENT_KLARNA2_PARTPAY_SORT_ORDER' (this will throw an Error in a future version of PHP)"
    WARNING(2): "Use of undefined constant MODULE_PAYMENT_KLARNA2_PARTPAY_STATUS - assumed 'MODULE_PAYMENT_KLARNA2_PARTPAY_STATUS' (this will throw an Error in a future version of PHP)"
    WARNING(2): "Use of undefined constant MODULE_PAYMENT_KLARNA2_PARTPAY_TMPSTATUS - assumed 'MODULE_PAYMENT_KLARNA2_PARTPAY_TMPSTATUS' (this will throw an Error in a future version of PHP)"
    WARNING(2): "Use of undefined constant MODULE_PAYMENT_KLARNA2_PARTPAY_ORDERSTATUS - assumed 'MODULE_PAYMENT_KLARNA2_PARTPAY_ORDERSTATUS' (this will throw an Error in a future version of PHP)"
    WARNING(2): "Use of undefined constant MODULE_PAYMENT_KLARNA2_INVOICE_SORT_ORDER - assumed 'MODULE_PAYMENT_KLARNA2_INVOICE_SORT_ORDER' (this will throw an Error in a future version of PHP)"
    WARNING(2): "Use of undefined constant MODULE_PAYMENT_KLARNA2_INVOICE_STATUS - assumed 'MODULE_PAYMENT_KLARNA2_INVOICE_STATUS' (this will throw an Error in a future version of PHP)"
    WARNING(2): "Use of undefined constant MODULE_PAYMENT_KLARNA2_INVOICE_TMPSTATUS - assumed 'MODULE_PAYMENT_KLARNA2_INVOICE_TMPSTATUS' (this will throw an Error in a future version of PHP)"
    WARNING(2): "Use of undefined constant MODULE_PAYMENT_KLARNA2_INVOICE_ORDERSTATUS - assumed 'MODULE_PAYMENT_KLARNA2_INVOICE_ORDERSTATUS' (this will throw an Error in a future version of PHP)"
    WARNING(2): "Use of undefined constant MODULE_PAYMENT_KLARNA2_PARTPAY_SORT_ORDER - assumed 'MODULE_PAYMENT_KLARNA2_PARTPAY_SORT_ORDER' (this will throw an Error in a future version of PHP)"
    WARNING(2): "Use of undefined constant MODULE_PAYMENT_KLARNA2_PARTPAY_STATUS - assumed 'MODULE_PAYMENT_KLARNA2_PARTPAY_STATUS' (this will throw an Error in a future version of PHP)"
    WARNING(2): "Use of undefined constant MODULE_PAYMENT_KLARNA2_PARTPAY_TMPSTATUS - assumed 'MODULE_PAYMENT_KLARNA2_PARTPAY_TMPSTATUS' (this will throw an Error in a future version of PHP)"
    WARNING(2): "Use of undefined constant MODULE_PAYMENT_KLARNA2_PARTPAY_ORDERSTATUS - assumed 'MODULE_PAYMENT_KLARNA2_PARTPAY_ORDERSTATUS' (this will throw an Error in a future version of PHP)"
    WARNING(2): "Use of undefined constant MODULE_PAYMENT_KLARNA2_INVOICE_SORT_ORDER - assumed 'MODULE_PAYMENT_KLARNA2_INVOICE_SORT_ORDER' (this will throw an Error in a future version of PHP)"
    WARNING(2): "Use of undefined constant MODULE_PAYMENT_KLARNA2_INVOICE_STATUS - assumed 'MODULE_PAYMENT_KLARNA2_INVOICE_STATUS' (this will throw an Error in a future version of PHP)"
    WARNING(2): "Use of undefined constant MODULE_PAYMENT_KLARNA2_INVOICE_TMPSTATUS - assumed 'MODULE_PAYMENT_KLARNA2_INVOICE_TMPSTATUS' (this will throw an Error in a future version of PHP)"
    WARNING(2): "Use of undefined constant MODULE_PAYMENT_KLARNA2_INVOICE_ORDERSTATUS - assumed 'MODULE_PAYMENT_KLARNA2_INVOICE_ORDERSTATUS' (this will throw an Error in a future version of PHP)"
    WARNING(2): "Use of undefined constant MODULE_PAYMENT_KLARNA2_PARTPAY_SORT_ORDER - assumed 'MODULE_PAYMENT_KLARNA2_PARTPAY_SORT_ORDER' (this will throw an Error in a future version of PHP)"
    WARNING(2): "Use of undefined constant MODULE_PAYMENT_KLARNA2_PARTPAY_STATUS - assumed 'MODULE_PAYMENT_KLARNA2_PARTPAY_STATUS' (this will throw an Error in a future version of PHP)"
    WARNING(2): "Use of undefined constant MODULE_PAYMENT_KLARNA2_PARTPAY_TMPSTATUS - assumed 'MODULE_PAYMENT_KLARNA2_PARTPAY_TMPSTATUS' (this will throw an Error in a future version of PHP)"
    WARNING(2): "Use of undefined constant MODULE_PAYMENT_KLARNA2_PARTPAY_ORDERSTATUS - assumed 'MODULE_PAYMENT_KLARNA2_PARTPAY_ORDERSTATUS' (this will throw an Error in a future version of PHP)"


    Der Server läuft auf PHP 7.2 aber auch 7.1 ändert nichts daran. Wie lässt sich das bitte lösen?
    Vielen Dank!

    Grüsse
    Tom
     
  2. Wilken (Gambio)

    Wilken (Gambio) Erfahrener Benutzer

    Registriert seit:
    7. November 2012
    Beiträge:
    18.737
    Danke erhalten:
    7.309
    Danke vergeben:
    2.208
    Das sind alte Moduldateien mit einem "neues PHP" Problem, die muss man löschen. Wir hatten die bei Updates noch gelassen um Leute die das noch benutzen nicht unnötig zu ärgern, in Vollversionen gibts die bereits nicht mehr. Folgende Ordner umbenennnen und aus der Vollversion neu hochladen:

    includes/modules/payment
    includes/modues/order_total