Download & Extend

Permissions check fails on bad SQL after Drupal core update

Project:Twitter
Version:6.x-2.7
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

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

#1

Project:Drupal core» Twitter
Version:6.24» 6.x-2.7
Component:user.module» Code

Changing 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.

#2

Hi, 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.

#3

Same 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.

#4

subscribe

#5

i 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

nobody click here