QUESTION:


I got the error thrown after upgrading the site to Magneto 2.4.1:


In ErrorHandler.php line 61:  Warning: Declaration of Bss\LayerNavigation\Model\ResourceModel\Price::_renderRangeLabel($fromPrice, $toPrice) should be compatible with Magento\CatalogSearch\Model\Layer\Filter\Price::_renderRangeLabel($fromPrice, $toPrice, $isLast = false) in/xxxx/home/xxxxxx/html/app/code/Bss/LayerNavigation/Model/ResourceModel/Price.php on line 179


Please guide me how to fix this error!


ANSWER:


To resolve this issue, please edit files as below:  

+ app/code/Bss/LayerNavigation/Model/ResourceModel/Price.php 



Or download the attached file below 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!