Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I had this module working great, but then ran into the following error:
warning: Invalid argument supplied for foreach() in /home/mydomain/public_html/test2/sites/all/modules/galleryformatter/includes/galleryformatter.theme.inc on line 30.
This popped up sometime after I enabled Lightbox2. I have since uninstalled Lightbox2, ran update, uninstalled and re-installed Gallery Formatter, and returned all settings to what they were previously, but the error persists.
Any ideas on what I'm doing wrong? Thanks for your help.
Comments
Comment #1
Manuel Garcia CreditAttribution: Manuel Garcia commentedI believe this is the bug that appeared if you didnt have any images in the field yet. It is fixed in the latest dev version, and will be fixed therefor in the next release as well.
Please confirm by upgrading to the latest dev and see if it stil happens or not.
Comment #2
Manuel Garcia CreditAttribution: Manuel Garcia commentedSetting it as duplicate of #826896: PHP warning when no images exists, we can set it back to active if you stil see it in the latest dev. We will troubleshoot further if it's the case, and I'll need more precise information so I can duplicate the error localy and hunt down the bug.
Comment #3
kirkcaraway CreditAttribution: kirkcaraway commentedThat did the trick. Thanks.