v1.1.8: How to fix incompatible issue with M2.4.1?

Created by Jane D, Modified on Fri, 22 Jan, 2021 at 10:55 AM by Jane D

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!

Attachments (1)

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article