Hi,

I'm using the latest dev version of Responsive Images(2013-Jan-04) and version 1.0 of Breakpoints(2012-Nov-22). I got this warning message after I loaded 4 images through a content type to create an image gallery.

Notice: Undefined index: image_fallback in theme_picture() (line 457 of /home/ahmet/webdev/drupal7/sites/all/modules/resp_img/resp_img.module).

By the way it shows me this warning for every image seen on the page so I see 4 notices which contain all the same line above.

What could be done to fix it?
Thank you

Comments

attiks’s picture

Assigned: Unassigned » jelle_s

Assigning to Jelle

attiks’s picture

Status: Active » Fixed

This should be fixed in the latest dev version, if not please reopen this issue

DaReMe’s picture

Status: Fixed » Needs review

Hello,

I just downloaded the latest dev-version from january and it still says:
"Note Undefineed index: image_fallback in theme_picture() (line 458 of /path/to/module/resp_img.module).*

It only appears on the tablet, not the mobile or desktop version.

attiks’s picture

Status: Needs review » Needs work

Can you try the following:

Change lines 300 and 301

  $reset = reset($breakpoint_styles['mapping']);
  $element[$delta]['#image_style'] = reset($reset);

To

  $element[$delta]['#image_style'] = reset($breakpoint_styles['mapping']);
hansjoerg.jaeckel’s picture

Hi,
i have follow your instruction, but it don't work.
I have the same modul installation status as described in the posts before.

I need urgent your support for an productive usage ... !

attiks’s picture

Can you post a link to your site, or use my contact form to send me the link?

If not, can you export your content type, breakpoints and resp image settings so I can try to reproduce?

guillaumev’s picture

Hi,

Same issue here.

attiks’s picture

@guillaumev can you try using the latest dev of both resp_img and breakpoints? Can you post your setup?

jelle_s’s picture

Status: Needs work » Postponed (maintainer needs more info)
manicato’s picture

same problem, #4 makes it worse

jelle_s’s picture

Status: Postponed (maintainer needs more info) » Fixed

Bug was confirmed and should be fixed in the latest dev version.

Status: Fixed » Closed (fixed)

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