Projekt

Allgemein

Profil

Aktionen

GX-Bug #67019

geschlossen

When articles are deleted, invalid URLs must redirect to the home page or a 404 page.

Von Till Tepelmann vor fast 4 Jahren hinzugefügt. Vor fast 3 Jahren aktualisiert.

Status:
Erledigt
Priorität:
Normal
Zugewiesen an:
Marvin Muxfeld
Kategorie:
Core
Zielversion:
% erledigt:

0%

Geschätzter Aufwand:
Steps to reproduce:
Betroffene Versionen:
Unbestimmt
Release Notes Langtext:

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:

`


Aktionen #1

Von Jonatas Fischer vor fast 4 Jahren aktualisiert

  • Status wurde von Gemeldet zu In Bearbeitung geändert
Aktionen #2

Von Jonatas Fischer vor fast 4 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

Aktionen #3

Von Moritz Bunjes vor fast 4 Jahren aktualisiert

  • Zielversion wurde von 4.1.2.0 beta1 zu 4.1.1.1 geändert
Aktionen #4

Von Marvin Muxfeld vor fast 4 Jahren aktualisiert

  • Status wurde von Testing zu Erledigt geändert
  • Zugewiesen an wurde von Core-Entwickler zu Marvin Muxfeld geändert
Aktionen #5

Von Daniel Wu vor fast 4 Jahren aktualisiert

  • Tags wurde auf 4.1.1.1 gesetzt
Aktionen #6

Von Hilke Müller vor fast 3 Jahren aktualisiert

  • Release Notes Langtext aktualisiert (Vergleich)
Aktionen #7

Von Moritz Bunjes vor fast 3 Jahren aktualisiert

  • Tags 4.1.1.1 wurde gelöscht
Aktionen

Auch abrufbar als: Atom PDF