致命错误:在Magento管理中的非对象上调用成员函数toOptionArray() [英] Fatal error: Call to a member function toOptionArray() on a non-object in Magento admin
本文介绍了致命错误:在Magento管理中的非对象上调用成员函数toOptionArray()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我单击Magento系统->配置->销售标签下的运输方式标签时,我遇到以下错误:
When I click on Shipping Methods tab under Magento system->configuration->SALES tab I am faced with the following error:
致命错误:在D:\ xampp \ htdocs \ magento \ app \ code \ core \ Mage \ Adminhtml \ Block \ System \ Config \ Form.php的非对象上调用成员函数toOptionArray() 463
Fatal error: Call to a member function toOptionArray() on a non-object in D:\xampp\htdocs\magento\app\code\core\Mage\Adminhtml\Block\System\Config\Form.php on line 463
最令人惊讶的是,这是Magento的全新装置.谁能告诉我如何清除此错误?
The most astounding thing is that this is a fresh installation of Magento. Can anyone tell me how can I remove this error?
推荐答案
添加到config.xml
Add to config.xml
<global>
<models>
<stockindicator>
<class>Namespace_ModuleName_Model</class>
</stockindicator>
</models>
</global>
这篇关于致命错误:在Magento管理中的非对象上调用成员函数toOptionArray()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文