DataTables warning: table id - Invalid JSON response.
DataTables warning: table id - Invalid JSON response.
Hi, i have installed and used the DataTables editor, the examples are working OK, but when i am trying to use for my own application i am getting the following error after checking the resources section in Safari
Warning: include(localhost/thebaker/editor/php/DataTables.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in <b>/Applications/AMPPS/www/TheBaker/wp-content/themes/avada/scripts/tb_weekly_plans_details_populated.php <--- this is my server side script
<b>Fatal error</b>: Class 'DataTables\Editor' not found in <b>/Applications/AMPPS/www/TheBaker/wp-content/themes/avada/scripts/tb_weekly_plans_details_populated.php</b> on line <b>12</b><br />
This question has an accepted answers - jump to answer
Answers
Sounds like the paths have gone funny somewhere. What is the inline line for
DataTables.phpyou are using?Allan
it is the same standard file the plugin provided -- i have changed nothing
define("DATATABLES", true, true);
check version if condition
include( dirname(FILE).'/Bootstrap.php' );
I meant the
includestatement in thetb_weekly_plans_details_populated.phpfile.Allan
That looks like it should be:
Otherwise it is trying to go down a path called
localhostfrom the current directory, which I doubt exists.Allan
it worked out, i moved the folder to a to the root location and not under my website, now in order to access the examples, i have to link localhost/editor/examples instead of localhost/thebaker/editor/examples
thanks