严格标准:非静态方法Cache :: get()不应该在Concrete5中被静态调用
问题描述:
具体来说5,当我移动站点时,我得到了"Strict standards: Non-static method Cache::get() should not be called statically"
,我试过了concrete5中的建议解决方案(http://www.concrete5.org/community/forums/installation/concrete5-broke-after-updating-php-apache-to-include-a-few-addit/),但是sill错误正在显示。严格标准:非静态方法Cache :: get()不应该在Concrete5中被静态调用
如果有降级php以外的解决方案,请帮忙。
答
您必须更改错误报告以在php5.4 +中禁用E_STRICT
。
是固定的这是提交https://github.com/concrete5/concrete5/commit/a0fa442ccbfa78b28f1f5cedb517a58b762ca019 和 https://github.com/concrete5/concrete5/commit/86735143059746e8db5ff71e9fe5a8570796f3c5
推荐的方式来解决这个问题见concrete5 documentation。