Projekt

Allgemein

Profil

GX-Bug #67023

Von Ulrich Wenk vor fast 4 Jahren aktualisiert

Beim Löschen von alten Artikeln aus dem Warenkorb mit nicht mehr gültigen Attributen, tritt ein Fehler auf 

 -------------- 

 When deleting old articles from the shopping cart with attributes that are no longer valid, an error occurs 

 `ErrorException: Warning: Invalid argument supplied for foreach() 
 #8 /GXMainComponents/View/ThemeContentViews/shopping_cart/OrderDetailsCartThemeContentView.inc.php(553): OrderDetailsCartThemeContentView::_deleteEmptyAttributes 
 #7 /GXMainComponents/View/ThemeContentViews/shopping_cart/OrderDetailsCartThemeContentView.inc.php(892): OrderDetailsCartThemeContentView::_getProductAttributes 
 #6 /GXMainComponents/View/ThemeContentViews/shopping_cart/OrderDetailsCartThemeContentView.inc.php(209): OrderDetailsCartThemeContentView::prepare_data 
 #5 /GXMainComponents/View/ThemeContentViews/core/ThemeContentView.inc.php(147): ThemeContentView::get_html 
 #4 /GXMainComponents/View/ThemeContentViews/shopping_cart/ShoppingCartThemeContentView.inc.php(556): ShoppingCartThemeContentView::_setOrderDetailsCartContentView 
 #3 /GXMainComponents/View/ThemeContentViews/shopping_cart/ShoppingCartThemeContentView.inc.php(154): ShoppingCartThemeContentView::prepare_data 
 #2 /GXModules/Gambio/Hub/Shop/Overloads/ShoppingCartThemeContentView/GambioHubShoppingCartThemeContentView.inc.php(17): GambioHubShoppingCartThemeContentView::prepare_data 
 #1 /GXMainComponents/View/ThemeContentViews/core/ThemeContentView.inc.php(147): ThemeContentView::get_html 
 #0 /shopping_cart.php(46): null` 


 ______________ 
 **EDIT** 02.06.2020 

 Preconditions: 

 * go to Modules > Modules-Center, install Product Options 
 * go to Catalag > Product Options, create a product option with option values 
 * go to Catalog > Categories/Products, add the option values to a product 

 1. put this product into your basket 
 2. open this product in the backend, de-assign the product option, save 
 3. refresh the basket in the frontend 

 result: 

 * the product got deleted from the basket (which is ok) AND an error is displayed in the log (Toolbox > Log Files) 
 * logs are attached

Zurück