I'm using module Nodequeue 6.x-2.11 and Smartqueue submodule. Sometimes I catch errors like this:

Feb  8 10:59:52 mysrv drupal: http://www.---.ru|1360306792|php|46.188.10.5|http://www.---.ru/|http://www.---.ru/|0||Warning: array_fill() [function.array-fill]: Number of elements must be positive in db_placeholders() (line 276 of /vhosts/newfs/includes/database.inc).
Feb  8 10:59:52 mysrv drupal: http://www.---.ru|1360306792|php|46.188.10.5|http://www.---.ru/|http://www.---.ru/|0||Warning: implode() [function.implode]: Invalid arguments passed in db_placeholders() (line 276 of /vhosts/newfs/includes/database.inc).
Feb  8 10:59:52 mysrv drupal: http://www.---.ru|1360306792|php|46.188.10.5|http://www.---.ru/|http://www.---.ru/|0||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 ')' at line 1 query: smartqueue_nodequeue_alter /* Anonymous : smartqueue_nodequeue_alter */ SELECT qid, use_parents FROM smartqueue WHERE qid IN () in _db_query() (line 170 of /vhosts/newfs/includes/database.mysql.inc).

I've made a small patch to fix them.

CommentFileSizeAuthor
smartqueue.patch1009 bytesRomka
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

caspercash’s picture

I have encountered this error too. Thank you for your patch. It works great!