JSON formatting error

JSON formatting error

gamonongamonon Posts: 3Questions: 0Answers: 0
edited February 2013 in General
Hi,
Downloaded the trial to see if this is for me.
Created a database and used the generator.
Uploaded the whole and ran the file.
Getting the result:

DataTables warning (table id = 'tabletest1'): DataTables warning: JSON data from server could not be parsed. This is caused by a JSON formatting error.

I don't have time to spent hours searching for the solution so mayby someone could point me instantly to it.

Thanks a bundle
JohN

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Yes, you have a JSON formatting error. Without a link to a test case, we can't say any more than that: http://datatables.net/forums/discussion/12899/post-test-cases-when-asking-for-help-please-read

    Allan
  • gamonongamonon Posts: 3Questions: 0Answers: 0
    Allan,
    By all means, You're right. Sorry for my ignorant posting.

    I've set this page up at http://www.4beeld.nl/public/tabletest1.html

    I would appreciate it if you could take a look at it.

    Thanks
    JohN
  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Thanks for the link. This is what is being returned by the server:

    [code]


    Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in /home/eri4beeld/domains/4beeld.nl/public_html/public/php/table.tabletest1.php on line 13

    [/code]

    That error occurs if you are using an old version of PHP (5.2 perhaps?). PHP 5.3 or newer is required for the Editor libraries as they take advantage of some of the features introduced in 5.3 to present a cleaner API.

    Allan
  • gamonongamonon Posts: 3Questions: 0Answers: 0
    Allan,
    Indeed, version 5.2.17 from januari 2011 ....
    Time for my provider to upgrade.
    Sure hope that will solve it as I really want to work with this

    Thanks for your help

    JohN
  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Absolutely - that should indeed resolve the issue, but please me know if you hit anything else.

    Allan
This discussion has been closed.