QUESTION:
After upgrading my site to Magento 2.4.0, I got the exception error:
1 exception(s): Exception #0 (Exception): Notice: Array to string conversion in /xxx/xxxx/xxxx/app/code/Bss/InfiniteScroll/view/frontend/templates/product/image_with_borders.phtml on line 26 Exception #0 (Exception): Notice: Array to string conversion in /xxx/xxx/xxx/app/code/Bss/InfiniteScroll/view/frontend/templates/product/image_with_borders.phtml on line 26 <pre>#1 include('/date/site/bike3...') called at [vendor/magento/framework/View/TemplateEngine/Php.php:71] #2 Magento\Framework\View\TemplateEngine\Php->render() called at [vendor/magento/framework/Interception/Interceptor.php:58] #3 Magento\Framework\View\TemplateEngine\Php\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138] #4 Magento\Framework\View\TemplateEngine\Php\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153] #5 Magento\Framework\View\TemplateEngine\Php\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/View/TemplateEngine/Php/Interceptor.php:26] #6 Magento\Framework\View\TemplateEngine\Php\Interceptor->render() called at [vendor/magento/framework/View/Element/Template.php:273] #7 ...............Please guide how to fix?
ANSWER:
To resolve this error, please download the attached file app/code/Bss/InfiniteScroll/view/frontend/templates/product/image_with_borders.phtml and overwrite the current file on your site.
If you have any other question or concern, please feel free to contact us. We'd be happy to support!
Reach us now!!
BSS Commerce is a full-service ecommerce agency with 14+ years of experience, supporting 75,000+ customers worldwide. As an Adobe Commerce Solution Bronze Partner and Select Magento Extensions Builder, we deliver trusted end-to-end solutions.
Our core strength is Magento, with 150+ extensions designed to enhance store performance and drive growth. With deep expertise from years of working on Magento websites, we deliver scalable, high-impact solutions backed by strong client trust.
Discover our extensions: https://bsscommerce.com/magento-2-extensions.html
Our Magento B2B Extension by BSS Commerce is a flagship, widely used global solution, providing an all-in-one system for pricing, account management, and efficient B2B workflows.
Please don't hesitate to contact us if you need any further support.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article