panichelpdesk / panichd

Ticketing system for Laravel 5.1 - 8.x. Allows to create new tickets via form only. Includes file attachments, ticket tags, filtering, scheduling and e-mail notifications.
MIT License
90 stars 41 forks source link

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

Open btraill opened 4 years ago

btraill commented 4 years ago

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.

ajax_request_chrome_error

btraill commented 4 years ago

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.

xaviqv commented 4 years ago

@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:

vasilejianu commented 3 years ago

any update on this having the same issue

xaviqv commented 3 years ago

Hi @vasilejianu,

Do you still have this issue? If you do, please share these parameters from your installation:

Thanks!