Upgraded to 2.0 and now having issue with field names in js/buttons not working etc

Upgraded to 2.0 and now having issue with field names in js/buttons not working etc

dahknesh232dahknesh232 Posts: 2Questions: 1Answers: 0

I'm having an issue. I followed format as best I could!

**https://clients.sle-ims.com/demo**:
u: admin
p: password

Debugger code (debug.datatables.net):

No code shown, gave me a link and sent me to a 404.

Error messages shown:
Uncaught Error: Error adding field - unknown field type date
at new a (dataTables.editor.min.js:128)
at a.Na [as add] (dataTables.editor.min.js:27)
at a.Na [as add] (dataTables.editor.min.js:27)
at new a (dataTables.editor.min.js:157)
at HTMLDocument.<anonymous> (table.gopherbite.js:10)
at i (datatables.min.js:14)
at Object.fireWith [as resolveWith] (datatables.min.js:14)
at Function.ready (datatables.min.js:14)
at HTMLDocument.K (datatables.min.js:14)
a @ dataTables.editor.min.js:128
Na @ dataTables.editor.min.js:27
Na @ dataTables.editor.min.js:27
a @ dataTables.editor.min.js:157
(anonymous) @ table.gopherbite.js:10
i @ datatables.min.js:14
fireWith @ datatables.min.js:14
ready @ datatables.min.js:14
K @ datatables.min.js:14

DevTools failed to load SourceMap: Could not load content for https://debug.datatables.net/index.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

DevTools failed to load SourceMap: Could not load content for https://debug.datatables.net/dist/css/maps/debug.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

Description of problem:
Everything was fine last week, and then I realized I forgot to update the live end with my licensed version, and redownloaded, but got version 2.0, and something has gone wrong in my upgrade apparently.
None of my buttons are showing, and the information from the db is not populating.
I literally copy-pasted code from live end to demo and changed config where necessary, and for some reason on the live end, the:

{buttons: [
{ extend: 'create', editor: editor}
}
  • is populating as an addition to the bottom of the page, and not as a popup like before.
    Obviously I've broken something somewhere, help please?

Answers

  • dahknesh232dahknesh232 Posts: 2Questions: 1Answers: 0

    I fixed it. IDK how i fixed it, other than literally going back and regenerating the entire thing and reconfiguring the table.mytable.js to work. demo will be closed to public.

  • colincolin Posts: 15,112Questions: 1Answers: 2,583

    Maybe there was a mismatch of some 1.x and 2.0 files, perhaps, but glad all sorted!

    Colin

This discussion has been closed.