I have resp_img 2.0 beta2 and breakpoints 2.0 beta 2 installed. I set up a breakpoint groups and a responsive image style, as well as a field with a responsive image style applied to its display.
Now, on every page of the site, I have the following error message:
•Notice: Undefined index: #formatter in resp_img_field_attach_view_alter() (line 157 of /sites/all/modules/contributed/resp_img/resp_img.module).
•Notice: Undefined index: #formatter in resp_img_field_attach_view_alter() (line 162 of /sites/all/modules/contributed/resp_img/resp_img.module).
This is the relevant code:
if ($element['#formatter'] == 'image') {
$vars['image_style'] = 'image_style';
$vars['#formatter'] = 'picture';
$vars['#theme'] = 'picture_formatter';
}
elseif ($element['#formatter'] == 'colorbox') {
$vars['image_style'] = 'colorbox_node_style';
$vars['#formatter'] = 'picture';
$vars['#theme'] = 'colorbox_picture_formatter';
}
Suggestions?
Comments
Comment #1
attiks commentedMy bad, should be fixed in dev
Comment #3
arcall commentedThe problem still exist in 7.x-2.0-beta3
Comment #4
attiks commentedMoving to the dev version
Comment #5
jelle_scould you try latest dev? should already be fixed there.
Comment #6
jelle_sComment #7
gazwal commentedThe problem still exist in the lastest DEV(7.x-2.x-dev tar.gz (18.41 KB) | zip (20.99 KB) 2013-Jan-04)
oups sorry
my notice warning are for the latest dev :
Notice: Undefined index: image_fallback in theme_picture() (line 457 of /Users/robin/www/studio-comunik/sites/all/modules/contrib/resp_img/resp_img.module).
Notice: Undefined index: image_fallback in theme_picture() (line 457 of /Users/robin/www/studio-comunik/sites/all/modules/contrib/resp_img/resp_img.module).
Comment #8
pandisvezia commentedHi,
I'm using the latest dev version(2013-Jan-04) of responsive images and version 1.0 of Breakpoints and I get the same warning message too.
Notice: Undefined index: image_fallback in theme_picture() (line 457 of /home/ahmet/webdev/drupal7/sites/all/modules/resp_img/resp_img.module).
I couldn't understand what the problem is. Any ideas?
Comment #9
attiks commentedI just pushed a potential fix, can somebody try the latest git version (or wait 12 hours and try the latest dev version)
Comment #10
attiks commentedOld issue, I think you better update to the picture module