error 404 loading datatables.min.js

error 404 loading datatables.min.js

itramitram Posts: 9Questions: 4Answers: 0

Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:
I have been working on a project which includes datatables on a windows server without issues.
Just moved the whole project to an ubuntu server.
The app works fine in pages not requiring datatables editor licensed, but I face a strange problem.
The pages with datatables drops this error:
GET
http://localhost/panel/assets/plugins/datatables-bootstrap/dataTables.min.js
Status404
Not Found
VersionHTTP/1.1
Transferits487 B (271 B size)
Referrer Policystrict-origin-when-cross-origin
Connection Keep-Alive
Content-Length 271
Content-Type text/html; charset=iso-8859-1

So, it can't download/find dataTables.min.js
If I type in a browser in the localhost machine:
http://localhost/panel/assets/plugins/datatables-bootstrap/dataTables.min.js
it shows the .js code
But if I do the same in another machine I get the same error 404 when trying to download:
http://myserver/panel/assets/plugins/datatables-bootstrap/dataTables.min.js

I can get other files on the datatables-bootstrap folder locally or remotely, for example:
http://myserver/panel/assets/plugins/datatables-bootstrap/Responsive-2.2.9/js/responsive.bootstrap.min.js
is loaded locally or remotelly without any issues.

Is the problem getting dataTables.min.js related to the licence or the file itself?

Thanks

Answers

  • kthorngrenkthorngren Posts: 14,652Questions: 25Answers: 3,478

    There is no license for datatables.js only for the Editor.

    I suspect the problem is that the path is incorrect:

    /panel/assets/plugins/datatables-bootstrap/dataTables.min.js

    I suspect datatables.js is not in datatables-bootstrap. You will need to look at your server to see where the file is. Guessing it should be something like this:

    /panel/assets/plugins/datatables/dataTables.min.js

    Kevin

  • itramitram Posts: 9Questions: 4Answers: 0

    Thanks Kevin, but I just found the simple typo error.
    the requested file was dataTable.min.js while the file name is datatable.min.js

Sign In or Register to comment.