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

andypost’s picture

@Waldknoblauch can you explain a pages where you get this kind of errors?

Tebb’s picture

I 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).

Waldknoblauch’s picture

hello it's just a guess from me because of the error message. I use the module "real name registration".

Tebb’s picture

The issues in #2 occur on a site that does not have "real name registration".

thedayway’s picture

So, if i use the "real name registration" module, the problem could be solved?

Tebb’s picture

@thedayway: No, that probably will not solve the issue.

thedayway’s picture

thx, but what does?

Tebb’s picture

@thedayway:

Adding the "real name registration" module will probably *not solve* the issue.

andypost’s picture

Version: 7.x-1.0-rc2 » 7.x-1.x-dev
Status: Active » Closed (duplicate)

Fixed in #1087744: Warning: array_flip

test a current DEV before next RC

Tebb’s picture

AndyPost: Thanks for solving that.

Resolved my issue from #2.

Makes testing on my laptop *much* easier.

Great work!