Uncaught TypeError: Cannot read property 'error' of undefined

Uncaught TypeError: Cannot read property 'error' of undefined

emtemt Posts: 46Questions: 10Answers: 0
edited June 2014 in Editor

Hey Allan,

When I try to add a new row in Editor, and then click the "Add" button, I receive the following error. You can see it here:

https://www.dcturano.com/to-do_list/

Uncaught TypeError: Cannot read property 'error' of undefined

(anonymous function)

n.extend.each

(anonymous function)

j

k.fireWith

x

b

This question has an accepted answers - jump to answer

Answers

  • emtemt Posts: 46Questions: 10Answers: 0
    edited June 2014

    The strange thing is that jQuery is loaded before DataTables and Editor, so I don't see why this error would be thrown.

    EDIT: I can't run my page through the debugger because it only goes through https, while the debugger could only do http.

  • allanallan Posts: 63,529Questions: 1Answers: 10,473 Site admin
    Answer ✓

    Server is responding with:

    {"id":-1,"error":"","fieldErrors":[{"name":"created","status":"Date is not in the expected format"}],"data":[]}

    However, there is no field called created so Editor doesn't know what to do with the error given and throws the warning.

    Possibly you need to remove the validation of the record on create?

    Allan

  • emtemt Posts: 46Questions: 10Answers: 0

    Removing the validation fixed it, thank you Allan.

This discussion has been closed.