2012-02-22 71 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