problem installing on localhost (I am a php ignorant)
problem installing on localhost (I am a php ignorant)
robertredcor
Posts: 4Questions: 1Answers: 0
Hi there,
I just aquired and downloaded Datatables and Editor.
I try to install them on my local ubuntu box.
To do so I created a mysql database with the sample data I found (mysql.sql, and data.sql).
In /var/www/DataTables
I installed /DataTables-1.9.4 and unziped Editor in its extras directory.
Now when I try to access one of the samples in /var/www/DataTables/extras/Editor-1.2.4/examples
I get an error:
DataTables warning (table id = 'example'): DataTables warning: JSON data from server could not be parsed. This is caused by a JSON formatting error.
and in firebug the following console get message is provided:
Fatal error: Call to undefined function DataTables\Database\json_encode() in /home/zope/key2go/datatables/DataTables-1.9.4/extras/Editor-1.2.4/examples/php/lib/Database/Driver/Mysql/Query.php on line 55
Now my question:
How can I debug this?
My problem is, I have NO idea about php (I only want to use php for the samples)
Tell me please if you need more infoormation about my setup.
thanks for your time
robert
I just aquired and downloaded Datatables and Editor.
I try to install them on my local ubuntu box.
To do so I created a mysql database with the sample data I found (mysql.sql, and data.sql).
In /var/www/DataTables
I installed /DataTables-1.9.4 and unziped Editor in its extras directory.
Now when I try to access one of the samples in /var/www/DataTables/extras/Editor-1.2.4/examples
I get an error:
DataTables warning (table id = 'example'): DataTables warning: JSON data from server could not be parsed. This is caused by a JSON formatting error.
and in firebug the following console get message is provided:
Fatal error: Call to undefined function DataTables\Database\json_encode() in /home/zope/key2go/datatables/DataTables-1.9.4/extras/Editor-1.2.4/examples/php/lib/Database/Driver/Mysql/Query.php on line 55
Now my question:
How can I debug this?
My problem is, I have NO idea about php (I only want to use php for the samples)
Tell me please if you need more infoormation about my setup.
thanks for your time
robert
This discussion has been closed.
Replies
json_encode is a global PHP function, so there is something a little bit funny going on there, which is why I'm wondering about the PHP version.
Allan
I am at home now pestering myself with php :) (i probably have to learn it eventually).
Here I just installed a lamp setup and alas, it works.
thanks
robert