#2558 closed Bug/Fehler (invalid)
Warning in order Klasse wegen content_type
| Reported by: | noRiddle | Owned by: | somebody |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Admin | Version: | 2.0.7.2 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description
In /includes/classes/order.php gibt es ein Warning wenn man aus "Mein Konto" heraus eine Bestellung dem Warenkorb hinzufügt.
Undefined array key "content_type" in File: PATH/includes/classes/order.php
Die Zeilenangabe habe ich weggelassen, da die Datei durch diverse eurer Modul-Updates vom Original-Paket abweicht.
Das Warning bezieht sich auf diese Zeile:
$this->content_type = $this->info['content_type'];
Gruß,
noRiddle
Attachments (0)
Change History (5)
comment:1 by , 2 years ago
comment:2 by , 2 years ago
Was weiß ich was r14678 ist. Gab es da ein Changeset ? Woher soll ich das sonst haben ?
Im Dev-Shop scheint kein Warning generiert zu werden.
Gruß,
noRiddle
comment:3 by , 2 years ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
comment:4 by , 2 years ago
| Milestone: | modified-shop-2.0.8.0 |
|---|
comment:5 by , 2 years ago
Die Warning kam zustande durch das bereitgestelltes Changeset r14774, welches hier bereits die Erweiterung aus r14677 & r14678 (add content_type for orders) enthält für:
$this->content_type = $this->info['content_type'];
Es handelt sich lediglich um eine Warning und keinen Fatal Error, der die Funktion beeinträchtigt.
Abfangen lässt sich das durch:
if (isset($this->info['content_type'])) {
$this->content_type = $this->info['content_type'];
}

Die von dir genannte Zeile kam doch erst in r14678 hinzu.
Kannst du den Fehler im DEV-Shop noch nachstellen?