Error when trying to add an item via Editor
Error when trying to add an item via Editor
Getting this error message. Any ideas?
Fatal error: Uncaught Error: Call to a member function insertId() on null in /home/mikedev/public_html/libraries/datatables/editor/php/Editor/Editor.php:1624 Stack trace: #0 /home/mikedev/public_html/libraries/datatables/editor/php/Editor/Editor.php(1055): DataTables\Editor->_insert_or_update(NULL, Array) #1 /home/mikedev/public_html/libraries/datatables/editor/php/Editor/Editor.php(908): DataTables\Editor->_insert(Array) #2 /home/mikedev/public_html/libraries/datatables/editor/php/Editor/Editor.php(661): DataTables\Editor->_process(Array) #3 /home/mikedev/public_html/ajax/default/ajax.editor.resources.php(150): DataTables\Editor->process(Array) #4 {main} thrown in /home/mikedev/public_html/libraries/datatables/editor/php/Editor/Editor.php on line 1624
Answers
What version of Editor and the PHP libraries are you using please (1.9.1 is the latest)? Also, what database type and version are you using?
Does the row actually get inserted or updated?
Do you have a primary key auto incrementing column?
Sorry - lots of questions!
Thanks,
Allan