Tuesday, April 5, 2016

Magento Warning: simplexml_load_string() Parser Error

Sometimes when you enable caching in magento, you will get this error:

Warning: simplexml_load_string(): Entity: line 83: parser error : StartTag: invalid element name  in /home/magento/enterprise/lib/Varien/Simplexml/Config.php on line 383

#0 [internal function]: mageCoreErrorHandler(2, 'simplexml_load_...', '/home/magento/enterprise/...', 383, Array)
#1 /home/magento/enterprise/lib/Varien/Simplexml/Config.php(383): simplexml_load_string('loadCache()
#3 /home/magento/enterprise/app/code/core/Mage/Core/Model/App.php(424): Mage_Core_Model_Config->loadModulesCache()
#4 /home/magento/enterprise/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Model_App->_initModules()
#5 /home/magento/enterprise/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#6 /home/magento/enterprise/index.php(86): Mage::run('', 'store')
#7 {main}


I am sure you have custom theme (or extensions) installed, and you can't trust them 100%.

To quickly fix check if you can find any entries when you run:

SELECT * FROM `core_config_data` where path > 0;


If you can, then awesome, you can fix it by running:

DELETE FROM `core_config_data` where path > 0;


Flush your cache and you are good to enable cache again.

If those entries re-appear you need to investigate every single third party additions.

4 comments:

  1. Extraordinary things you've generally imparted to us. Simply continue written work this sort of posts.The time which was squandered in going for educational cost now it can be utilized for studies.Thanks extensions for Magento enterprise

    ReplyDelete
  2. Moreover, looking over all Magento versions, you'll be able to determine if Magento is the type of software you want and need. We are pretty confident that the majority of people will be impressed with the many features and freedom, which Magento offers its users.https://medijo.lt/skrajutes/

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete