GX-Bug #67023
geschlossenWhen deleting old articles from the shopping cart with attributes that are no longer valid, an error occurs
0%
Löschen von Artikeln mit invaliden Attributen wirft keine Fehler mehr
Beschreibung
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
- put this product into your basket
- open this product in the backend, de-assign the product option, save
- 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
Dateien