I get this error after installing module: "Undefined index: image_hide in image_hide_field_widget_process..." Using both stable and development modules.
Maybe module was designed for a different use, but I tried it for this purpose: I have two image fields in my content type. Both using the Picture Module back-port from Drupal 8 in Drupal 7 as the Format in manage display. I was hoping to use this module to allow for using one of my image fields to display in both my slider and my node (which is the default and is working well) and then with this Image Hide module to give option to hide the image from node as an option to display the image only in slider (or maybe another part of page with some more tweaking). The other image field was for node only with no slider (working also) and no need to use the image_hide module.
I tried using the checkbox (got it all set up per instructions) but most likely due to error above the image still displayed in node and would not hide. I'll pass on any other needed info if this is in fact an issue and not a misuse of intended purpose of module. Regardless, the error message should not be showing. I cleared all caches with Drush both before and after installing the module.
Comments
Comment #1
neRok commentedThanks for reporting this bug. I have been able to duplicate it and will fix it soon.
The error is appearing because the settings for the image fields have not been setup, and the module will not do anything until they have been. For a quick work-around, for each image field (using node type article and an image field called image as the example), you need to visit
admin/structure/types/manage/article/fields/field_image, and at least save the field settings as they are. This will save the settings for image field as the default (off) - you can change it to one of the on values.Comment #2
justawayfarer commentedThanks for the response. That worked. I love the simplicity of this module.
Comment #3
neRok commentedVersion 7.x-1.1 is released, which should resolve this issue.