2012-02-22 55 views
2

当安装dokeos 2.1到htdocs下,它显示了这样的警告:Dokeos警告:严格的标准

Strict Standards: Declaration of SortableTableFromArray::get_table_data() should be compatible with that of SortableTable::get_table_data() in ...\dokeos\main\inc\lib\sortabletable.class.php on line 989 

Strict Standards: Declaration of SortableTableFromArrayConfig::get_table_data() should be compatible with that of SortableTable::get_table_data() in ...\dokeos\main\inc\lib\sortabletable.class.php on line 1032 

至约10相同的警告是这样的:

Strict Standards: Only variables should be passed by reference in ...\dokeos\main\inc\lib\internationalization.lib.php on line 203 

如何解决这个问题?

+0

如果有更新的版本,请尝试升级。 – GordonM 2012-02-22 16:00:15

+0

dokeos应该完全重写...意大利面代码规则...如果你真的想使用它,你应该禁用display_error在你的php conf – soju 2012-02-22 16:23:42

回答

1

如果您有权访问php.ini,请检查error_reporting选项是否包含E_STRICT错误级别。如果是这样,请将其删除。如果您无权访问php.ini,请在您的应用程序代码(例如主PHP入口文件)中添加error_reporting(error_reporting() & ~E_STRICT);

+0

它是安全的删除错误报告?它能正常工作吗? – 2012-02-23 02:34:54

+0

@bagz_man您只从您的错误报告中删除E_STRICT消息,这些建议不是真正的错误。正如文档所述:“STRICT消息将帮助您使用最新最好的建议编码方法,例如警告您使用弃用函数。” – Furgas 2012-02-23 18:57:54