panichd
panichd copied to clipboard
DataTables warning: table id=tickets-table - Ajax error. For more information about this error, please see http://datatables.net/tn/7
I installed this into a new Laravel installation and followed the command-line method and populated it with the sample data/seeded info. The dashboard loads and the queries execute successfully. (I have the Laravel Debugbar enabled)
However whenever I attempt to navigate to a page that is attempting to I assume list tickets into a DataTable -- they are failing to load with:
DataTables warning: table id=tickets-table - Ajax error. For more information about this error, please see http://datatables.net/tn/7
I had to go into TicketsController.php previous to this error as originally it wasn't even finding Yajra's DataTables class. I modified a line in TicketControllers.php (254) to read as camel-cased as opposed to lowercase:
$datatables = app(\Yajra\DataTables\DataTables::class);
Doing that got me passed the "Target class [Yajra\Datatables\Datatables] does not exist." error/stack trace but now I'm stuck with:
ErrorException Invalid argument supplied for foreach()
Any help is greatly appreciated!
The dashboard loads with the sample data, so I know the SQL interaction is working as expected.
Note: I also tried replacing the src vendor files with the latest revisions found in the bottom of this post:
https://github.com/panichelpdesk/panichd/issues/11
I overwrote the files and the same issue persists.
@btraill Have you tried to delete the demo tickets and test it creating one of your own? I'm not sure if It could be a problem with the actual demo data.
The PR #12 you mentioned is included in current version, v0.18.0 released last 17th November
If you still have trouble with this, please share your software versions:
- Laravel version
- PanicHD version
- Local Installation Operating System (Which distro and version)
any update on this having the same issue
Hi @vasilejianu,
Do you still have this issue? If you do, please share these parameters from your installation:
- Laravel version
- PanicHD version
- Local Installation Operating System (Which distro and version)
Thanks!