GX-Bug #63106
geschlossenFatal Error while placing an order manually in the backend (imported product with quantitiy unit) / Fehlermeldung beim manuellen Erstellen einer Bestellung im Backend (importierter Artikel mit Mengeneinheit)
100%
Per CSV-Import werden jetzt Mengeneinheiten ignoriert, die nicht existieren
Beschreibung
Preconditions:
- have an export ready from a category with a product with a quantity unit from another shop (which has quantity units configured)
- your testing shop mustn't have quantity units
- import your product into your testing shop
- go to Customers > new order
- place a new order manually (dropdown)
- on the order-site go to edit (in the products box)
- type in a search term (your imported product's name) --> the product appears
- add this product to the order
result: fatal error after pressing 'add'
thoughts: maybe this flaw has something to do with this issue: #62869. If so, please feel free to link this ticket.
Apart from that, the product seems to function just fine in the shop, there is no hint of the product got imported with an invisible quantitiy unit
FATAL ERROR(1): "Uncaught InvalidArgumentException: StringType: Invalid argument value given (expected string got NULL): in /var/www/uw/3.13.2.0_beta1/GXEngine/Shared/Types/StringType.inc.php:42
Stack trace:
#0 /var/www/uw/3.13.2.0_beta1/admin/orders_edit.php(526): StringType->__construct(NULL)
#1 {main}
thrown"
Information:
<br />
<b>Fatal error</b>: Uncaught InvalidArgumentException: StringType: Invalid argument value given (expected string got NULL): in /var/www/uw/3.13.2.0_beta1/GXEngine/Shared/Types/StringType.inc.php:42
Stack trace:
#0 /var/www/uw/3.13.2.0_beta1/admin/orders_edit.php(526): StringType->__construct(NULL)
#1 {main}
thrown in <b>/var/www/uw/3.13.2.0_beta1/GXEngine/Shared/Types/StringType.inc.php</b> on line <b>42</b><br />