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)的问题全解决了。
评论