The i18n_access_load_permissions() function call the user_access() function with invalid arguments.
user_access() require the full user object, not just a uid.

CommentFileSizeAuthor
#1 i18n_access-1117192.patch2.53 KBsweetchuck

Comments

sweetchuck’s picture

StatusFileSize
new2.53 KB

Quick patch

giorgosk’s picture

Title: Invalid argument for user_access() » Invalid argument for user_access() - warning on admin/user/user/create
Status: Active » Reviewed & tested by the community

changing title and adding warning for other users that might be searching

warning: array_fill() [function.array-fill]: Number of elements must be positive in /home/mykonose/public_html/includes/database.inc on line 253.
warning: implode() [function.implode]: Invalid arguments passed in /home/domain/public_html/includes/database.inc on line 253.
warning: array_keys() [function.array-keys]: The first argument should be an array in /home/domain/public_html/modules/user/user.module on line 515.
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 /home/domain/public_html/modules/user/user.module on line 515.

patch solves the problem
warnings dissapear

yang_yi_cn’s picture

same issue here. Can that patch be committed?

yang_yi_cn’s picture

Status: Reviewed & tested by the community » Fixed

committed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.