DataTables warning: JSON data from server could not be parsed. This is caused by a JSON formatting error

前端 未结 5 1715
太阳男子
太阳男子 2021-01-23 08:27

I am using server-side DataTables in a project

and do a search, shows me the following error message:

DataTables warning: JSON data from server not could b

5条回答
  •  不思量自难忘°
    2021-01-23 08:34

    For newer versions of datatables,don't forget to remove this line from the server_processing.php file

    /* REMOVE THIS LINE (it just includes my SQL connection user/pass) */
        include( $_SERVER['DOCUMENT_ROOT']."/datatables/mysql.php" );
    

提交回复
热议问题