Magento 1.9.1可配置样本,调用成员函数

时间:2015-01-13 11:47:16

标签: magento

我希望有人可以帮我解决这个问题。我已升级到magento 1.9.1,但我无法使可配置的样本工作。在系统/配置/目录/可配置样本中打开可配置样本菜单时,出现异常错误。

这是错误:

a:5:{i:0;s:67:"Call to a member function toOptionArray() on a non-object (boolean)";i:1;s:1399:"#0 /var/www/vhosts/*/httpdocs/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php(229): Mage_Adminhtml_Block_System_Config_Form->initFields()
#1 /var/www/vhosts/*/httpdocs/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php(164): Mage_Adminhtml_Block_System_Config_Form->_initGroup()
#2 /var/www/vhosts/*/httpdocs/app/code/core/Mage/Adminhtml/Block/System/Config/Edit.php(93): Mage_Adminhtml_Block_System_Config_Form->initForm()
#3 /var/www/vhosts/*/httpdocs/app/code/core/Mage/Adminhtml/controllers/System/ConfigController.php(107): Mage_Adminhtml_Block_System_Config_Edit->initForm()
#4 /var/www/vhosts/*/httpdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Adminhtml_System_ConfigController->editAction()
#5 /var/www/vhosts/*/httpdocs/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch()
#6 /var/www/vhosts/*/httpdocs/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match()
#7 /var/www/vhosts/*/httpdocs/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#8 /var/www/vhosts/*/httpdocs/app/Mage.php(684): Mage_Core_Model_App->run()
#9 /var/www/vhosts/*/httpdocs/index.php(87): Mage::run()
#10 {main}";s:3:"url";s:101:"/index.php/*/system_config/edit/section/configswatches/key/99fc336bef99f324535367aac05a9702/";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:5:"admin";}

我认为数据库不匹配,但我不知道该怎么做。

的问候,

B中。 van Leenen

1 个答案:

答案 0 :(得分:0)

Magento Configurabe Swatches仅针对rwd Package开发,因此请确保仅使用rwd Package并重新检查Magento中的Configurable Color Swatches设置,即

  1. 导航至系统>配置>现在单击左侧菜单中Catalog下的Configurable Swatches。检查它是否为启用,然后再次检查其他不同设置。
  2. 现在导航到目录>属性>管理属性并检查是否为可配置产品激活此属性的设置以及其他设置。
  3. 最重要请保持图片名称与颜色名称和扩展名.png相同,并将其放在media / wysiwyg / swatches /
  4. 希望它有所帮助,

    由于