Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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 CreditAttribution: Waldknoblauch commentedhello it's just a guess from me because of the error message. I use the module "real name registration".
Comment #4
Tebb CreditAttribution: Tebb commentedThe issues in #2 occur on a site that does not have "real name registration".
Comment #5
thedayway CreditAttribution: thedayway commentedSo, if i use the "real name registration" module, the problem could be solved?
Comment #6
Tebb CreditAttribution: Tebb commented@thedayway: No, that probably will not solve the issue.
Comment #7
thedayway CreditAttribution: thedayway commentedthx, but what does?
Comment #8
Tebb CreditAttribution: 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 CreditAttribution: Tebb commentedAndyPost: Thanks for solving that.
Resolved my issue from #2.
Makes testing on my laptop *much* easier.
Great work!