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. For more information about this error, please see http://datatables.net/tn/7 #18

Open
btraill opened this issue Dec 17, 2019 · 4 comments
Labels
local issue Affects user installed app only to confirm solved Waiting for user feedback

Comments

@btraill
Copy link

btraill commented Dec 17, 2019

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
Copy link
Author

btraill commented Dec 18, 2019

Note: I also tried replacing the src vendor files with the latest revisions found in the bottom of this post:

#11

I overwrote the files and the same issue persists.

@xaviqv xaviqv added the Help Needed Any reader that could help solving this issue would be much appreciated!! label Dec 21, 2019
@xaviqv
Copy link
Contributor

xaviqv commented Dec 21, 2019

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

@vasilejianu
Copy link

any update on this having the same issue

@xaviqv
Copy link
Contributor

xaviqv commented Jun 28, 2021

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!

@xaviqv xaviqv added local issue Affects user installed app only to confirm solved Waiting for user feedback and removed Help Needed Any reader that could help solving this issue would be much appreciated!! labels Jun 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
local issue Affects user installed app only to confirm solved Waiting for user feedback
Projects
None yet
Development

No branches or pull requests

3 participants