Error: XML response that was returned...

简介: Error: the XML response that was returned from the server is invalid在安装一个joomla模板时碰到这种情况,发现白建鹏已经解决:上网查了一下,关于在 Joomla! 核心安装过程中出现 Error: the ...
Error: the XML response that was returned from the server is invalid
在安装一个joomla模板时碰到这种情况,发现白建鹏已经解决:

上网查了一下,关于在 Joomla! 核心安装过程中出现 Error: the XML response that was returned from the server is invalid 问题的原因有这么几种:

1、目录/文件  权限问题  —— 解决办法:修改权限
2、数据库帐号权限问题  —— 解决办法:修改权限
3、FireFox 浏览器插件冲突(常见 Y!Slow 插件冲突,及 Web Developer 插件冲突,等) —— 解决办法: 换用谷歌 Chrome 或 IE 浏览器安装
4、在开始安装前,误将 configuration.php-dist 文件改名为 configuration.php  —— 解决办法:不要改名,删除自己创建的 configuration.php 文件,重新开始安装过程
5、最奇怪的一种: 第一次安装有这个 XML 问题,休息一会儿,重新安装就好了!(无法理解)

在我今天解决这个问题的过程中,我尝试了上述各种办法:查看目录/文件夹权限,似乎没问题;更换浏览器,问题依旧;休息一会儿再来,问题依旧!

最后,我只好采用了另一个网友建议的办法:不安装示范资料,在完成安装程序之后,再手动安装示范资料

事实证明,这个办法非常有效!因此我贴出来,希望以后有人碰到这个 XML 问题时,直接使用此方法,不要浪费时间在猜测原因及寻找其它解决途径上面 —— 管它什么原因呢,解决问题就行!

具体操作过程如下:


1、如果在点击“安装示范资料”按钮后,出现了“Error: the XML response that was returned from the server is invalid”这个错误,就不要再尝试点击该按钮,而是放弃安装示范资料,直接填写管理员帐号并进入下一步,完成安装程序。暂时不要删除 /installation 目录,而是改名为 /_installation。

2、安装结束之后,可以看到 Joomla! 前台一片空白,这是因为示范资料没有安装上去。但是在数据库中可以看到,数据表都已经创建了。

3、打开 /installation/sql/mysql/ 目录,找到  sample_data.sql 文件并下载到电脑上,用文本编辑器打开(最好不要用“记事本”,推荐使用 Notepad++ 编辑器)。

4、在 sample_data.sql 文件中查找前缀 #__ (注意这里是连续两个下划线) ,替换为 jos_ (或者你在前面安装过程中选择的特定前缀,注意变成了一个下划线) ,然后保存此文件,一定要保存为 utf-8 编码。

5、通过你的数据库管理工具 (例如 phpMyAdmin ) ,导入这个修改过的 sample_data.sql 文件到数据库。示范资料就安装成功了。

6、这时再浏览网站前后台,会发现一切都正常了。这时请记得删除 /_installation 这个目录。

但是,我也发现,他这种做法并不能解决我的问题:
最后,我发现直接安装就已经把示例文件都安装上了,再装实例文件出现上述问题。请各位朋友注意这个问题。
相关文章
|
30天前
|
应用服务中间件 Apache
springmvc中报错Request processing failed;
springmvc中报错Request processing failed;
12 0
|
8月前
|
XML JSON 人工智能
Error while extracting response for type [class xxx] and content type application/xml;charset=UTF-8
Error while extracting response for type [class xxx] and content type application/xml;charset=UTF-8
481 0
|
29天前
|
JSON 数据格式
“JSON parse error: Unexpected character (‘1‘ (code 49))的解决方式
“JSON parse error: Unexpected character (‘1‘ (code 49))的解决方式
10 0
|
3月前
|
XML Android开发 数据格式
Error obtaining Ul hierarchy Reason_ Error while obtaining Ul hierarchy XML file
Error obtaining Ul hierarchy Reason_ Error while obtaining Ul hierarchy XML file
32 0
|
3月前
|
XML Android开发 数据格式
Error obtaining Ul hierarchy Reason: Error while obtaining Ul hierarchy XML file
Error obtaining Ul hierarchy Reason: Error while obtaining Ul hierarchy XML file
16 1
|
4月前
|
JSON 数据格式
Error:Comments are not permitted in JSON
Error:Comments are not permitted in JSON
|
9月前
|
XML 数据安全/隐私保护 数据格式
Minio出现Non-XML response from server. Response code: 400, Content-Type: text/xml; ch的解决
Minio出现Non-XML response from server. Response code: 400, Content-Type: text/xml; ch的解决
1520 0
|
10月前
|
Java Spring
【feign】Could not write request: no suitable HttpMessageConverter found for request type
【feign】Could not write request: no suitable HttpMessageConverter found for request type
282 0
|
XML 数据格式
因为CircleImageView导致Binary XML file line #96: Error inflating class <unknown>
因为CircleImageView导致Binary XML file line #96: Error inflating class <unknown>
158 0
|
JSON 数据格式
解决:Could not write JSON: No serializer found for class *** and no properties错误
解决:Could not write JSON: No serializer found for class *** and no properties错误
553 0