I'm getting several of these warnings while trying to view a responsive image after setting my imagestyles, breakpoints, and mappings.
Warning: Invalid argument supplied for foreach() in resp_img_field_attach_view_alter() (line 231 of sites/all/modules/resp_img/resp_img.module).
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | Screen Shot 2012-10-25 at 7.51.04 AM.png | 37.33 KB | carajito |
| #11 | Screen Shot 2012-10-25 at 8.09.50 AM.png | 122.86 KB | carajito |
| #11 | Screen Shot 2012-10-25 at 8.15.47 AM.png | 52.47 KB | carajito |
| #8 | Screen Shot 2012-10-23 at 2.11.17 PM.png | 33.35 KB | carajito |
| #5 | Breakpoint-Screen Shot 2012-10-14 at 2.49.58 PM.png | 51.79 KB | carajito |
Comments
Comment #1
attiks commentedCan you try the latest dev version, lots has changed
Comment #2
JJSON commentedHi attiks, thanks for your reply.
It turns out I was actually using 2.x-dev already but the admin/module screen confused me, it says "7.x-2.0-beta3+1-dev". In any case, I did a fresh install and this time I used the latest dev version of reap_img and breakpoints as well.
This seems to have done the trick. The images are now loaded correctly, including on resize and it works great on retina displays too. Magic.
However, I'm actually still getting this error (six times):
and these errors:
I figure that perhaps these errors have something to do with me using adaptivetheme? If I switch to Omega, there are no visible errors.
Thank you so much for all the work on this module, I look forward to a stable 2.0 release.
Comment #3
attiks commentedI guess it's related to adaptivetheme, I think they are changing the theme_image_formatter, theme_image. I tried it and my HTML source did only contain 1 img tag.
Comment #4
attiks commentedsee adaptivetheme_field__image in at_core/inc/theme.inc
I'll try to find a solution, but I'm afraid it isn't solvable without changing adaptivetheme
Comment #5
carajito commentedSame problem using Omega 3.x
Error:
Invalid argument supplied for foreach() in resp_img_field_attach_view_alter() (line 231
I don't know if I'm doing well
- Drupal 7.15
- Omega 3.1
- Ctools 7.x-1.2
- Field formatter settings 7.x-1.0
- Breakpoints 7.x-1.0-beta3
- Resp_img 7.x-2.0-beta3
Comment #6
attiks commented#5 can you try the dev version
Comment #7
carajito commentedTwo erros
- Drupal 7.15
- Omega 3.1
- Ctools 7.x-1.2
- Field formatter settings 7.x-1.0
- Breakpoints 7.x-1.0-beta3
- Resp_img 7.x-2.x-dev
Comment #8
carajito commentedTwo erros
- Drupal 7.15
- Omega 3.1
- Ctools 7.x-1.2
- Field formatter settings 7.x-1.0
- Breakpoints 7.x-1.0-beta3
- Resp_img 7.x-2.x-dev
Comment #9
jelle_sShould be fixed in latest dev now. Can you confirm?
Comment #10
carajito commentedNo error at the moment, but pleace can you tell me if I doing well at this point #5 ????
Because the images is not showing and it is not show as responsive.
Cheers
Comment #11
carajito commentedI add a new group (articletwo)
The new group is not showing at any place
A link to here will be good
Comment #12
attiks commentedOld issue, I think you better update to the picture module