Aktionen
GX-Bug #67987
geschlossenInvalid product links lead to an error message if no error page has been activated | Ungültige Produktlinks führen zu einer Fehlermeldung, sofern keine Fehlerseite aktiviert wurde
Status:
Erledigt
Priorität:
Normal
Zugewiesen an:
Ahmed Hamouda
Kategorie:
Frontend
Zielversion:
% erledigt:
0%
Geschätzter Aufwand:
Steps to reproduce:
Betroffene Versionen:
4.3.1.0
Release Notes Langtext:
Ungültige Produktlinks können keine Fehlermeldung mehr verursachen
Beschreibung
An invalid product url can cause an error message like this:
Uncaught Exception: Product ID can't be 0 in /var/www/html/feature/src/GambioShop/Product/ValueObjects/ProductId.php:37 Stack trace: #0 /var/www/html/feature/src/GambioShop/Product/SellingUnit/Database/Listener/OnSellingUnitIdCreateListener.php(29): Gambio\Shop\Product\ValueObjects\ProductId->__construct() #1 /var/www/html/feature/src/GambioCore/Event/EventDispatcher.php(62): Gambio\Shop\Product\SellingUnit\Database\Listener\OnSellingUnitIdCreateListener->__invoke() #2 /var/www/html/feature/src/GambioShop/SellingUnit/Unit/Factories/SellingUnitIdFactory.php(88): Gambio\Core\Event\EventDispatcher->dispatch() #3 /var/www/html/feature/src/product_info.php(105): Gambio\Shop\SellingUnit\Unit\Factories\SellingUnitIdFactory->createFromCustom() #4 {main} thrown
Steps to reproduce:
- deactivate the error page for missing contents (Gambio Admin > Content > Own Error Pages)
- activate seo boost urls for products (Gambio Admin > Settings -> search for "seo" -> Activate search engine friendly URLs for the article page)
- open an invalid product link like http://your-shop-url/invalid.html
Expected:
A shop page is shown saying the product was not found
Actual:
An error message is displayed.
Dateien
Zugehörige Tickets
Aktionen