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

Warning: SimpleXMLElement::addChild() [simplexmlelement.addchild]: Element name is required
 
freiden
Jr. Member
 
Total Posts:  30
Joined:  2009-01-21
 

I’m getting this really unsual error on everything and nothing on my site was working. I was saving payment processing info in the admin when it happened.

WarningSimpleXMLElement::addChild() [simplexmlelement.addchild]Element name is required  in /home/USER/public_html/MAGENTO/lib/Varien/Simplexml/Element.php on line 397
Trace
:
#0 [internal function]: mageCoreErrorHandler(2, 'SimpleXMLElemen...', '/home/USER/...', 397, Array)
#1 /home/USER/public_html/MAGENTO/lib/Varien/Simplexml/Element.php(397): SimpleXMLElement->addChild('')
#2 /home/USER/public_html/MAGENTO/lib/Varien/Simplexml/Element.php(345): Varien_Simplexml_Element->extendChild(Object(Mage_Core_Model_Config_Element), false)
#3 /home/USER/public_html/MAGENTO/app/code/core/Mage/Core/Model/Mysql4/Config.php(115): Varien_Simplexml_Element->extend(Object(Mage_Core_Model_Config_Element))
#4 /home/USER/public_html/MAGENTO/app/code/core/Mage/Core/Model/Config.php(268): Mage_Core_Model_Mysql4_Config->loadToXml(Object(Mage_Core_Model_Config))
#5 /home/USER/public_html/MAGENTO/app/code/core/Mage/Core/Model/Config.php(289): Mage_Core_Model_Config->init(Object(Mage_Core_Model_Config_Options))
#6 /home/USER/public_html/MAGENTO/app/code/core/Mage/Core/Model/Config.php(429): Mage_Core_Model_Config->reinit(Object(Mage_Core_Model_Config_Options))
#7 /home/USER/public_html/MAGENTO/app/code/core/Mage/Core/Model/Config.php(510): Mage_Core_Model_Config->_loadSectionCache('stores_bulgaria')
#8 /home/USER/public_html/MAGENTO/app/code/core/Mage/Core/Model/Config.php(553): Mage_Core_Model_Config->getSectionNode(Array)
#9 /home/USER/public_html/MAGENTO/app/code/core/Mage/Core/Model/Store.php(207): Mage_Core_Model_Config->getNode('stores/bulgaria...')
#10 /home/USER/public_html/MAGENTO/app/code/core/Mage/Core/Model/Store.php(240): Mage_Core_Model_Store->getConfig('catalog/price/s...')
#11 /home/USER/public_html/MAGENTO/app/code/core/Mage/Core/Model/App.php(426): Mage_Core_Model_Store->initConfigCache()
#12 /home/USER/public_html/MAGENTO/app/code/core/Mage/Core/Model/App.php(268): Mage_Core_Model_App->_initStores()
#13 /home/USER/public_html/MAGENTO/app/Mage.php(434): Mage_Core_Model_App->init('', 'store', Array)
#14 /home/USER/public_html/MAGENTO/app/Mage.php(455): Mage::app('', 'store', Array)
#15 /home/USER/public_html/MAGENTO/index.php(65): Mage::run()
#16 {main} USER

Any immediate help is seriously appreciated!

 
Magento Community Magento Community
Magento Community
Magento Community
 
freiden
Jr. Member
 
Total Posts:  30
Joined:  2009-01-21
 

it appears to be a database issue. I created a fresh install and connected the old database to it. now the new install is having the same error.

 
Magento Community Magento Community
Magento Community
Magento Community
 
deysuparna
Jr. Member
 
Total Posts:  5
Joined:  2009-03-25
 

I am very new to magento & face the same problem after making Authorize.net in active mode from test mode.
I somehow make the site running by deleting the records related to authorize.net from core_config_data table.
Hope this will help someone.

 
Magento Community Magento Community
Magento Community
Magento Community
 
alkessh
Jr. Member
 
Total Posts:  2
Joined:  2013-03-31
 

I am getting this error.

Warning: SimpleXMLElement::addChild(): Element name is required in /var/www/Xaptum_production/lib/Varien/Simplexml/Element.php on line 439

#0 [internal function]: mageCoreErrorHandler(2, ‘SimpleXMLElemen...’, ‘/var/www/Xaptum...’, 439, Array)
#1 /var/www/Xaptum_production/lib/Varien/Simplexml/Element.php(439): SimpleXMLElement->addChild(’’)
#2 /var/www/Xaptum_production/lib/Varien/Simplexml/Element.php(387): Varien_Simplexml_Element->extendChild(Object(Mage_Core_Model_Config_Element), false)
#3 /var/www/Xaptum_production/app/code/core/Mage/Core/Model/Mysql4/Config.php(118): Varien_Simplexml_Element->extend(Object(Mage_Core_Model_Config_Element))
#4 /var/www/Xaptum_production/app/code/core/Mage/Core/Model/Config.php(352): Mage_Core_Model_Mysql4_Config->loadToXml(Object(Mage_Core_Model_Config))
#5 /var/www/Xaptum_production/app/code/core/Mage/Core/Model/App.php(402): Mage_Core_Model_Config->loadDb()
#6 /var/www/Xaptum_production/app/code/core/Mage/Core/Model/App.php(329): Mage_Core_Model_App->_initModules()
#7 /var/www/Xaptum_production/app/Mage.php(627): Mage_Core_Model_App->run(Array)
#8 /var/www/Xaptum_production/index.php(85): Mage::run(’’, ‘store’)
#9 {main}

need urjent help plz!!!!

 
Magento Community Magento Community
Magento Community
Magento Community
 
jamarante
Jr. Member
 
Total Posts:  1
Joined:  2013-11-02
 

Any updates to this problem? We are facing the same issues when we copied a running application to a new server (database is already imported, config file updated to match db credentials) but it just shows this error.

Any help would be greatly appreciated.

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