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!