Invalid JSON Response

Invalid JSON Response

worthyonthewebworthyontheweb Posts: 6Questions: 2Answers: 0

Hi I have inherited a CMS system which uses Datatables and I'm attempting to add Editor as there is no front end edit facility but unfortunately I'm struggling. I have attempted to try using the example but unfortunately I'm getting Invalid JSON Response. I'm fairly new at debugging JavaScript so I don't fully understand the info I'm getting despite following the instructions. Can anybody point me the right direction to find a plain English resource that will help me get to the bottom of why the examples won't work.
Thank you in advance.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin

    The details at the tech note the error points to will show how to find out what the server is responding with, since it isn't valid JSON. The question is, if it isn't valid JSON, what is it? Normally there will be an error message or some other indication of what the issue is.

    Allan

  • worthyonthewebworthyontheweb Posts: 6Questions: 2Answers: 0

    Hi The error it brings up is this but unfortunately so far I'm not smart enough to figure out why.
    <br>

    PHP Error Message

    <br />
    <b>Parse error</b>: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in <b>/home/a9761783/public_html/Editor-PHP-1.5.5/examples/php/staff.php</b> on line <b>12</b><br />
    <br>

  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin
    Answer ✓

    My guess is that you are using a very old version of PHP - 5.2 perhaps? The Editor libraries require PHP 5.3 or newer.

    Allan

  • worthyonthewebworthyontheweb Posts: 6Questions: 2Answers: 0

    Sounds like I'd better get in touch with the hosting people. Thank you very much.

This discussion has been closed.