flash gallery hibaüzenet

rapy képe

Sziasztok!

Beállítottam a simpleviewer flash gallery-t ám az alábbi hibaüzenetet hozza, amivel nem tudok mit kezdeni.
Megköszönném ha valaki segíteni tudna.
A weboldal élesben a www.tiszakum.hu oldalon látható.

warning: array_fill() expects parameter 2 to be long, array given in /mnt/storage/var_www/clients/client10/web138/web/sites/all/modules/flash_gallery/flash_gallery.module on line 85.
warning: implode(): Invalid arguments passed in /mnt/storage/var_www/clients/client10/web138/web/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 /mnt/storage/var_www/clients/client10/web138/web/sites/all/modules/flash_gallery/flash_gallery.module on line 86.
warning: array_fill() expects parameter 2 to be long, array given in /mnt/storage/var_www/clients/client10/web138/web/sites/all/modules/flash_gallery/flash_gallery.module on line 85.
warning: implode(): Invalid arguments passed in /mnt/storage/var_www/clients/client10/web138/web/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 /mnt/storage/var_www/clients/client10/web138/web/sites/all/modules/flash_gallery/flash_gallery.module on line 86.
warning: array_fill() expects parameter 2 to be long, array given in /mnt/storage/var_www/clients/client10/web138/web/sites/all/modules/flash_gallery/flash_gallery.module on line 85.
warning: implode(): Invalid arguments passed in /mnt/storage/var_www/clients/client10/web138/web/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 /mnt/storage/var_www/clients/client10/web138/web/sites/all/modules/flash_gallery/flash_gallery.module on line 86.
warning: array_fill() expects parameter 2 to be long, array given in /mnt/storage/var_www/clients/client10/web138/web/sites/all/modules/flash_gallery/flash_gallery.module on line 85.
warning: implode(): Invalid arguments passed in /mnt/storage/var_www/clients/client10/web138/web/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 /mnt/storage/var_www/clients/client10/web138/web/sites/all/modules/flash_gallery/flash_gallery.module on line 86.

Köszönöm a segítséget.

Melyik modulhoz, modulokhoz kapcsolódik a téma?: 
Drupal verzió: 
miklosandras képe

Nálunk is ugyan ez a probléma lépett fel.

Csináltam rá egy gyors megoldást

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

Menj a 85 sorhoz, és cseréld ki a következőt:

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

erre:

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

Ennyi :)
András

0
0
Sk8erPeter képe

Nem lehet, hogy inkább a db_placeholders() függvényhívásra kéne lecserélni?

0
0
nortol képe

András megoldása a többi, neten található megoldással ellentétben tökéletesen javítja a hibát, a galéria nyitó képei is tökéletesen megjelennek a javítás után.

Nem azt mondom, hogy nincsen másik lehetőség, de ez a javítás szépen teszi a dolgát :-)

0
0