Invalid Json Response
Invalid Json Response
ITHWP
Posts: 2Questions: 1Answers: 0
Hello,
I'm using the Datatables Editor Generator and after setting everything up using php, I'm still getting a
"DataTables warning: table id=NurseTechnician - Invalid JSON response. For more information about this error, please see http://datatables.net/tn/1"
I've set up my config.php file and when looking at the console i'm getting a successul connection to my database.
This discussion has been closed.
Answers
Did you follow the troubleshooting steps provided in the link?
http://datatables.net/tn/1
Kevin
I did,
When checking the error the name shows up as
http://[serverIP]/php/table.NurseTechnician.php?_=1551999811077
and the response as:
Hi @ITHWP ,
As Kevin said, the first thing to do is to follow the diagnostic steps in that link. The most useful one for us to support you, is to find out what the JSON response actually is - it's claiming it's invalid, so it's probably failing to connect to the DB and posting an invalid string back.
Cheers,
Colin