discuz利用ucenter整合ecshop在php5.4环境下会出现以下报错信息:
Strict Standards: Declaration of ucenter::login() should be compatible with integrate::login($username, $password, $remember = NULL)
Strict Standards: Declaration of ucenter::set_cookie() should be compatible with integrate::set_cookie($username = '', $remember = NULL)
检测了服务器配置文件和所有的cms系统的配置文件,发现已经将报错等级调至最低,但报错信息依然出现
百度了一下,在网上也没有找到有效的解决方案,但发现所有人都是从php代码本身需求问题的解决方案
我换了种思路,尝试从前端解决,在页面加载完成时,加入以下,就能实现了报错信息的隐藏: