GX-Bug #66227
geschlossenBasket broken if GIFT-product is put into it / Warenkorb kaputt wenn Gutschein-Artikel hineingelegt wird
100%
Warenkorb geht nicht mehr kaputt, wenn ein Gutschein-Artikel hineingelegt wird
Beschreibung
Preconditions:
create a gift product (create a product with Product Model GIFT_1234)
have malibu active (?)
- call this product in the frontend
- put this item into your basket and go to the basket
result:
instead of the basket a blank page gets displayed
Log attached below
```2020-03-06 12:23:22 ERROR: Uncaught TypeError: Argument 1 passed to Gambio\Shop\SellingUnit\Unit\ValueObjects\TaxInfo::__construct() must be of the type string, null given, called in /var/www/uw/4.0.0.0beta13_hub/GambioShop/Product/TaxInfo/Listener/OnGetSellingUnitTaxInfoEventListener.php on line 50 and defined in /var/www/uw/4.0.0.0beta13_hub/GambioShop/SellingUnit/Unit/ValueObjects/TaxInfo.php:38
context:
message:
Uncaught TypeError: Argument 1 passed to Gambio\Shop\SellingUnit\Unit\ValueObjects\TaxInfo::construct() must be of the type string, null given, called in /var/www/uw/4.0.0.0beta13_hub/GambioShop/Product/TaxInfo/Listener/OnGetSellingUnitTaxInfoEventListener.php on line 50 and defined in /var/www/uw/4.0.0.0beta13_hub/GambioShop/SellingUnit/Unit/ValueObjects/TaxInfo.php:38
Stack trace:
#0 /var/www/uw/4.0.0.0beta13_hub/GambioShop/Product/TaxInfo/Listener/OnGetSellingUnitTaxInfoEventListener.php(50): Gambio\Shop\SellingUnit\Unit\ValueObjects\TaxInfo->construct(NULL, 0)
#1 /var/www/uw/4.0.0.0beta13_hub/GambioCore/Event/EventDispatcher.php(78): Gambio\Shop\Product\TaxInfo\Listener\OnGetSellingUnitTaxInfoEventListener->__invoke(Object(Gambio\Shop\SellingUnit\Database\Unit\Events\OnGetSellingUnitTaxInfoEvent))
#2 /var/www/uw/4.0.0.0beta13_hub/GambioShop/SellingUnit/Unit/SellingUnit.php(313): Gambio\Core\Event\EventDispatcher->dispatch(Object(Gambio\Shop\SellingUnit\Database\Unit\Events\OnGetSellingUnitTaxInfoEvent
code:
1
file:
/var/www/uw/4.0.0.0beta13_hub/GambioShop/SellingUnit/Unit/ValueObjects/TaxInfo.php
line:
38
context:
obCleanCache:
extra:
request:
method:
GET
uri:
/4.0.0.0beta13_hub/shopping_cart.php
software:
Apache/2.4.29 (Ubuntu)
address:
192.168.101.24
userAgent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0
time:
826
remoteAddress:
192.168.100.195
session:
tpl:
Malibu
language:
german
languages_id:
2
language_charset:
utf-8
language_code:
de
currency:
EUR
customers_status:
...
customer_id:
103
payment:
shipping:
cartID:
sendto:
3
billto:
Dateien