#2170 closed Bug/Fehler (fixed)
System-Modul tax_eel Modul-Key fehlt
| Reported by: | noRiddle | Owned by: | somebody |
|---|---|---|---|
| Priority: | hoch | Milestone: | modified-shop-2.0.7.0 |
| Component: | Admin | Version: | 2.0.6.0 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description
[error] [modified] [pid:10927] ERROR found for URL: /admin/module_export.php?set=system&module=tax_eel {} {}
[error] [modified] [pid:10927] Undefined constant "_TITLE" in File: /PATH/admin/module_export.php on Line: 202 {} {}
/admin/includes/modules/system/tax_eel.php
Die Methode keys() des Moduls gibt ein leeres Array zurück, außer bei ->remove, dort jedoch nur den STATUS.
Gruß,
noRiddle
Attachments (2)
Change History (7)
comment:1 by , 4 years ago
comment:2 by , 4 years ago
Ich habe doch den ERROR im Log zitiert.
Das sagt doch alles wenn man sich den Code an der Stelle mal anschaut:
"Undefined constant "_TITLE" in File: /PATH/admin/module_export.php on Line: 202"
Die Zeile dann in Bezug auf wo der geforderte Wert herkommt:
$module_keys = method_exists($module,'keys') ? $module->keys() : array();
Wenn die Methode keys ein leeres Array zurückgibt oder zurückgeben kann dann muß man eben in Zeile 202 aus dem
'title' => constant(strtoupper($key_value['configuration_key'] .'_TITLE')),
das machen
'title' => defined(strtoupper($key_value['configuration_key'] .'_TITLE')) ? constant(strtoupper($key_value['configuration_key'] .'_TITLE')) : '',
und darunter analog bei 'description'.
Oder man muß abfragen ob $key_value['configuration_key'] gesetzt und nicht leer ist, was einfacher wäre.
Gruß,
noRiddle
comment:3 by , 4 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Das wurde bereits in r13505 korrigiert.
Ich hänge dir das Changeset zum Test mal mit an.
by , 4 years ago
| Attachment: | changeset_13505.zip added |
|---|
comment:4 by , 4 years ago
by , 4 years ago
| Attachment: | changeset_13574.zip added |
|---|

das Modul hat keinerlei Status oder sonstiges. Es werden darüber nur Steuersätze angelegt und beim Deinstallieren werden diese wieder gelöscht.
Wofür wäre der Status wichtig?