Invalid Json Response. Works on localhost and other tables on site working.

Invalid Json Response. Works on localhost and other tables on site working.

madahopemadahope Posts: 2Questions: 1Answers: 0

Hi

On my locahost this works just fine, but now I have uploaded it on my test domain for, well, testing. On my WAMP localhost I get the table just fine with all the functionality, but after uploading it, this particular request sends back a blank response. I am really puzzled and can't find any leads as to where the problem lies.

This is the debug: https://debug.datatables.net/ugigur

Debug from localhost : http://debug.datatables.net/unapup

As you can see the localhost comes back with a perfectly valid JSON response. Both tables and data are the exact same on the domain database and local database.

I am pretty sure it is not the actual datatables, but some weird server configuration that I am not aware of.
Hope somebody has some input.

All the best
Mads

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,815Questions: 1Answers: 10,517 Site admin
    Answer ✓

    https://debug.datatables.net/ugigur

    If you click the "Tables" tab at the top and then the "Server interaction" header, you will be able to see that the server is apparently returning nothing. That isn't valid JSON and hence the error.

    Unfortunately, the debug trace only tells me that is the issue - it doesn't (and can't) tell me what would be causing the issue on the server-side.

    I'd suggest checking your server's error logs. There is a decent chance an error message will have been logged there.

    Allan

  • madahopemadahope Posts: 2Questions: 1Answers: 0

    Thanks for your reply. It was what I suspected, but wanted to make totally sure, that I wasn't missing something.

This discussion has been closed.