The laminas/laminas-escaper 2.7.1 causes error on ÃÛ¶¹ÊÓÆµ Commerce frontend and Admin pages
Learn how to resolve an error caused by laminas/laminas-escaper 2.7.1 affecting ÃÛ¶¹ÊÓÆµ Commerce frontend and Admin pages.
Description description
Affected Environment
ÃÛ¶¹ÊÓÆµ Commerce on our Cloud Architecture 2.3.5+
ÃÛ¶¹ÊÓÆµ Commerce 2.3.5+
Issue/Symptoms
After the update to laminas/laminas-escaper:2.7.1 an error message is displayed on the page.
Steps to reproduce:
Update laminas/laminas-escaper to 2.7.1.
Expected result:
No error.
Actual result:
After update to laminas/laminas-escaper:2.7.1 an error message is displayed on a product edit (or product management) page: TypeError: rawurlencode() expects parameter 1 to be string, int given in /var/www/magento/vendor/laminas/laminas-escaper/src/Escaper.php:246
This error occurs on the frontend and Admin pages causing the content of the page to be distorted.
Cause
laminas/laminas-escaper 2.7.1 started using strict type validation for the Escaper class.
Resolution resolution
Run composer require laminas/laminas-escaper:2.7.0
in the root directory of each project.
Related reading
laminas Documentation: