Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataTables warning: table id=tickets-table - Ajax error #11

Open
CraCkzer opened this issue Feb 21, 2019 · 6 comments
Open

DataTables warning: table id=tickets-table - Ajax error #11

CraCkzer opened this issue Feb 21, 2019 · 6 comments
Labels
bug Proved error in PanicHD source code to confirm solved Waiting for user feedback

Comments

@CraCkzer
Copy link

Hello guys, I'm new in this world and I'm learning about laravel. Now, I'have a problem loading tables of tickets. My browser says:

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

In web browser console I get this errors:

"jQuery.Deferred exception: $(...).tooltip is not a function TypeError: $(...).tooltip is not a function
at HTMLDocument."

"jquery-3.3.1.min.js:2 Uncaught TypeError: $(...).tooltip is not a function
at HTMLDocument."

And with this I get a 500 error code
"tickets/data/active?draw=1&columns%5B0......... 500"

What should I do?

@CraCkzer
Copy link
Author

Solved updating files. And editing this line in > panichd/src/views/tickets/datatables/loader.blade.php <

ajax: { url: '{!! route($setting->grab('main_route').'.data', $ticketList) !!}', type: 'GET' },

Now we have the problem Unknown column '""' in field list
Departments are disabled.

@wladiz2001
Copy link
Contributor

Change
$a_select[] = "'-' as dep_ancestor_name"; for
$a_select[] = \DB::raw("'-' as dep_ancestor_name");

in controller TicketsController function data and is fixed the problem

@kamalbhojwani93
Copy link

I am getting the same error
I changed this
$a_select[] = "'-' as dep_ancestor_name"; for
$a_select[] = \DB::raw("'-' as dep_ancestor_name");
but still i am getting error

@kamalbhojwani93
Copy link

"error":"Exception Message:\n\nSQLSTATE[42000]: Syntax error or access violation: 1055 'fotocons_new.panichd_tickets.created_at' isn't in GROUP BY

Getting this error now
Can anyone help me to solve this?

@markking79
Copy link

I just did a fresh install to check this package out. Laravel 5.8. I corrected this error by modifying:

/vendor/panichd/panichd/src/Controllers/TicketsController.php (line 141)

REMOVED:
$a_select[] = '"" as dep_ancestor_name';

ADDED:
$a_select[] = \DB::raw("'-' as dep_ancestor_name");

@xaviqv xaviqv added bug Proved error in PanicHD source code Help Needed Any reader that could help solving this issue would be much appreciated!! labels Aug 20, 2019
@xaviqv
Copy link
Contributor

xaviqv commented Nov 18, 2019

I have applied @wladiz2001 dedicated pull request #12 in the latest release posted yesterday. Could you please guys confirm If your related issues continue after updating PanicHD to v0.18.0?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Proved error in PanicHD source code to confirm solved Waiting for user feedback
Projects
None yet
Development

No branches or pull requests

5 participants