DataTable is not a function
Hello !
When I arrive at the page where I can import new PCs, the table does not display.
I have this error in the console
I have other errors before
https://support.myentreprise.net/glpi/glpi/plugins/ocsinventoryng/lib/DataTables/datatables.min.css?v=a8cdfc91038f17173761c0e5246d0f999f5cbb45
[HTTP/1.1 404 Not Found 272ms]
The correct url must be https://support.myentreprise.net/glpi/plugins/ocsinventoryng/lib/DataTables/datatables.min.css?v=a8cdfc91038f17173761c0e5246d0f999f5cbb45
he adds a 'glpi' but i dont know why. i suppose the issue come the variable PLUGIN_OCS_WEBDIR
If i edit OcsServer.php and replace all code like
echo Html::css(PLUGIN_OCS_WEBDIR . "/lib/DataTables/datatables.min.css");
by
echo Html::css("/plugins/ocsinventoryng/lib/DataTables/datatables.min.css");
it's work
I think it's because you have two folder glpi on your url : https://support.myentreprise.net/glpi/glpi/