我只是停用一个自定义模块,但是magento仍然在寻找该模块中的文件并出现此错误:
Warning: include() [function.include]: apc failed to locate Mage/Gomage/Navigation/Model/Adminhtml/System/Config/Source/Category/Column.php - bailing in /vagrant/shop/lib/Varien/Autoload.php on line 93
0 /vagrant/shop/lib/Varien/Autoload.php(93): mageCoreErrorHandler(2, 'include() [autoload('Mage_Gomage_Nav...')
3 [internal function]: spl_autoload_call('Mage_Gomage_Nav...')
4 /vagrant/shop/app/code/core/Mage/Core/Model/Config.php(1346): class_exists('Mage_Gomage_Nav...')
5 /vagrant/shop/app/Mage.php(462): Mage_Core_Model_Config->getModelInstance('gomage_navigati...', Array)
6 /vagrant/shop/app/code/core/Mage/Eav/Model/Entity/Attribute/Abstract.php(383): Mage::getModel('gomage_navigati...')
7 /vagrant/shop/app/code/core/Mage/Adminhtml/Block/Widget/Form.php(201): Mage_Eav_Model_Entity_Attribute_Abstract->getSource()
8 /vagrant/shop/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))
9 /vagrant/shop/app/code/core/Mage/Adminhtml/Block/Widget/Form.php(144): Mage_Adminhtml_Block_Catalog_Category_Tab_Attributes->_prepareForm()
10 /vagrant/shop/app/code/core/Mage/Core/Block/Abstract.php(885): Mage_Adminhtml_Block_Widget_Form->_beforeToHtml()
11 /vagrant/shop/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tabs.php(140): Mage_Core_Block_Abstract->toHtml()
12 /vagrant/shop/app/code/core/Mage/Core/Block/Abstract.php(261): Mage_Adminhtml_Block_Catalog_Category_Tabs->_prepareLayout()
13 /vagrant/shop/app/code/core/Mage/Core/Model/Layout.php(456): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
14 /vagrant/shop/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Edit/Form.php(55): Mage_Core_Model_Layout->createBlock('adminhtml/catal...', 'tabs')
15 /vagrant/shop/app/code/core/Mage/Core/Block/Abstract.php(261): Mage_Adminhtml_Block_Catalog_Category_Edit_Form->_prepareLayout()
16 /vagrant/shop/app/code/core/Mage/Core/Model/Layout.php(456): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
17 /vagrant/shop/app/code/core/Mage/Adminhtml/Block/Widget/Form/Container.php(82): Mage_Core_Model_Layout->createBlock('adminhtml/catal...')
18 /vagrant/shop/app/code/core/Mage/Core/Block/Abstract.php(261): Mage_Adminhtml_Block_Widget_Form_Container->_prepareLayout()
19 /vagrant/shop/app/code/core/Mage/Core/Model/Layout.php(456): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
20 /vagrant/shop/app/code/core/Mage/Core/Model/Layout.php(472): Mage_Core_Model_Layout->createBlock('adminhtml/catal...', 'category.edit')
21 /vagrant/shop/app/code/core/Mage/Core/Model/Layout.php(239): Mage_Core_Model_Layout->addBlock('adminhtml/catal...', 'category.edit')
22 /vagrant/shop/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))
23 /vagrant/shop/app/code/core/Mage/Core/Model/Layout.php(210): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
24 /vagrant/shop/app/code/core/Mage/Core/Controller/Varien/Action.php(344): Mage_Core_Model_Layout->generateBlocks()
25 /vagrant/shop/app/code/core/Mage/Core/Controller/Varien/Action.php(269): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
26 /vagrant/shop/app/code/core/Mage/Adminhtml/Controller/Action.php(275): Mage_Core_Controller_Varien_Action->loadLayout(NULL, true, true)
27 /vagrant/shop/app/code/core/Mage/Adminhtml/controllers/Catalog/CategoryController.php(201): Mage_Adminhtml_Controller_Action->loadLayout()
28 /vagrant/shop/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Adminhtml_Catalog_CategoryController->editAction()
29 /vagrant/shop/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('edit')
30 /vagrant/shop/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
31 /vagrant/shop/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
32 /vagrant/shop/app/Mage.php(683): Mage_Core_Model_App->run(Array)
33 /vagrant/shop/index.php(95): Mage::run('', 'store')
34 {main}
我一直试图在代码中的其他位置找到这个模块的位置以删除它,但是我找不到它,那么在magento中搜索这个依赖项的最佳方法是什么?
答案 0 :(得分:0)
答案 1 :(得分:0)
看堆栈:
#7 /vagrant/shop/app/code/core/Mage/Adminhtml/Block/Widget/Form.php(201): Mage_Eav_Model_Entity_Attribute_Abstract->getSource()
#8 /vagrant/shop/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))
#9 /vagrant/shop/app/code/core/Mage/Adminhtml/Block/Widget/Form.php(144): Mage_Adminhtml_Block_Catalog_Category_Tab_Attributes->_prepareForm()
#10 /vagrant/shop/app/code/core/Mage/Core/Block/Abstract.php(885): Mage_Adminhtml_Block_Widget_Form->_beforeToHtml()
#11 /vagrant/shop/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tabs.php(140): Mage_Core_Block_Abstract->toHtml()
在准备类别属性时,您可以看到它出现在类别选项卡中,因此您可能需要从数据库中删除使用已删除模块的源模型的属性。查看eav_attribute表并查看source_model列。在那里你会找到对gomage_navigation的引用。
编辑:为了加快速度,您还可以查看已删除模块的设置脚本中创建的属性,然后查明销毁的战士;)
6月4日16:11回答 mpaepper