receiving "undefined index: order" error message in ajax return, along with correct data

receiving "undefined index: order" error message in ajax return, along with correct data

stevencmonstevencmon Posts: 23Questions: 8Answers: 2

I get the following returned from an AJAX response:
<br /> <b>Notice</b>: Undefined index: order in <b>/var/www/html/ss/php/Editor/Editor.php</b> on line <b>1456</b><br /> {"data":[{"DT_RowId":"row_4","id":"4","site_id":"1","area_type":"Guest","area_name":"Main Floor 2","building_name":"Main","floor":"2","room":"","ceiling_type":"Drop","floor_type":"Concrete","wall_type":"Drywall","number_of_voip":"22","number_of_ott":"22","number_of_poe":"0","number_of_wired":"22"}],"options":[],"files":[],"draw":1,"recordsTotal":"1","recordsFiltered":"1"}

I'm passing a value from javascript:
ajax: { url: 'myphp/table.areas.php', type: "post", data: { "area_id": area_id } },
and referencing in PHP:
->where( 'id', $_POST['area_id'] )

adding ini_set('error_reporting', E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED); and error_reporting(0); did not eliminate the message

This question has an accepted answers - jump to answer

Answers

  • stevencmonstevencmon Posts: 23Questions: 8Answers: 2
    Answer ✓

    Never mind... it was related to the serverSide: true that I had in there. This can be closed.

This discussion has been closed.