登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

高级菜鸟

积累并顺便分享AI,启动技术,C#,ASP.net等知识的地方

 
 
 

日志

 
 

Strict Standards: Non-static method JLoader…XAMPP安装完joomla后出现整页错误  

2011-06-22 10:48:01|  分类: joomla |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
用最新的XAMPP1.7.4安装joomla1.5.3,中途出现不少问题。

结果浏览页面时出现更恐怖的结果:出现整页错误!

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
php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
php_value docref_root 0
php_value docref_ext 0

然后 文件-另存为 ,选好保存路径, 文件名为:.htaccess , 文件类型变为:所有文件  d,保存。

至此,joomla1.5.X及以上不兼容高版本XAMPP(php/mysql)的问题全解决了
  评论这张
 
阅读(7704)| 评论(0)

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018