if you encounter something like this error with datatables

it's means there possibility error in your variable name (typo) or in your database query. You can see in the documentation for more information how to handle this error.

but there for sample what the possible cause error like this(not really, but maybe can help).

using chrome you can check it in browser console for digging deeper the cause of error.

this is the first atempt and no error is provided. apss is running well.


user select the option 'Nama Proyek' just for sample.


it's work too. the data will display based on 'Nama Proyek' and automaticaly trigger to display selected data to the datatables with ajax every time user change the option on 'Nama Proyek'.

now, find the error with browse consolse (in chrome open with F11 button on keyboard)


move to console tab, and click the error you will be automatically move to network tab. like this picture below.


it will describe here all the error it provided. just double click and you will be redirected to the page with more error info.

the name of error depend on your route, for me the route is

Route::get('/fillprojects', [ProjectController::class, 'byproject'])->name('property.filltable.byproject');".

so the error is "fillprojects" in this sample.

this is the error info from laravel after you click it twice


this error because typo in variable name.


this error because something wrong in database query.

nah. may you will find another error with this digging deeper technique.

Comments