cancel
Showing results for 
Search instead for 
Did you mean: 

Help with Invalid method Mage_Catalog_Block_Category_View::isSubCategoryMode When Upgrade to 1.9.2.4

Help with Invalid method Mage_Catalog_Block_Category_View::isSubCategoryMode When Upgrade to 1.9.2.4

Hi I upgraded my site to Magento version 1.9.2.4 and only homepage and product pages are opening...

 

Category and Sub Category pages are not opening

 

Here is the error:

 

Invalid method Mage_Catalog_Block_Category_View::isSubCategoryMode(Array
(
)
)
Trace: #0 /home/admin/web/domain.com/public_html/app/design/frontend/carbox/default/template/catalog/category/view.phtml(81): Varien_Object->__call('isSubCategoryMo...', Array) #1 /home/admin/web/domain.com/public_html/app/design/frontend/carbox/default/template/catalog/category/view.phtml(81): Mage_Catalog_Block_Category_View->isSubCategoryMode() #2 /home/admin/web/domain.com/public_html/app/code/core/Mage/Core/Block/Template.php(241): include('/home/admin/web...') #3 /home/admin/web/domain.com/public_html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/carbox...') #4 /home/admin/web/domain.com/public_html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView() #5 /home/admin/web/domain.com/public_html/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Template->_toHtml() #6 /home/admin/web/domain.com/public_html/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml() #7 /home/admin/web/domain.com/public_html/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Text_List->_toHtml() #8 /home/admin/web/domain.com/public_html/app/code/core/Mage/Core/Block/Abstract.php(637): Mage_Core_Block_Abstract->toHtml() #9 /home/admin/web/domain.com/public_html/app/code/core/Mage/Core/Block/Abstract.php(581): Mage_Core_Block_Abstract->_getChildHtml('content', true) #10 /home/admin/web/domain.com/public_html/app/design/frontend/carbox/default/template/page/2columns-left.phtml(81): Mage_Core_Block_Abstract->getChildHtml('content') #11 /home/admin/web/domain.com/public_html/app/code/core/Mage/Core/Block/Template.php(241): include('/home/admin/web...') #12 /home/admin/web/domain.com/public_html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/carbox...') #13 /home/admin/web/domain.com/public_html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView() #14 /home/admin/web/domain.com/public_html/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Template->_toHtml() #15 /home/admin/web/domain.com/public_html/app/code/core/Mage/Core/Model/Layout.php(555): Mage_Core_Block_Abstract->toHtml() #16 /home/admin/web/domain.com/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput() #17 /home/admin/web/domain.com/public_html/app/code/core/Mage/Catalog/controllers/CategoryController.php(161): Mage_Core_Controller_Varien_Action->renderLayout() #18 /home/admin/web/domain.com/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Catalog_CategoryController->viewAction() #19 /home/admin/web/domain.com/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('view') #20 /home/admin/web/domain.com/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http)) #21 /home/admin/web/domain.com/public_html/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch() #22 /home/admin/web/domain.com/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array) #23 /home/admin/web/domain.com/public_html/index.php(83): Mage::run('', 'store') #24 {main}

 

2 REPLIES

Re: Help with Invalid method Mage_Catalog_Block_Category_View::isSubCategoryMode When Upgrade to 1.9

Hi @WYamout

 

From which version of Magento did you upgrade?

 

In Magento 1.9.2.4 there is no method named isSubCategoryMod in Mage_Catalog_Block_Category_View  class.

 

Were you using any custom module with lower version? Try to search this isSubCategoryMod method in community and local code pool of original site.

---
Problem Solved Click Accept as Solution!:Magento Community India Forum

Re: Help with Invalid method Mage_Catalog_Block_Category_View::isSubCategoryMode When Upgrade to 1.9

THanks that helped found the class it was a custom class in view.phtml

 

Now though have another problem

 

the page is opening but products not showing saying...

 

Fatal error: Undefined class constant 'DM_SUBCATEGORY' in/home/admin/web/domain.com/public_html/app/code/core/Mage/Catalog/Block/Category/View.php on line 159