Files are uploaded and selected to galleries... works all fine... but if i click to on a gallery link it's not working and this failure message is coming:

warning: Invalid argument supplied for foreach() in /home/httpd/vhosts/7speed.ch/httpdocs/modules/imce_gallery/imce_gallery.module on line 376.

Comments

skives’s picture

I get the exact same error on the same line.

aerobase007’s picture

Status: Active » Fixed

This bug can be fixed by following steps:

  • In line 259 of imce_gallery.module change : $gallery_info->gallery_items[] = $row->g_file_name;

    to

    $gallery_info->gallery_items_pic[] = $row->g_file_name;

  • In line 147 of imce_gallery.module change : $output .= theme('gallery_items', $g_info->gallery_items_pic, $g_folder);

    to

    $output .= theme('gallery_items', $g_info->gallery_items_pic, $g_folder);

Anonymous’s picture

Status: Fixed » Closed (fixed)