I'm getting this Error:

* warning: array_fill() expects parameter 2 to be long, array given in /.../sites/all/modules/flash_gallery/flash_gallery.module on line 85.
* warning: implode(): Invalid arguments passed in /.../sites/all/modules/flash_gallery/flash_gallery.module on line 85.
* user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND n.status = 1 ORDER BY n.sticky DESC, n.created DESC LIMIT 0, 1' at line 1 query: SELECT n.nid FROM node n INNER JOIN term_node tn ON n.nid = tn.nid WHERE tn.tid IN () AND n.status = 1 ORDER BY n.sticky DESC, n.created DESC LIMIT 0, 1 in /.../sites/all/modules/flash_gallery/flash_gallery.module on line 86.

Can anybody help me?

Comments

Cookiemonster’s picture

Assigned: Cookiemonster » Unassigned
KirstenLangholz’s picture

I had the same problem, but when I fixed this issue: http://drupal.org/node/574234 the error messages disappeared...

miklosandras’s picture

I also had the same issue.

I did a fix for that.

/.../sites/all/modules/flash_gallery/flash_gallery.module

Go to line 85 and replace the folowing line:

$placeholders = implode(', ', array_fill(0, $descendant_tids, '%d'));

to:

$placeholders = implode(', ',$descendant_tids);

That's all :)
Have fun!