0

我正在尝试在我的 Magento 1.6.2.0 中安装 Pagamento Digital 模块,但是有一些错误日志我不知道该怎么做...

到目前为止,我一直在寻找 3 天,如果有人能照亮我的道路,那将是有福的!

模块网址: http: //www.magentocommerce.com/magento-connect/buscape-pagamento-digital-4971.html

错误日志:

a:5:{i:0;s:87:"Mage registry key "_singleton/pagamentodigital/source_specificcountries" already exists";i:1;s:1647:"

#0 /home/wwwmirom/public_html/app/Mage.php(192): Mage::throwException('Mage registry k...') #1 /home/wwwmirom/public_html/app/Mage.php(446): Mage::register('_singleton/paga...', false) 
#2 /home/wwwmirom/public_html/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php(407): Mage::getSingleton('pagamentodigita...') 
#3 /home/wwwmirom/public_html/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php(210): Mage_Adminhtml_Block_System_Config_Form->initFields(Object(Varien_Data_Form_Element_Fieldset), Object(Mage_Core_Model_Config_Element), Object(Mage_Core_Model_Config_Element)) 
#4 /home/wwwmirom/public_html/app/code/core/Mage/Adminhtml/Block/System/Config/Edit.php(92): Mage_Adminhtml_Block_System_Config_Form->initForm() 
#5 /home/wwwmirom/public_html/app/code/core/Mage/Adminhtml/controllers/System/ConfigController.php(102): Mage_Adminhtml_Block_System_Config_Edit->initForm() 
#6 /home/wwwmirom/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(420): Mage_Adminhtml_System_ConfigController->editAction() 
#7 /home/wwwmirom/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('edit') 
#8 /home/wwwmirom/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http)) 
#9 /home/wwwmirom/public_html/app/code/core/Mage/Core/Model/App.php(349): Mage_Core_Controller_Varien_Front->dispatch() 
#10 /home/wwwmirom/public_html/app/Mage.php(640): Mage_Core_Model_App->run(Array) 
#11 /home/wwwmirom/public_html/index.php(80): Mage::run('', 'store') 
#12 {main}";s:3:"url";s:99:"/~wwwmirom/index.php/admin/system_config/edit/section/payment/key/e94bbab2478ea8f5cf8dc57068597e1b/";s:11:"script_name";s:20:"/~wwwmirom/index.php";s:4:"skin";s:5:"admin";}
4

1 回答 1

0

看起来你正在处理一个被黑/修改过的核心。此扩展正在尝试使用该getSingleton方法来实例化一个类。如果您查看未修改的核心

public static function getSingleton($modelClass='', array $arguments=array())
{
    $registryKey = '_singleton/'.$modelClass;
    if (!self::registry($registryKey)) {
        self::register($registryKey, self::getModel($modelClass, $arguments));
    }
    return self::registry($registryKey);
}

您可以看到 Magento在设置之前检查注册表中是否已经设置了某些内容。注册表是一个简单的键/值存储。

出于某种原因,此“检查是否已设置”代码在您的特定安装中失败/不存在。您需要调试原因。

于 2012-06-25T23:10:03.353 回答