bagz_man
bagz_man

Reputation: 575

Dokeos warning: Strict Standards

When installing dokeos 2.1 into htdocs, it shows warnings like these:

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

and about ten same warnings like this:

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

How to solve this?

Upvotes: 2

Views: 2530

Answers (1)

Furgas
Furgas

Reputation: 2844

If you have access to php.ini check if error_reporting option includes E_STRICT error level. If so, remove it. If you don't have access to php.ini add error_reporting(error_reporting() & ~E_STRICT); in your application code (ex. main PHP entry file).

Upvotes: 1

Related Questions