安装Joomla 1.5后,运行,报错:

Strict Standards: Non-static method JLoader::import() should not be called statically in D:\dev_data\iwmgmt\libraries\joomla\import.php on line 29

Strict Standards
: Non-static method JLoader::register() should not be called statically in D:\dev_data\iwmgmt\libraries\loader.php on line 71

Strict Standards
: Non-static method JLoader::import() should not be called statically in D:\dev_data\iwmgmt\libraries\joomla\import.php on line 32

Strict Standards
: Non-static method JLoader::register() should not be called statically in D:\dev_data\iwmgmt\libraries\loader.php on line 71


Strict Standards: Non-static method JLoader::load() should not be called statically in  D:\dev_data\iwmgmt\libraries\loader.php on line  161

Strict Standards
: Non-static method JLoader::register() should not be called statically in  D:\dev_data\iwmgmt\libraries\loader.php on line  138

Strict Standards
: Non-static method JRequest::clean() should not be called statically in  D:\dev_data\iwmgmt\libraries\joomla\import.php on line  33

 

百思不得其解,问谷歌,得到答案:

原来是php.ini中有如下设置:
error_reporting = E_ALL | E_STRICT

这是说,显示那些不符合编码规范的警告(coding standards warnings)。

Joomla其实是建议取消error的输出,如果出于调试需要,应改为
error_reporting = E_ALL & ~E_NOTICE

问题得到解决。回想一下,确实是重新安装xampp后报的错。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值