Error when trying to add an item via Editor

Error when trying to add an item via Editor

mike@supergrowlasers.commike@supergrowlasers.com Posts: 1Questions: 1Answers: 0

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

  • allanallan Posts: 50,737Questions: 1Answers: 7,581 Site admin

    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

Sign In or Register to comment.