After installing 6.x-1.x-dev (2009-Oct-11), and then visiting the page admin/content/revision_deletion I get the following warning message:
* warning: array_fill() [function.array-fill]: Number of elements must be positive in /public_html/includes/database.inc on line 253.
* warning: implode() [function.implode]: Invalid arguments passed in /public_html/includes/database.inc on line 253.
* 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: SELECT COUNT(*) FROM node_revisions r INNER JOIN node n ON r.nid = n.nid WHERE n.nid IN (SELECT r.nid FROM node_revisions r INNER JOIN node n ON r.nid = n.nid AND r.vid <> n.vid WHERE r.timestamp < 1256818456 AND n.type IN() ) in /public_html/sites/all/modules/revision_deletion/revision_deletion.module on line 172.
* 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 ') ) ORDER BY r.nid, r.timestamp DESC LIMIT 0, 20' at line 1 query: SELECT n.title, r.nid, r.vid, r.timestamp, r.uid, r.log, n.type, n.vid AS current, n.status FROM node_revisions r INNER JOIN node n ON r.nid = n.nid WHERE n.nid IN (SELECT r.nid FROM node_revisions r INNER JOIN node n ON r.nid = n.nid AND r.vid <> n.vid WHERE r.timestamp < 1256818456 AND n.type IN() ) ORDER BY r.nid, r.timestamp DESC LIMIT 0, 20 in /public_html/sites/all/modules/revision_deletion/revision_deletion.module on line 172.I also have the Diff module installed. Will uninstall, and test with 6.x-1.0-rc2
Comments
Comment #1
iantresman commentedCan confirm this error message with 6.x-1.0-rc2. Will now uninstall the diff module,and try again.
Comment #2
iantresman commentedCan confirm this error message with the diff module uninstalled.
I am using mySQL 5.0.22. Do I need a more recent version?
Comment #3
danielb commentedGranted I am using PHP4 and your project page says you do not support it, but I got these errors when trying to visit: ?q=admin/content/revision_deletion
Obviously I also use postgres.
Drupal 6.14
PHP 4.4.0
PostgreSQL database 8.2.14
Comment #4
giorgio79 commented+1
Comment #5
giorgio79 commentedThe warning messages went away after I selected a content type in the setting section.
Works well now.
Comment #6
rdeboerSame experience as #1, #3, #5 with Revision Deletion version 6.x-1.0-rc2. Diff module NOT installed.
Pressing "Save configuration" on the Administer >> Content management >> Revisions to Mass Delete >> Settings page, resulted in the error messages disappearing and the module operating as expected.
Therefore I don't think this is a critical bug. Downgrading to minor.
Comment #7
mo6Experiencing same error. The errors went away after Submitting the Settings.
This is not a minor issue as it seems to affect all (new) installations.
Comment #8
Brn commentedSame error with Revision Deletion version 6.x-1.0-rc2.
Drupal 6.22
PHP 5.2.6-1+lenny9
MySQL 5.0.51a
Comment #9
adriancid