2

System: PHP 7.3, MySql 5.7, Magento 2.4

After Upgrade

Exception: Notice: Array to string conversion in Escaper.php on line 261

This effect is only while displaying a Product grid with Image other works correctly. Same Effect in Widget new Product.

What can I do?

2 Answers 2

0

This error is showing variable data is in array type, not a string so according to it you have to change echo to print_ror else if you putting the variable in log file then you have to put thevariable in print_r($var, true);

reference link

also, check this link for Magento 2.4.0 Requirement.

Thank You.

0

Turns out the error is originating from the call to getImage:

getImage($_item, $image)->toHtml() ?>

Further investigation leads to a theme override of vendor/magento/module-catalog/view/frontend/templates/product/image_with_borders.phtml ‎which was heavily modified in 2.4.0. Disabling this override fixes the problem‎.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.