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!
Get to know about us
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. Here are our most powerful extensions might help you drive your sales and get the best user experience:
- BSS Commerce’s Magento 2 B2B Extension delivers a complete solution for scalable and efficient wholesale management.
- BSS Commerce’s Magento 2 SEO Extension empowers your store to rank higher and grow organic traffic faster.
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