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

attiks’s picture

Status: Active » Fixed

My bad, should be fixed in dev

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

arcall’s picture

The problem still exist in 7.x-2.0-beta3

attiks’s picture

Version: 7.x-2.0-beta2 » 7.x-2.x-dev
Assigned: Unassigned » jelle_s
Status: Closed (fixed) » Active

Moving to the dev version

jelle_s’s picture

could you try latest dev? should already be fixed there.

jelle_s’s picture

Status: Active » Postponed (maintainer needs more info)
gazwal’s picture

The 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).

pandisvezia’s picture

Hi,

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?

attiks’s picture

Assigned: jelle_s » Unassigned
Status: Postponed (maintainer needs more info) » Active

I just pushed a potential fix, can somebody try the latest git version (or wait 12 hours and try the latest dev version)

attiks’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Old issue, I think you better update to the picture module