webismymind / editablegrid

EditableGrid is an open source Javascript library aimed at turning HTML tables into advanced editable components. It focuses on simplicity: only a few lines of code are required to get your first table up and running.
http://www.editablegrid.net
Other
795 stars 272 forks source link

Uncaught SyntaxError: Unexpected token < at EditableGrid.processJSON (eval at <anonymous> (editablegrid-2.1.0-49.js:12), <anonymous>:1:12202) #183

Open ajayrajula opened 6 years ago

ajayrajula commented 6 years ago

I am using the mysql example. table doesn't load in index.html. shows the below error when i use inspect on chrome.

Uncaught SyntaxError: Unexpected token < at EditableGrid.processJSON (eval at (editablegrid-2.1.0-49.js:12), :1:12202)

Note: works on local xampp server but does not work on godaddy hosting. please suggest.

Mark-H commented 6 years ago

This type of error means the response (probably from an AJAX request) is not valid JSON, but contains HTML. Probably because of a PHP error or something.