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

Manuel Garcia’s picture

I 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.

Manuel Garcia’s picture

Status: Active » Closed (duplicate)

Setting 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.

kirkcaraway’s picture

That did the trick. Thanks.