Greetings Josef,
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.
Comments
Comment #2
jgullstr commentedHi mas0h,
The notice problem should be fixed in dev now, please check if you also can upload images now.
Thanks for your report,
Josef
Comment #3
mas0h commentedI believe this issue is not related to your module, so please take an action!
The main discussion is here https://drupal.org/node/1989262
Thank you!
Comment #4
romaingar commentedHi, i've encountered the same problem with my entityform and a entityreference field based on a view. So i've just added that to entityreference_autofill.module (l.111)
And it works.... no more errors.