Strict Standards: Non-static method JLoader…XAMPP安装完joomla后出现整页错误用最新的XAMPP1.7.4安装joomla1.5.3,中途出现不少问题。 好不容易解决了较低版本的You have an error in your SQL syntax 及 安装示范案例时报错:Error: the XML response that was returned from the server is invalid
结果浏览页面时出现更恐怖的结果:出现整页错误!
Strict Standards: Non-static method JLoader::import() should not be called statically in /var/www/vhosts/marylynnmurray/yalestationspaandsalon.com/libraries/joomla/import.php on line 29
Strict Standards: Non-static method JLoader::register() should not be called statically in /var/www/vhosts/marylynnmurray/yalestationspaandsalon.com/libraries/loader.php on line 71
Strict Standards: Non-static method JLoader::import() should not be called statically in /var/www/vhosts/marylynnmurray/yalestationspaandsalon.com/libraries/joomla/import.php on line 32
Strict Standards: Non-static method JLoader::register() should not be called statically in /var/www/vhosts/marylynnmurray/yalestationspaandsalon.com/libraries/loader.php on line 71
Strict Standards: Non-static method JLoader::load() should not be called statically in /var/www/vhosts/marylynnmurray/yalestationspaandsalon.com/libraries/loader.php on line 161
……
这个错误出现的原因是PHP 5.3 和joomla 还不是那么完美的兼容,所以时不时的来抽风。
解决方法如下:
1, 打开 xampp/php/php.ini 配置文件, 把 error_reporting = E_ALL | E_STRICT 替换成 error_reporting = E_ALL & ~E_STRICT ,把 display_errors = On 替换成 display_errors = Off ,然后保存,重启服务器,刷新页面。
2,也可打开joomla 文件夹下的 configuration.php, 把error_reporting = "-1" 替换成 error_reporting = "-6138", 然后保存,这种方法治标不治本。
3,修改joomla文件夹下的 htaccess.txt 文件, 打开文件,找个合适的位置,如最后面,添加如下代码: # supress php errors
然后 文件-另存为 ,选好保存路径, 文件名为:.htaccess , 文件类型变为:所有文件 d,保存。
至此,joomla1.5.X及以上不兼容高版本XAMPP(php/mysql)的问题全解决了。
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。
注:安装一个模板的快速安装包 JV Cera quickstart package.zip(joomla1.5.18),和joomla1.5.3版均出现了这些问题问题。 类似的还有较低版本数据库设置时报错:You have an error in your SQL syntax 出现的这一系列问题,应该都是较新的XAMPP 1.7.4集成的PHP版本过高,joomla不能良好兼容,mysql版本过高,有些命令已改变。
一般用下面引用的第六条可以间接绕道解决不能安装示例的问题(稍早的版本可能还要使用第五条讲到了替换TYPE=MyISAM)。
安装示范案例时报错的问题只好这样解决了!
不过接下来浏览网站时会出现更吓人的错误: Strict Standards: Non-static method JLoader::import() should not be called statically in ……
以下是网上搜到的此类有价值文章或贴子的集合,可以作为解决此问题的参考。
一、搜索了一下关于“Error: The XML response that was returned from the server cannot be processe”这个错误的一些资料,有人提到:
二、貌似你的数据库字符编码没有设置好,建议设置为 utf8_general_ci (sql里确实是用的这个)
三、我也出过相同的问题,其原因是我预先建立了数据库,我把数据库删了,问题就解决了.
在 linux类操作系统上这种现象比较常见,都是权限造成的。安装时不要将configuration.php.dist改名为 configuration.php,不要把权限设为777,这样会暴露您的网站,Joomla典型的权限设置为目录权限为755,文件为权限为 644,configuration.php文件为444。切记安装完后改回这个。
四、我用的是Joomla_RT_Catalyst_j15这个版本,是一个付费模板吧。 它其中的范例文件sample_data.sql中有一句话是这样的ENGINE=MyISAM DEFAULT CHARSET=utf8 。把它改成TYPE=MyISAM
CHARACTER SET `utf8`后,范例程序能顺利的安装了。
五、出现以上错误的原因有许多,现在都没有一个绝对的解决方案,现在PP在此就使用了我以前提及的解决方案的朋友给出解决方案:
方法是比较傻瓜式的,在出现错误的时候直接跳过去,点击next(下一步),直接完成JOOMLA的安装步骤,安装完后,请勿删除installation文件,重命名文件夹即可。
我们再次来到 joomla/installation/sql/mysql文件夹,找到sample_data.sql 文件,用DW或者notepad编辑软件打开文件,(此处不建议用记事本打开)再次把所有的 TYPE=MyISAM(较老的joomla版本里才有)替换成 ENGINE=MyISAM, 然后,查找前缀 #__ (注意这里是连续两个下划线) ,替换为 jos_ (或者你在前面安装过程中选择的特定前缀,注意变成了一个下划线) 查找并以UTF-8编码保存。
打开phpmyadmin, 打开JOOMLA程序所用的数据库,导入刚保存好的新文件sample_data.sql,导入成功后,刷新主页,你会看到所有网站数据都在页面上了。
六、这两天在XAMPP 1.7.3中也遇到这个问题。WinXP下测试用的。
以前我安装 Joomla! 核心都很顺利,不过是本地 XAMPP 服务器测试,还是远程安装,都没有碰到过这个问题,所以对它的解决方案也没有把握。
Error: the XML response that was returned from the server is invalid
1、 如果在点击“安装示范资料”按钮后,出现了“Error: the XML response that was
returned from the server is invalid”这个错误,就不要再尝试点击该按钮,而是放弃安装示范资料,直接填写管理员账号并进入下一步,完成安装程序。暂时不要删除 /installation 目录,而是改名为 /_installation。
|
|