简体   繁体   English

magento-更改catalogsearch.xml后发生错误

[英]magento - error after changing catalogsearch.xml

Was attempting to remove the Search Terms and Advanced Search from the footer links. 试图从页脚链接中删除“搜索词”和“高级搜索”。 I am now getting the following message: 我现在收到以下消息:

Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 103: parser error : XML declaration allowed only at the start of the document in /home/viviscal/domains/viviscal.ca/public_html/app/code/core/Mage/Core/Model/Layout/Update.php on line 294 警告:simplexml_load_string()[function.simplexml-load-string]:实体:第103行:解析器错误:仅在/home/viviscal/domains/viviscal.ca/public_html/app/code中的文档开头允许XML声明/core/Mage/Core/Model/Layout/Update.php在第294行

When I changed the file back, I'm still getting this message. 当我改回文件时,仍然收到此消息。 Anyone know what might be causing it? 有人知道是什么原因吗?

Regards, Fiona 此致Fiona

sorry.. found a solution... for some reason my ftp client was copying the code and appending it to the end of the file each time i updated it.. I deleted the duplications, and this resolved my error. 抱歉..找到了一个解决方案...由于某种原因,我的ftp客户端每次都更新它时,都会复制代码并将其附加到文件末尾。.我删除了重复项,这解决了我的错误。

Thanks, Fiona 谢谢,Fiona

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

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