GX-Bug #67019
geschlossenWhen articles are deleted, invalid URLs must redirect to the home page or a 404 page.
0%
URLs von gelöschten Artikeln werden wieder auf die Startseite umgeleitet
Beschreibung
Wenn man Artikel löscht und alte URLs im Shop aufruft, dann wird ein Fehler ausgegeben, statt einer sauberen 404 Seite.
`ERROR: Uncaught Exception: Product ID can't be 0 in /var/www/vhosts/trendanglais.trude.hostkraft.de/httpdocs/gx/GambioShop/Product/ValueObjects/ProductId.php:36
context:
message:
Uncaught Exception: Product ID can't be 0 in /var/www/vhosts/trendanglais.trude.hostkraft.de/httpdocs/gx/GambioShop/Product/ValueObjects/ProductId.php:36
Stack trace:
#0 /var/www/vhosts/trendanglais.trude.hostkraft.de/httpdocs/gx/GambioShop/Product/SellingUnit/Database/Listener/OnSellingUnitIdCreateListener.php(31): Gambio\Shop\Product\ValueObjects\ProductId->construct(0)
#1 /var/www/vhosts/trendanglais.trude.hostkraft.de/httpdocs/gx/GambioCore/Event/EventDispatcher.php(78): Gambio\Shop\Product\SellingUnit\Database\Listener\OnSellingUnitIdCreateListener->invoke(Object(Gambio\Shop\SellingUnit\Unit\Events\OnSellingUnitIdCreateEvent))
#2 /var/www/vhosts/trendanglais.trude.hostkraft.de/httpdocs/gx/GambioShop/SellingUnit/Unit/Factories/SellingUnitIdFactory.php(50): Gambio\Core\Event\EventDispatcher->dispatch(Object(Gambio\Shop\SellingUnit\Unit\Events\OnSellingUnitIdCreateEvent))
#3 /var/www/vhosts/trendanglais.trude.hostkraft.de/httpdocs/gx/product_info.php(77): Gambio\Shop\SellingUnit\Unit\Factories\SellingUn
code:
1
file:
/var/www/vhosts/trendanglais.trude.hostkraft.de/httpdocs/gx/GambioShop/Product/ValueObjects/ProductId.php
line:
36
context:
obCleanCache:
`
Checkliste 0/0
Von Jonatas Fischer vor fast 5 Jahren aktualisiert
- Status wurde von In Bearbeitung zu Testing geändert
- Zugewiesen an wurde von Jonatas Fischer zu Core-Entwickler geändert
- Zielversion wurde von 133 zu 4.1.2.0 beta1 geändert
Fixed by the commit 6e9a49d05287dd5f2d8c11910246e4c6f4b9a98e