I'm facing a strange problem when trying to upload and image in the node form by clicking on the upload button.
I'm getting "An illegal choice has been detected. Please contact the site administrator."
and these log messages:
Type php Location http://mysite.com/en/system/ajax Referrer http://mysite.com/en/node/add/content-type Message Notice: Undefined variable: new_field_state in entityreference_autofill_populate_form_by_field() (line 284 of /path/to/mysite/sites/all/modules/entityreference_autofill/entityreference_autofill.module). Severity notice
Location http://mysite.com/en/file/ajax/field_my_photo/und/0/form-G3b5wQ19B0cHOiUnXSc2SjlA_PpRuMhVghwSTV2cO4o Referrer http://mysite/en/node/add/content-type Message Illegal choice 22472 in Trim element. Severity error
even if chose the image without hitting the upload button, and hitting the submit button of the node form, the form will not submit, and it gives the same "an illegal choice has been detected" and my entity reference field is surrounded by red color.