Projekt

Allgemein

Profil

Aktionen

GX-Bug #67023

geschlossen

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

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

Status:
Erledigt
Priorität:
Dringend
Zugewiesen an:
Julian Heckmann
Kategorie:
Checkout
Zielversion:
% erledigt:

0%

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

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
  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

Dateien

php-error-handler.log (1).txt (19,7 KB) php-error-handler.log (1).txt Ulrich Wenk, 02.06.2020 13:15

Aktionen

Auch abrufbar als: Atom PDF