Skip to content

Deprecated Functionality - PHP8 issues #40274

@Nuranto

Description

@Nuranto

Preconditions and environment

  • Magento version 2.4.8-p3

Steps to reproduce

  1. Create a product without name
  2. go to listing page, with thumbnail

Expected result

No errors

Actual result

[2025-11-07T07:51:49.962736+00:00] main.CRITICAL: Exception: Deprecated Functionality: html_entity_decode(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/vendor/magento/module-catalog/Ui/Component/Listing/Columns/Thumbnail.php on line 91 in /var/www/html/vendor/magento/framework/App/ErrorHandler.php:61
Stack trace:
#0 [internal function]: Magento\Framework\App\ErrorHandler->handler(8192, 'html_entity_dec...', '/var/www/html/v...', 91)
#1 /var/www/html/vendor/magento/module-catalog/Ui/Component/Listing/Columns/Thumbnail.php(91): html_entity_decode(NULL, 3, 'UTF-8')
#2 /var/www/html/vendor/magento/module-catalog/Ui/Component/Listing/Columns/Thumbnail.php(68): Magento\Catalog\Ui\Component\Listing\Columns\Thumbnail->getAlt(Array)
#3 /var/www/html/vendor/magento/framework/View/Element/UiComponent/Context.php(403): Magento\Catalog\Ui\Component\Listing\Columns\Thumbnail->prepareDataSource(Array)

Additional information

No response

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

Labels

Issue: needs updateAdditional information is require, waiting for responseReported on 2.4.8-p3Indicates original Magento version for the Issue report.

Type

No type

Projects

Status

Needs Update

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions