Datatables in laravel Error Ajax

Datatables in laravel Error Ajax

RientzRientz Posts: 6Questions: 0Answers: 0

This is how my error looks like

"DataTables warning: table id=users-table - Ajax error. For more information about this error, please see http://datatables.net/tn/7"

This error always show, can anyone help me? this is my debug code

debug.datatables.net/ijifes

Replies

  • kthorngrenkthorngren Posts: 21,303Questions: 26Answers: 4,947

    Looks like you are getting the following:

            "status": 404,
            "statusText": "Not Found"
    

    This is a server error. You will need to review your server logs to see why the 404 is generated.

    Kevin

  • RientzRientz Posts: 6Questions: 0Answers: 0

    can you show me how to fix it? thanks anyway

  • kthorngrenkthorngren Posts: 21,303Questions: 26Answers: 4,947

    can you show me how to fix it? thanks anyway

    Your server logs will indicate why its returning a 404 error. Without knowing that information its hard to say what the problem is. It could be the path to your AJAX URL is incorrect:
    "ajax": "http://localhost:8000/admin/data/get_datatable",

    Kevin

  • RientzRientz Posts: 6Questions: 0Answers: 0

    but i have check thats url is truly can be used, the url also correct

  • allanallan Posts: 63,464Questions: 1Answers: 10,466 Site admin

    Did you check your server logs? If the server is returning 404, then that means the page isn't where it is being requested. That's not a DataTables error I'm afraid.

    Allan

  • RientzRientz Posts: 6Questions: 0Answers: 0

    i'm sorry im so newbie here, how to check my server logs? i dont know how to check it, im using xampp, please help me

  • RientzRientz Posts: 6Questions: 0Answers: 0

    i'm sorry, i will explain the problem,the main problem i found is
    failed to load resource the server responded with a status of 404 not found

  • RientzRientz Posts: 6Questions: 0Answers: 0

    Problem solved ty

This discussion has been closed.