2
votes

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?

1
If there's a newer version then try upgrading to it.GordonM
dokeos should be entirely rewrite... spaghetti code rules... if you really want to use it you should disable display_error in your php confsoju

1 Answers

1
votes

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).