I am using magento 2.3.4 ver, i am getting following error if i try to apply filter,

enter image description here


Exception #0 (Exception): Notice: Undefined offset: -298 in /var/www/html/test/vendor/magento/framework/Search/Dynamic/Algorithm.php on line 302

How to solve this issue? Is it a configuration error?


2 Answers 2


This issue has been around on and off across magneto versions. if you run the below patch your issue should be resolved


if you need any information on how to run patches in Magento 2 please refer to



Almost certain that your theme rewrites some layered functions and should be missing some function parameters.

Probably the modules themes are outdated or not adjusted to your current magento version.

Try to update your theme package.

  • I just purchased the theme from themeforest.net/item/…
    – zus
    Commented Sep 5, 2020 at 11:37
  • What should i ask them?
    – zus
    Commented Sep 5, 2020 at 11:38
  • First you must check if your theme up-to-date. If not, create a dev environment and test upgrading. If you don't want to do that, you must start tracking the function doing per example a grep via ssh and checking the routes of the function.
    – MgtWizards
    Commented Sep 5, 2020 at 18:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.