-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Call to a member function shouldDisplayProductCountOnLayer() on null in /vendor/magento/module-layered-navigation/view/frontend/templates/layer/filter.phtml:21 #31024
Comments
Hi @pratikkamani. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. Please, add a comment to assign the issue:
🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
Hi @engcom-Delta. Thank you for working on this issue.
|
Hi @pratikkamani , thank you for your report. I'm not able to reproduce issue on clean magento without custom modules. I tried upgrade from 2.3.6 to 2.4.1 according docs and there was no issue after upgrade Could you provide additional magento configuration you have before upgrade? |
I also have the same problem |
Hi, I also have the same problem when in update my shop from 2.3.5-p2 to 2.4.1 and I try to do a search. [2021-01-03` 16:11:43] main.CRITICAL: Error: Call to a member function shouldDisplayProductCountOnLayer() on null in /var/www/html/vendor/magento/module-layered-navigation/view/frontend/templates/layer/filter.phtml:21 |
@mohanwbsofttech @grassst Are you upgraded according docs? Do you have information about magento configuration that was missed in original issue description? |
@VasylShvorak yes i am doing the update like the docs in your link. |
how can resolve same issue can you plz send code |
Hello, i have the same problem. At the moment to fix it i did: |
Hello, @iux thank you! |
@grassst Looks like issue was caused by your custom theme/extension. |
Hi, Thank you. |
I came across this error as well, when updating Magento to 2.4.2. It's because of the declaration of the template Somewhere in your (xml files) custom theme, you should adjust it like this:
That did the trick for me, and i hope it does for everyone :) |
Hi @engcom-November. Thank you for working on this issue.
|
Hi, |
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
Error: Call to a member function shouldDisplayProductCountOnLayer() on null in /vendor/magento/module-layered-navigation/view/frontend/templates/layer/filter.phtml:21
The text was updated successfully, but these errors were encountered: