Projekt

Allgemein

Profil

GX-Bug #68565

Von Marco Bruchmann vor etwa 3 Jahren aktualisiert

Nach einem Update auf Version 4.4.0.2 kann es beim Anfordern des Labels zu einer Exception kommen: 

 ``` 
 Fatal error: Uncaught TypeError: Argument 1 passed to GeschaeftskundenversandShipment::setLabelFormat() must be of the type string, null given 
 ``` 

 Dies passiert nur, wenn die Konfiguration des Moduls seit Längerem nicht gespeichert wurde, insbesondere wenn das zuletzt in einer Version getan wurde, die die Labelformatkonfiguration noch nicht unterstützte. 


 Schritte zum Reproduzieren: 

 * DHL-GKV-Modul installieren, konfigurieren 
 * Fehlen der DB-Einträge künstlich herstellen: ```DELETE FROM `gx_configurations` \`gx_configurations\` WHERE `key` \`key\` like 'modules/shipping/geschaeftskundenversand/label_format%'``` 
 * Label anfordern 

 Erwartetes Ergebnis: 
 Label wird erzeugt 

 Tatsächliches Ergebnis: 
 Exception wird geworfen (siehe oben) 

 ---- 

 After an update to version 4.4.0.2, an exception may occur when requesting the label: 

 ``` 
 Fatal error: Uncaught TypeError: Argument 1 passed to GeschaeftskundenversandShipment::setLabelFormat() must be of the type string, null given 
 ``` 

 This only happens if the module's configuration has not been saved for a while, especially if it was last done in a version that did not yet support the label format configuration. 


 Steps to reproduce: 

 * Install DHL-GKV module, configure. 
 * Artificially create missing DB entries: ```DELETE FROM `gx_configurations` \`gx_configurations\` WHERE `key` \`key\` like 'modules/shipping/business-customer-shipping/label_format%'``` 
 * Request label 

 Expected result: 
 Label is generated 

 Actual result: 
 Exception is thrown (see above) 

Zurück