Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Erro no backend com métodos de pagamento e múltiplas lojas
 
Sweet Gunner
Jr. Member
 
Avatar
Total Posts:  23
Joined:  2009-02-04
 

Olá pessoal,

Gostaria de saber se podem me ajudar com um erro que apareceu hoje no Magento..
Estes dias criei + 3 websites e 3 visões de loja para gerenciar pelo mesmo painel.
Agora entrei em sistema > config > métodos de pagamento e quando fui selecionar um dos websites que criei (na verdade acontece com todos, menos com o main) para fazer as modificações, aparece o seguinte erro:

NoticeUninitialized string offset0  in /home/xxxxx/www/app/code/core/Mage/Adminhtml/Block/System/Config/Form/Field.php on line 104
Trace
:
#0 /home/xxxxx/www/app/code/core/Mage/Adminhtml/Block/System/Config/Form/Field.php(104): mageCoreErrorHandler(8, 'Uninitialized s...', '/home/especiall...', 104, Array)
#1 /home/xxxxx/www/lib/Varien/Data/Form/Element/Abstract.php(199): Mage_Adminhtml_Block_System_Config_Form_Field->render(Object(Varien_Data_Form_Element_Select))
#2 /home/xxxxx/www/lib/Varien/Data/Form/Element/Abstract.php(209): Varien_Data_Form_Element_Abstract->getHtml()
#3 /home/xxxxx/www/app/code/core/Mage/Adminhtml/Block/System/Config/Form/Fieldset.php(51): Varien_Data_Form_Element_Abstract->toHtml()
#4 /home/xxxxx/www/lib/Varien/Data/Form/Element/Abstract.php(199): Mage_Adminhtml_Block_System_Config_Form_Fieldset->render(Object(Varien_Data_Form_Element_Fieldset))
#5 /home/xxxxx/www/lib/Varien/Data/Form/Element/Abstract.php(209): Varien_Data_Form_Element_Abstract->getHtml()
#6 /home/xxxxx/www/lib/Varien/Data/Form.php(214): Varien_Data_Form_Element_Abstract->toHtml()
#7 /home/xxxxx/www/lib/Varien/Data/Form.php(226): Varien_Data_Form->toHtml()
#8 /home/xxxxx/www/app/code/core/Mage/Adminhtml/Block/Widget/Form.php(103): Varien_Data_Form->getHtml()
#9 /home/xxxxx/www/app/design/adminhtml/default/default/template/widget/form.phtml(28): Mage_Adminhtml_Block_Widget_Form->getFormHtml()
#10 /home/xxxxx/www/app/code/core/Mage/Core/Block/Template.php(144): include('/home/especiall...')
#11 /home/xxxxx/www/app/code/core/Mage/Core/Block/Template.php(176): Mage_Core_Block_Template->fetchView('adminhtml/defau...')
#12 /home/xxxxx/www/app/code/core/Mage/Core/Block/Template.php(193): Mage_Core_Block_Template->renderView()
#13 /home/xxxxx/www/app/code/core/Mage/Adminhtml/Block/Template.php(81): Mage_Core_Block_Template->_toHtml()
#14 /home/xxxxx/www/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Adminhtml_Block_Template->_toHtml()
#15 /home/xxxxx/www/app/code/core/Mage/Core/Block/Abstract.php(503): Mage_Core_Block_Abstract->toHtml()
#16 /home/xxxxx/www/app/code/core/Mage/Core/Block/Abstract.php(454): Mage_Core_Block_Abstract->_getChildHtml('form', true)
#17 /home/xxxxx/www/app/design/adminhtml/default/default/template/system/config/edit.phtml(46): Mage_Core_Block_Abstract->getChildHtml('form')
#18 /home/xxxxx/www/app/code/core/Mage/Core/Block/Template.php(144): include('/home/especiall...')
#19 /home/xxxxx/www/app/code/core/Mage/Core/Block/Template.php(176): Mage_Core_Block_Template->fetchView('adminhtml/defau...')
#20 /home/xxxxx/www/app/code/core/Mage/Core/Block/Template.php(193): Mage_Core_Block_Template->renderView()
#21 /home/xxxxx/www/app/code/core/Mage/Adminhtml/Block/Template.php(81): Mage_Core_Block_Template->_toHtml()
#22 /home/xxxxx/www/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Adminhtml_Block_Template->_toHtml()
#23 /home/xxxxx/www/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
#24 /home/xxxxx/www/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Core_Block_Text_List->_toHtml()
#25 /home/xxxxx/www/app/code/core/Mage/Core/Block/Abstract.php(503): Mage_Core_Block_Abstract->toHtml()
#26 /home/xxxxx/www/app/code/core/Mage/Core/Block/Abstract.php(454): Mage_Core_Block_Abstract->_getChildHtml('content', true)
#27 /home/xxxxx/www/app/design/adminhtml/default/default/template/page.phtml(67): Mage_Core_Block_Abstract->getChildHtml('content')
#28 /home/xxxxx/www/app/code/core/Mage/Core/Block/Template.php(144): include('/home/especiall...')
#29 /home/xxxxx/www/app/code/core/Mage/Core/Block/Template.php(176): Mage_Core_Block_Template->fetchView('adminhtml/defau...')
#30 /home/xxxxx/www/app/code/core/Mage/Core/Block/Template.php(193): Mage_Core_Block_Template->renderView()
#31 /home/xxxxx/www/app/code/core/Mage/Adminhtml/Block/Template.php(81): Mage_Core_Block_Template->_toHtml()
#32 /home/xxxxx/www/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Adminhtml_Block_Template->_toHtml()
#33 /home/xxxxx/www/app/code/core/Mage/Core/Model/Layout.php(526): Mage_Core_Block_Abstract->toHtml()
#34 /home/xxxxx/www/app/code/core/Mage/Core/Controller/Varien/Action.php(347): Mage_Core_Model_Layout->getOutput()
#35 /home/xxxxx/www/app/code/core/Mage/Adminhtml/controllers/System/ConfigController.php(93): Mage_Core_Controller_Varien_Action->renderLayout()
#36 /home/xxxxx/www/app/code/core/Mage/Core/Controller/Varien/Action.php(376): Mage_Adminhtml_System_ConfigController->editAction()
#37 /home/xxxxx/www/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(248): Mage_Core_Controller_Varien_Action->dispatch('edit')
#38 /home/xxxxx/www/app/code/core/Mage/Core/Controller/Varien/Front.php(158): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#39 /home/xxxxx/www/app/Mage.php(459): Mage_Core_Controller_Varien_Front->dispatch()
#40 /home/xxxxx/www/index.php(89): Mage::run()
#41 {main}

Neste arquivo field.php, próx. a linha 104 está:

$defText $element->getDefaultValue();
            if (
$options{
                $defTextArr 
= array();
                foreach (
$options as $k=>$v{
                    
if ($isMultiple{
                        
if (is_array($v['value']) && in_array($k$v['value'])) {
                            $defTextArr[] 
$v['label'];
                        
}
                    } 
elseif ($v['value']==$defText{
                        $defTextArr[] 
$v['label'];
                        break;
                    
}
                }
                $defText 
join(', '$defTextArr);
            
}

No meu index.php usei o método de múltiplas lojas com diferentes sub-domínios, então modifiquei o final do arquivo com o nome das 3 lojas que criei.

Alguém pode me ajudar a decifrar este erro e solucioná-lo?

Desde já agradeço.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top