After installing the insert module on drupal 7.0-alpha4 I receive the following errors after attempting to create a new file field:
* Notice: Undefined index: object_type in insert_form_field_ui_field_edit_form_alter() (line 254 of /shared/site/www/sites/all/modules/insert/insert.module).
* Warning: Invalid argument supplied for foreach() in form_type_checkboxes_value() (line 1774 of /shared/site/www/includes/form.inc).
Also when trying to add files to already existing file fields, the form fields are missing.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | insert-file-api-change-792024-8.patch | 1.48 KB | mlncn |
Comments
Comment #1
gleroux02 commentedAfter looking at the $form array a little bit further it looks like this issue is that $form['instance']['object_type']['#value'] should be $form['instance']['entity_type']['#value'] on line 255. The second part of the issue where the field is not appearing on the node's edit screen appears that it could be a separate and unrelated issue.
Comment #2
quicksketchThanks, this sounds like an API clean-up that likely occurred in between Drupal 7 versions.
Comment #3
tsvenson commentedJust tried the alpha1 on D7a5 and got the same error with one small exception. Second error referes to line 1772 instead of 1774.
It is possible to enable and configure insert for the CT, but on the node edit page the fieldgroup only contains the label. The images are gone.
Any fix available for this yet?
Comment #4
tsvenson commentedWhen I then edited the image field, to disable Insert, I got the following:
Comment #5
tsvenson commentedSorry, missed the part about changing to entity_type above. However, it doesn't fix the problem.
When editing the image field, both with and without Insert enabled i get:
When disabling Insert I get the following in the Manage Field list:
Only way to get the images back is to disable the Insert module.
Comment #6
BenK commentedSubscribing...
Comment #7
will_in_wi commentedsubscribe
Comment #8
mlncn commentedConverting all (3) object_type references to entity_type per gleroux02 in #1 worked for me.
Comment #9
quicksketchThanks Benjamin! Committed.