Skip to content

Adding product list to category causes undefined array key error #40606

@joelvai

Description

@joelvai

Preconditions and environment

  • Magento version 2.4.8-p4

Previous issue (closed) #40547
Related PR (closed) #40550

The current "workaround" is to not include different products in category page product sliders or not to have them in the first place.

Steps to reproduce

  1. Create new category
  2. Set Display Settings > Display Mode > Static block and products
  3. Add single product to the category e.g. WSH12
  4. Add product slider / grid to the category description containing any other product e.g. WSH11 (or can even include WSH12 as well)
  5. Refresh index + cache so content shows

Expected result

Expected the product widget to render assigned products. In the image I only included the 1, but should obviously show more in case assigned.

Image

Actual result

The whole description block fails to render.

Image

exception.log: error: main.CRITICAL: Exception: Warning: Undefined array key 2024 in ...vendor/magento/module-configurable-product/Pricing/Render/FinalPriceBox.php on line 74

Additional information

As long as the product widget has same products as the current category page has it works, but if there is any product in the widget which doesn't render to current page it crashes.

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

Labels

Issue: needs updateAdditional information is require, waiting for response

Type

No type

Projects

Status

Needs Update

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions