Closed (duplicate)
Project:
Twitter
Version:
6.x-2.7
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Feb 2012 at 14:10 UTC
Updated:
1 Aug 2012 at 11:31 UTC
This has started happening since the last Drupal core update. Note the empty IN().
warning: array_fill(): Number of elements must be positive in /var/www/html/includes/database.inc on line 253.
warning: implode(): Invalid arguments passed in /var/www/html/includes/database.inc on line 253.
warning: array_keys() expects parameter 1 to be array, null given in /var/www/html/modules/user/user.module on line 528.
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 p.perm FROM role r INNER JOIN permission p ON p.rid = r.rid WHERE r.rid IN () in /var/www/html/modules/user/user.module on line 528.I also updated VBO, but this is appearing on node view pages that have nothing to do with VBO.
Comments
Comment #1
yelvington commentedChanging this to the Twitter project, as I discovered (by disabling every module, one at a time) that turning off the Twitter module made this error message disappear. Coincidentally, a Twitter block that had been on the site disappeared about the same time as the core update, so that's more evidence.
Comment #2
alliax commentedHi, I have simply disabled the twitter block and the error doesn't appear anymore. Sad to see it go, but that's life. Until it is resolved.. and that I lean about it.
Comment #3
rickmanelius commentedSame issue, but for me it's still there after twitter modules removed, so I'm not sure if it's purely this module at fault.
Comment #4
dwhutton commentedsubscribe
Comment #5
fantom84 commentedi have this error to.
when i enable the twitter module and visit my account page,i can see this error messages.
when i disable the twitter module - error message gone
Comment #6
b0b commentedIf you change the argument validation to Basic instead of php it works, which is fine for me since I'm using a fixed entry for the uid.
Comment #7
xurizaemonDuplicated by #1707098: Restore Views UID validatory, use $argument rather than arg(1), but that one has a patch so it wins :P
You'll need to manually modify the argument validator for your view with this code if you already have a "tweets" view enabled -