sEcho Error from server_processing.php

sEcho Error from server_processing.php

ajjublrajjublr Posts: 1Questions: 0Answers: 0
edited October 2011 in Plug-ins
Notice: Undefined index: sEcho in
/var/www/siri/public/admin/DataTables/examples/server_side/scripts/server_processing.php on
line 148 {"sEcho":0,"iTotalRecords":"4","iTotalDisplayRecords":"4","aaData":
[["7","1","2147483647","??????? ????","12.44","??????? ????","1"],
["8","1","198778787","something","87.87","something","0"],
["9","1","32432","dsfadsf","212.00","dsafdsfdsaf","1"],
["10","2","2434","dasfdasd","33.00","dsafdsafds","1"]]}

Error I get while editing a field of a table, Using Editable .... Kindly help me out.

Request you to ignore the "???" in the fields as they are in UTF-8 ....

Replies

  • adromiladromil Posts: 53Questions: 4Answers: 0
    I also encountering the same issue using sever_side processing.
    I am using xampp server with
    + Apache 2.2.17
    + MySQL 5.5.8 (Community Server)
    + PHP 5.3.5 (VC6 X86 32bit) + PEAR

    Received notice from browser:
    Notice: Undefined index: sEcho in C:\xampp\htdocs\crm_pol\server_processing.php on line 148

    any help?

    [quote]adromil said: notice from browser:

    Notice: Undefined[/quote]
  • adromiladromil Posts: 53Questions: 4Answers: 0
    [code] /*
    * Output
    */
    $output = array(
    "sEcho" => intval($_GET['sEcho']),
    "iTotalRecords" => $iTotal,
    "iTotalDisplayRecords" => $iFilteredTotal,
    "aaData" => array()
    );[/code]

    This is where the problem is.
  • PeteBPeteB Posts: 38Questions: 0Answers: 0
    I had the 'undefined index' error when I had null fields in my data. Could this apply here?
  • adromiladromil Posts: 53Questions: 4Answers: 0
    try to comment out this line : [code]"sEcho" => intval($_GET['sEcho']),[/code]
    and see what is the result.
  • allanallan Posts: 61,787Questions: 1Answers: 10,115 Site admin
    If sEcho isn't being sent, then likely you don't have bServerSide: true - in which case sEcho has no meaning and shouldn't be used :-)

    See http://datatables.net/usage/#data_sources for more information.

    Allan
This discussion has been closed.