我正在使用Magento 2和Porto主题。我的问题是分层导航。
当我在商店中搜索任何内容时,结果中会显示通过Store > Attribute > Product
创建的自定义属性过滤器。
当结果显示时,我单击属性以筛选更多的ajax负载,但没有任何反应。 这些是我可以在控制台中看到的错误。
Fatal error: Uncaught Error: Call to a member function toHtml() on boolean in /app/code/Mageplaza/LayeredNavigation/Controller/Search/Result/Index.php:132
堆栈跟踪:
#0 /public_html/generated/code/Mageplaza/LayeredNavigation/Controller/Search/Result/Index/Interceptor.php(24): Mageplaza\LayeredNavigation\Controller\Search\Result\Index->execute()
#1 /public_html/vendor/magento/framework/App/Action/Action.php(107): Mageplaza\LayeredNavigation\Controller\Search\Result\Index\Interceptor->execute()
#2 /public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))
#3 /public_html/vendor/magento/framework/Interception/Interceptor.php(138): Mageplaza\LayeredNavigation\Controller\Search\Result\Index\Interceptor->___callParent('dispatch', Array)
#4 /public_html/vendor/magento/framework/Interception/Interceptor.php(153): Mageplaza\LayeredNa in /public_html/app/code/Mageplaza/LayeredNavigation/Controller/Search/Result/Index.php on line 132
请帮助。 预先谢谢你。