You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have it working for some tables in this package: https://github.com/antonioribeiro/tracker/, but now I'm getting this error in one table only. This is how I'm using it:
This is the view responsible for rendering the datatable:
This is the controller method called by ajax, which should return the datatable to the JS datatables:
public function apiEvents()
{
$query = Tracker::events($this->minutes, false);
return Datatables::of($query)->make(true);
}
The variable $query is of type:
Illuminate\Eloquent\Query\Builder
And if I do $query->toSql() I get
select
"tracker_events"."id",
"tracker_events"."name",
count(tracker_events_log.id) as total
from "tracker_events"
inner join "tracker_events_log" on "tracker_events_log"."event_id" = "tracker_events"."id"
where "tracker_events_log"."updated_at" >= ?
and "tracker_events_log"."updated_at" <= ?
group by "tracker_events"."id", "tracker_events"."name" order by "total" desc
In the browser console I see it's generating the following error:
GET
http://dev.l4.com/stats/api/events?draw=1&columns%5B0%5D%5Bdata%5D=name&col…art=0&length=10&search%5Bvalue%5D=&search%5Bregex%5D=false&_=1425503969194 500
(Internal Server Error)
I have it working for some tables in this package: https://github.com/antonioribeiro/tracker/, but now I'm getting this error in one table only. This is how I'm using it:
This is the view responsible for rendering the datatable:
This is the datatable part of the generated HTML:
This is the controller method called by ajax, which should return the datatable to the JS datatables:
The variable $query is of type:
And if I do
$query->toSql()
I getIn the browser console I see it's generating the following error:
EDIT
: my nginx log is showing a different url:/EDIT
But it looks like the URL is somehow wrong, because it has not the
orderable
column you are looking for inAs you can see here:
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: