简体   繁体   English

Magento启用缓存会创建页面错误警告:simplexml_load_string()

[英]Magento enable cache creates page error Warning: simplexml_load_string()

When i enable cache in the admin of our Magento (a new extensions requires us to do this), the store goes down and gives the following error on page load. 当我在Magento的管理员中启用缓存(新的扩展程序要求我们执行此操作)时,存储崩溃,并在页面加载时显示以下错误。

    Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 51: parser error : StartTag: invalid element name  in /home/sitename/public_html/lib/Varien/Simplexml/Config.php on line 383

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

We cannot load the store anymore. 我们无法再加载商店。

Most probably this issue comes when the XML file (config.xml or {layout}.xml) having the XML syntax error. 当XML文件(config.xml或{layout} .xml)出现XML语法错误时,很可能会出现此问题。 So please check your new extension's xml files properly. 因此,请正确检查新扩展程序的xml文件。 You can check the xml file syntax by opening the file in any browser. 您可以通过在任何浏览器中打开xml文件来检查语法。

Hope this will help. 希望这会有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM