Projekt

Allgemein

Profil

GX-Bug #67969

Von Moritz Bunjes vor mehr als 3 Jahren aktualisiert

An invalid product url can (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: 
 1. deactivate the error page for missing contents (Gambio Admin > Content > Own Error Pages)  
 2. activate seo boost urls for products (Gambio Admin > Settings -> search for "seo" -> Activate search engine friendly URLs for the article page) 
 3. 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. 

Zurück