Closed (duplicate)
Project:
Masquerade
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
1 Feb 2011 at 15:51 UTC
Updated:
24 Mar 2011 at 15:19 UTC
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load()
There is a problem with the special european characters (ä, ö, ö) in the username.
Comments
Comment #1
andypost@Waldknoblauch can you explain a pages where you get this kind of errors?
Comment #2
tebb commentedI get the same/similar error/warning/exception, but I am not using special characters in the usernames.
This occurs for me when switching back from masquerading to the original logged in user.
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 178 of /<path>/includes/entity.inc).PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 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: SELECT base.uid AS uid, base.name AS name, base.pass AS pass, base.mail AS mail, base.theme AS theme, base.signature AS signature, base.signature_format AS signature_format, base.created AS created, base.access AS access, base.login AS login, base.status AS status, base.timezone AS timezone, base.language AS language, base.picture AS picture, base.init AS init, base.data AS data FROM {users} base WHERE (base.uid IN ()) ; Array ( ) in DrupalDefaultEntityController->load() (line 196 of /<path>/includes/entity.inc).Comment #3
Waldknoblauch commentedhello it's just a guess from me because of the error message. I use the module "real name registration".
Comment #4
tebb commentedThe issues in #2 occur on a site that does not have "real name registration".
Comment #5
thedayway commentedSo, if i use the "real name registration" module, the problem could be solved?
Comment #6
tebb commented@thedayway: No, that probably will not solve the issue.
Comment #7
thedayway commentedthx, but what does?
Comment #8
tebb commented@thedayway:
Adding the "real name registration" module will probably *not solve* the issue.
Comment #9
andypostFixed in #1087744: Warning: array_flip
test a current DEV before next RC
Comment #10
tebb commentedAndyPost: Thanks for solving that.
Resolved my issue from #2.
Makes testing on my laptop *much* easier.
Great work!