Views 3.x-dev
Realname 1.x-dev

I am getting errors with some of the code in the realname_handler_filter_user_name.inc file. I have a view where I have the filter setup to exclude a few users, but it seems that the code is expecting an array but it is getting a string. Lines 13 and 83 are the ones throwing the error. I am not sure if this is a bug in how views is giving the value or in how realname is storing the value views gives.

# warning: implode() [function.implode]: Invalid arguments passed in mysite/sites/all/modules/realname/realname_handler_filter_user_name.inc on line 13.
# 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 u.*, ru.realname FROM users u LEFT JOIN realname ru ON ru.uid=u.uid WHERE u.uid IN () in mysite/sites/all/modules/realname/realname_handler_filter_user_name.inc on line 13.
# warning: implode() [function.implode]: Invalid arguments passed in mysite/sites/all/modules/realname/realname_handler_filter_user_name.inc on line 83.
# 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 u.*, ru.realname FROM users u LEFT JOIN realname ru ON ru.uid=u.uid WHERE u.uid IN () in mysite/sites/all/modules/realname/realname_handler_filter_user_name.inc on line 83.

Comments

YK85’s picture

subscribing

nancydru’s picture

It was written for Views 2. I don't know enough about Views coding to even attempt to fix it, so we'll have to wait for a Views guru to figure out how to handle both Views 2 and Views 3.

geerlingguy’s picture

See also: #1170230: Views Exposed Filter for RealName 7.x (might want to mark one of these two as a duplicate). Also, for reference, #436564: Support Views FILTER was the issue where the code was introduced for D6, 1.x-branch of Realname.

lemuelsantos’s picture

Issue tags: +views, +Broken handler, +view handler

Waiting for a solution on this topic as well...

peterx’s picture

Suggestion: When you create ->realname, put ->name into an extra column/attribute ->name_original. Add name_original to the views definition. It should work with all the various versions of Views across D6 and D7.

I was about to suggest a field named name_really_and_truly_the_name but no one would believe a name like that could be the real name.

hass’s picture

Status: Active » Closed (outdated)