1

Can access magento category page

Error log below

Source model "megamenu/category_attribute_source_block_yesno" not found for attribute "sw_cat_hide_menu_item"

Trace:
#0 /home/public_html/app/code/core/Mage/Eav/Model/Entity/Attribute/Abstract.php(390): Mage::exception('Mage_Eav', 'Source model "m...')
#1 /home/public_html/app/code/core/Mage/Adminhtml/Block/Widget/Form.php(201): Mage_Eav_Model_Entity_Attribute_Abstract->getSource()
#2 /home/public_html/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tab/Attributes.php(113): Mage_Adminhtml_Block_Widget_Form->_setFieldset(Array, Object(Varien_Data_Form_Element_Fieldset))
#3 /home/public_html/app/code/core/Mage/Adminhtml/Block/Widget/Form.php(144): Mage_Adminhtml_Block_Catalog_Category_Tab_Attributes->_prepareForm()
#4 /home/public_html/app/code/core/Mage/Core/Block/Abstract.php(922): Mage_Adminhtml_Block_Widget_Form->_beforeToHtml()
#5 /home/public_html/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tabs.php(140): Mage_Core_Block_Abstract->toHtml()
#6 /home/public_html/app/code/core/Mage/Core/Block/Abstract.php(297): Mage_Adminhtml_Block_Catalog_Category_Tabs->_prepareLayout()
#7 /home/public_html/app/code/core/Mage/Core/Model/Layout.php(456): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
#8 /home/public_html/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Edit/Form.php(55): Mage_Core_Model_Layout->createBlock('adminhtml/catal...', 'tabs')
#9 /home/public_html/app/code/core/Mage/Core/Block/Abstract.php(297): Mage_Adminhtml_Block_Catalog_Category_Edit_Form->_prepareLayout()
#10 /home/public_html/app/code/core/Mage/Core/Model/Layout.php(456): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
#11 /home/public_html/app/code/core/Mage/Adminhtml/Block/Widget/Form/Container.php(93): Mage_Core_Model_Layout->createBlock('adminhtml/catal...')
#12 /home/public_html/app/code/core/Mage/Core/Block/Abstract.php(297): Mage_Adminhtml_Block_Widget_Form_Container->_prepareLayout()
#13 /home/public_html/app/code/core/Mage/Core/Model/Layout.php(456): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
#14 /home/public_html/app/code/core/Mage/Core/Model/Layout.php(472): Mage_Core_Model_Layout->createBlock('adminhtml/catal...', 'category.edit')
#15 /home/public_html/app/code/core/Mage/Core/Model/Layout.php(239): Mage_Core_Model_Layout->addBlock('adminhtml/catal...', 'category.edit')
#16 /home/public_html/app/code/core/Mage/Core/Model/Layout.php(205): Mage_Core_Model_Layout->_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#17 /home/public_html/app/code/core/Mage/Core/Model/Layout.php(210): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#18 /home/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(344): Mage_Core_Model_Layout->generateBlocks()
#19 /home/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(269): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#20 /home/public_html/app/code/core/Mage/Adminhtml/Controller/Action.php(275): Mage_Core_Controller_Varien_Action->loadLayout(NULL, true, true)
#21 /home/public_html/app/code/core/Mage/Adminhtml/controllers/Catalog/CategoryController.php(201): Mage_Adminhtml_Controller_Action->loadLayout()
#22 /home/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Adminhtml_Catalog_CategoryController->editAction()
#23 /home/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('edit')
#24 /home/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))
#25 /home/public_html/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#26 /home/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#27 /home/public_html/index.php(83): Mage::run('', 'store')
#28 {main}

3 Answers 3

1

Seems like module disabled so that source model does not work

megamenu/category_attribute_source_block_yesno

so either you need to enable module or you need to go to db and find table eav_attribute and remove attribute sw_cat_hide_menu_item

11
  • how do i enable it? Commented May 3, 2017 at 8:20
  • there are no values in database :/ Commented May 3, 2017 at 8:21
  • go to db and run below query : select * from eav_attribute where attribute_code='sw_cat_hide_menu_item' Commented May 3, 2017 at 8:23
  • done but now I am getting error for this Source model "megamenu/category_attribute_source_type_style" not found for attribute "sw_cat_block_type" Commented May 3, 2017 at 8:27
  • go to db and run below query : select * from eav_attribute where attribute_code='sw_cat_block_type' and remove it Commented May 3, 2017 at 8:27
1

Find "sw_cat_hide_menu_item" into database "eav_attribute" table and delete

Delete cache and check.

0

sw is smartwave vendor. IF AND ONLY IF you have permanently removed files related to smartwave theme of your magento install run this command in mysql:

DELETE from eav_attribute where attribute_code LIKE 'sw_%';

the theme was coded very poorly and breaks site if you try to uninstall this theme and its extensions that came with it. This command fixed any magento errors I had related to removal of smartwave porto theme for magento 1.9

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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