Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
smartqueue.patch | 1009 bytes | Romka | |
Comments
Comment #1
caspercash CreditAttribution: caspercash commentedI have encountered this error too. Thank you for your patch. It works great!