cancel
Showing results for 
Search instead for 
Did you mean: 

Exception when adding configurable product to category

SOLVED

Exception when adding configurable product to category

I'm new to magento and am taking over the work of another developer.

 

I've managed to add a configurable product to a 'Blank Apparel' category and its works as intended. When I add another or even change the same product to other categories the problem in the picture below occurs. I've figured out that it only happens when visibility is set to catalog/search or catalog. Lacking familiarity with magento I don't really know where to begin.

 

Any help would be greatly appreciated

 

Copy Pasted:

1 exception(s):
Exception #0 (Magento\Framework\Exception\LocalizedException): Invalid method Sm\FilterProducts\Block\FilterProducts\Interceptor::isLeaf

Exception #0 (Magento\Framework\Exception\LocalizedException): Invalid method Sm\FilterProducts\Block\FilterProducts\Interceptor::isLeaf
<pre>#1 Sm\FilterProducts\Block\FilterProducts\Interceptor->__call()
#2 call_user_func_array() called at [vendor/magento/framework/View/TemplateEngine/Php.php:82]
#3 Magento\Framework\View\TemplateEngine\Php->__call() called at [app/design/frontend/Sm/market/Sm_MegaMenu/templates/megamenu.phtml:54]
#4 include() called at [vendor/magento/framework/View/TemplateEngine/Php.php:59]
#5 Magento\Framework\View\TemplateEngine\Php->render() called at [vendor/magento/framework/View/Element/Template.php:271]
#6 Magento\Framework\View\Element\Template->fetchView() called at [vendor/magento/framework/View/Element/Template.php:301]
#7 Magento\Framework\View\Element\Template->_toHtml() called at [app/code/Sm/MegaMenu/Block/MegaMenu/View.php:239]
#8 Sm\MegaMenu\Block\MegaMenu\View->_toHtml() called at [vendor/magento/framework/View/Element/AbstractBlock.php:668]
#9 Magento\Framework\View\Element\AbstractBlock->toHtml() called at [vendor/magento/framework/View/Layout.php:557]
#10 Magento\Framework\View\Layout->_renderBlock() called at [vendor/magento/framework/View/Layout.php:533]
#11 Magento\Framework\View\Layout->renderNonCachedElement() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206]
#12 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement() called at [vendor/magento/framework/View/Layout.php:488]
#13 Magento\Framework\View\Layout->renderElement() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193]
#14 Magento\Framework\View\Layout\Interceptor->renderElement() called at [vendor/magento/framework/View/Layout.php:585]
#15 Magento\Framework\View\Layout->_renderContainer() called at [vendor/magento/framework/View/Layout.php:535]
#16 Magento\Framework\View\Layout->renderNonCachedElement() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206]
#17 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement() called at [vendor/magento/framework/View/Layout.php:488]
#18 Magento\Framework\View\Layout->renderElement() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193]
#19 Magento\Framework\View\Layout\Interceptor->renderElement() called at [vendor/magento/framework/View/Element/AbstractBlock.php:508]
#20 Magento\Framework\View\Element\AbstractBlock->getChildHtml() called at [app/design/frontend/Sm/market/Magento_Theme/templates/html/header-style/header-1.phtml:53]
#21 include() called at [app/design/frontend/Sm/market/Magento_Theme/templates/html/header.phtml:16]
#22 include() called at [vendor/magento/framework/View/TemplateEngine/Php.php:59]
#23 Magento\Framework\View\TemplateEngine\Php->render() called at [vendor/magento/framework/View/Element/Template.php:271]
#24 Magento\Framework\View\Element\Template->fetchView() called at [vendor/magento/framework/View/Element/Template.php:301]
#25 Magento\Framework\View\Element\Template->_toHtml() called at [vendor/magento/framework/View/Element/AbstractBlock.php:668]
#26 Magento\Framework\View\Element\AbstractBlock->toHtml() called at [vendor/magento/framework/View/Layout.php:557]
#27 Magento\Framework\View\Layout->_renderBlock() called at [vendor/magento/framework/View/Layout.php:533]
#28 Magento\Framework\View\Layout->renderNonCachedElement() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206]
#29 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement() called at [vendor/magento/framework/View/Layout.php:488]
#30 Magento\Framework\View\Layout->renderElement() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193]
#31 Magento\Framework\View\Layout\Interceptor->renderElement() called at [vendor/magento/framework/View/Layout.php:585]
#32 Magento\Framework\View\Layout->_renderContainer() called at [vendor/magento/framework/View/Layout.php:535]
#33 Magento\Framework\View\Layout->renderNonCachedElement() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206]
#34 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement() called at [vendor/magento/framework/View/Layout.php:488]
#35 Magento\Framework\View\Layout->renderElement() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193]
#36 Magento\Framework\View\Layout\Interceptor->renderElement() called at [vendor/magento/framework/View/Layout.php:585]
#37 Magento\Framework\View\Layout->_renderContainer() called at [vendor/magento/framework/View/Layout.php:535]
#38 Magento\Framework\View\Layout->renderNonCachedElement() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206]
#39 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement() called at [vendor/magento/framework/View/Layout.php:488]
#40 Magento\Framework\View\Layout->renderElement() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193]
#41 Magento\Framework\View\Layout\Interceptor->renderElement() called at [vendor/magento/framework/View/Layout.php:954]
#42 Magento\Framework\View\Layout->getOutput() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#43 Magento\Framework\View\Layout\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#44 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#45 Magento\Framework\View\Layout\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:494]
#46 Magento\Framework\View\Layout\Interceptor->getOutput() called at [vendor/magento/framework/View/Result/Page.php:258]
#47 Magento\Framework\View\Result\Page->render() called at [vendor/magento/framework/View/Result/Layout.php:171]
#48 Magento\Framework\View\Result\Layout->renderResult() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#49 Magento\Framework\View\Result\Page\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#50 Magento\Framework\View\Result\Page\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#51 Magento\Framework\View\Result\Page\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/View/Result/Page/Interceptor.php:130]
#52 Magento\Framework\View\Result\Page\Interceptor->renderResult() called at [vendor/magento/framework/App/Http.php:140]
#53 Magento\Framework\App\Http->launch() called at [vendor/magento/framework/App/Bootstrap.php:258]
#54 Magento\Framework\App\Bootstrap->run() called at [index.php:39]
</pre>


error.PNG

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Exception when adding configurable product to category

@derek_leong It is the problem with the custom theme you are using.

 

You can create a support ticket to them or you can disable the theme and check whether the issue is coming with default theme luma.

 

Thanks

View solution in original post

3 REPLIES 3

Re: Exception when adding configurable product to category

@derek_leong This is the issue with any third party extension or your custom theme which you are using.

 

So please let me know which theme are you using.

 

Check by switching to defualt theme if this issue persists.

 

Thanks

Re: Exception when adding configurable product to category

Thank you for the reply.

I am using SM Market Theme

Re: Exception when adding configurable product to category

@derek_leong It is the problem with the custom theme you are using.

 

You can create a support ticket to them or you can disable the theme and check whether the issue is coming with default theme luma.

 

Thanks