I am getting below error in system.log file.

  main.CRITICAL: Bucket does not exist [] []

My Main issue is in category list page and search result page I have 50 products inside the category and results. All are listed in the page. Even though pager is set to 12.

The pagination is not working correctly.

I hope the problem is because of above error. How this can be resolved.

Can anyone please help me with this?

  • Did you install sample data in your project ? – Saneer Ladani Jan 30 '19 at 12:27
  • @SaneerLadani, no I am not install sample data – jafar pinjar Jan 30 '19 at 12:27
  • refer this github.com/magento/magento2/issues/13823 @jafar – divya sekar Jan 30 '19 at 12:29
  • You have to set the Root category to Anchored -> 'Yes'. If it is set already as 'Yes', you have set it again to 'No' and 'Save' and then again into 'Yes' -> 'Save'. This should resolve your problem @jafar – divya sekar Jan 30 '19 at 12:30
  • @divyasekar,Root category means Default category? I do not have any root category? – jafar pinjar Jan 30 '19 at 12:33

The error comes from a facet field so it's possible that the wrong behaviour is related to this.

Unfortunately I can give you only general tips based on your question but maybe they help you:

  • Try to rebuild the Catalog Search index that might help.
  • A further step would be to deactivate the facet attributes one by one and see if that changes the behaviour.
| improve this answer | |
  • I have two questions as per the answer. 1.Where i need to deactivate facet? what are facet attributes? 2. rebulild Catalog Search means re index? – jafar pinjar Jan 30 '19 at 11:49
  • I did full re index and tried, still facing same issue – jafar pinjar Jan 30 '19 at 11:50
  • 1. each product attribute has an option "use in layer navigation", setting this to "no" will deactivate the facet – HelgeB Jan 30 '19 at 11:52
  • Does it effect with pagination? – jafar pinjar Jan 30 '19 at 11:53
  • I hope by making that setting as No, Pagination doesn't works correctly, because I did and tried.. – jafar pinjar Jan 30 '19 at 11:57

php file at path:


Replace the code line:

throw new StateException(__(‘Bucket does not exist’));

with the code line:(comment it )

//throw new StateException(__(‘Bucket does not exist’));
| improve this answer | |
  • by this we can comment the error , but pagination will work? @divya – jafar pinjar Jan 30 '19 at 12:59
  • pagination is working or not – divya sekar Jan 30 '19 at 13:01
  • no its not working for me, my issue is that only, @divya – jafar pinjar Jan 30 '19 at 13:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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